Class BookingID
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.BookingID
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class BookingID extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObjectType represents a booking ID.- Version:
- JEAF Release 1.6.x
- Author:
- JEAF Generator
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingID.BuilderClass implements builder to create a new instance of classBookingID.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBookingID()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedBookingID(BookingID.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingID.Builderbuilder()Method returns a new builder.static BookingID.Builderbuilder(BookingID pObject)Method creates a new builder and initialize it with the data from the passed object.static BookingID.Builderbuilder(java.lang.String pReferenceID, java.lang.String pExternalRefID, InventoryType pInventory, BookingCode pBookingCode)Method creates a new builder and initializes it with the passed attributes.BookingCodegetBookingCode()Method returns associationbookingCode.java.lang.StringgetExternalRefID()Method returns attributeexternalRefID.InventoryTypegetInventory()Method returns associationinventory.java.lang.StringgetReferenceID()Method returns attributereferenceID.voidsetBookingCode(BookingCode pBookingCode)Method sets associationbookingCode.voidsetExternalRefID(java.lang.String pExternalRefID)Method sets attributeexternalRefID.voidsetInventory(InventoryType pInventory)Method sets associationinventory.voidsetReferenceID(java.lang.String pReferenceID)Method sets attributereferenceID.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.voidunsetBookingCode()Method unsetsbookingCode.voidunsetInventory()Method unsetsinventory.
-
-
-
Constructor Detail
-
BookingID
protected BookingID()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
BookingID
protected BookingID(BookingID.Builder pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
builder
public static BookingID.Builder builder()
Method returns a new builder.- Returns:
BookingID.BuilderNew builder that can be used to create new BookingID objects.
-
builder
public static BookingID.Builder builder(BookingID pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
BookingID.BuilderNew builder that can be used to create new BookingID objects. The method never returns null.
-
builder
public static BookingID.Builder builder(java.lang.String pReferenceID, java.lang.String pExternalRefID, InventoryType pInventory, BookingCode pBookingCode)
Method creates a new builder and initializes it with the passed attributes.
-
getReferenceID
public java.lang.String getReferenceID()
Method returns attributereferenceID.- Returns:
StringValue to whichreferenceIDis set.
-
setReferenceID
public void setReferenceID(java.lang.String pReferenceID)
Method sets attributereferenceID.- Parameters:
pReferenceID- Value to whichreferenceIDshould be set.
-
getExternalRefID
public java.lang.String getExternalRefID()
Method returns attributeexternalRefID.- Returns:
StringValue to whichexternalRefIDis set.
-
setExternalRefID
public void setExternalRefID(java.lang.String pExternalRefID)
Method sets attributeexternalRefID.- Parameters:
pExternalRefID- Value to whichexternalRefIDshould be set.
-
getInventory
public InventoryType getInventory()
Method returns associationinventory.- Returns:
InventoryTypeValue to whichinventoryis set.
-
setInventory
public void setInventory(InventoryType pInventory)
Method sets associationinventory.- Parameters:
pInventory- Value to whichinventoryshould be set.
-
unsetInventory
public final void unsetInventory()
Method unsetsinventory.
-
getBookingCode
public BookingCode getBookingCode()
Method returns associationbookingCode.- Returns:
BookingCodeValue to whichbookingCodeis set.
-
setBookingCode
public void setBookingCode(BookingCode pBookingCode)
Method sets associationbookingCode.- Parameters:
pBookingCode- Value to whichbookingCodeshould be set.
-
unsetBookingCode
public final void unsetBookingCode()
Method unsetsbookingCode.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
toString
public java.lang.String toString()
Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.- Overrides:
toStringin classjava.lang.Object- Returns:
StringString representation of this object. The method never returns null.
-
-