| 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 the association "bookingCode".
|
BookingID.Builder |
setExternalRefID(String pExternalRefID)
Method sets the attribute "externalRefID".
|
BookingID.Builder |
setInventory(InventoryType pInventory)
Method sets the association "inventory".
|
BookingID.Builder |
setReferenceID(String pReferenceID)
Method sets the 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)
pReferenceID - Value to which the attribute "referenceID" should be set.public BookingID.Builder setExternalRefID(String pExternalRefID)
pExternalRefID - Value to which the attribute "externalRefID" should be set.public BookingID.Builder setInventory(InventoryType pInventory)
pInventory - InventoryType to which the association "inventory" should be set.public BookingID.Builder setBookingCode(BookingCode pBookingCode)
pBookingCode - BookingCode to which the association "bookingCode" should be set.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 © 2022. All rights reserved.