| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
BookingID.builder() instead of private constructor to create new builder. |
protected |
Builder(BookingID pObject)
Use
BookingID.builder(BookingID) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
BookingID |
build()
Method creates a new instance of class BookingID.
|
BookingID |
buildValidated()
Method creates a new validated instance of class BookingID.
|
BookingID.Builder |
setBookingCode(BookingCode pBookingCode)
Method sets association
bookingCode. |
BookingID.Builder |
setExternalRefID(String pExternalRefID)
Method sets attribute
externalRefID. |
BookingID.Builder |
setInventory(InventoryType pInventory)
Method sets association
inventory. |
BookingID.Builder |
setReferenceID(String pReferenceID)
Method sets attribute
referenceID. |
protected Builder()
BookingID.builder() instead of private constructor to create new builder.protected Builder(BookingID pObject)
BookingID.builder(BookingID) instead of private constructor to create new builder.public BookingID.Builder setReferenceID(String pReferenceID)
referenceID.pReferenceID - Value to which referenceID should be set.BookingID.Builder Instance of this builder to support chaining setters. Method never returns null.public BookingID.Builder setExternalRefID(String pExternalRefID)
externalRefID.pExternalRefID - Value to which externalRefID should be set.BookingID.Builder Instance of this builder to support chaining setters. Method never returns null.public BookingID.Builder setInventory(InventoryType pInventory)
inventory.pInventory - Value to which inventory should be set.BookingID.Builder Instance of this builder to support chaining setters. Method never returns null.public BookingID.Builder setBookingCode(BookingCode pBookingCode)
bookingCode.pBookingCode - Value to which bookingCode should be set.BookingID.Builder Instance of this builder to support chaining setters. Method never returns null.public BookingID build()
public BookingID buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.