@Valid public class BookingID extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
BookingID.Builder
Class implements builder to create a new instance of class
BookingID. |
| Modifier | Constructor and Description |
|---|---|
protected |
BookingID()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
BookingID(BookingID.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static BookingID.Builder |
builder()
Method returns a new builder.
|
static BookingID.Builder |
builder(BookingID pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static BookingID.Builder |
builder(String pReferenceID,
String pExternalRefID,
InventoryType pInventory,
BookingCode pBookingCode)
Method creates a new builder and initializes it with the passed attributes.
|
BookingCode |
getBookingCode()
Method returns association
bookingCode. |
String |
getExternalRefID()
Method returns attribute
externalRefID. |
InventoryType |
getInventory()
Method returns association
inventory. |
String |
getReferenceID()
Method returns attribute
referenceID. |
void |
setBookingCode(BookingCode pBookingCode)
Method sets association
bookingCode. |
void |
setExternalRefID(String pExternalRefID)
Method sets attribute
externalRefID. |
void |
setInventory(InventoryType pInventory)
Method sets association
inventory. |
void |
setReferenceID(String pReferenceID)
Method sets attribute
referenceID. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
void |
unsetBookingCode()
Method unsets
bookingCode. |
void |
unsetInventory()
Method unsets
inventory. |
protected BookingID()
protected BookingID(BookingID.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static BookingID.Builder builder()
BookingID.Builder New builder that can be used to create new BookingID objects.public static BookingID.Builder builder(BookingID pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.BookingID.Builder New builder that can be used to create new BookingID objects. The method never returns
null.public static BookingID.Builder builder(String pReferenceID, String pExternalRefID, InventoryType pInventory, BookingCode pBookingCode)
public String getReferenceID()
referenceID.String Value to which referenceID is set.public void setReferenceID(String pReferenceID)
referenceID.pReferenceID - Value to which referenceID should be set.public String getExternalRefID()
externalRefID.String Value to which externalRefID is set.public void setExternalRefID(String pExternalRefID)
externalRefID.pExternalRefID - Value to which externalRefID should be set.public InventoryType getInventory()
inventory.InventoryType Value to which inventory is set.public void setInventory(InventoryType pInventory)
inventory.pInventory - Value to which inventory should be set.public final void unsetInventory()
inventory.public BookingCode getBookingCode()
bookingCode.BookingCode Value to which bookingCode is set.public void setBookingCode(BookingCode pBookingCode)
bookingCode.pBookingCode - Value to which bookingCode should be set.public final void unsetBookingCode()
bookingCode.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.