public static class TheReadOnlyServiceObject.Builder extends Object
TheReadOnlyServiceObject.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
TheReadOnlyServiceObject.builder() instead of private constructor to create new builder. |
protected |
Builder(TheReadOnlyServiceObject pObject)
Use
TheReadOnlyServiceObject.builder(TheReadOnlyServiceObject) instead of private constructor to create
new builder. |
| Modifier and Type | Method and Description |
|---|---|
TheReadOnlyServiceObject |
build()
Method creates a new instance of class TheReadOnlyServiceObject.
|
TheReadOnlyServiceObject |
buildValidated()
Method creates a new validated instance of class TheReadOnlyServiceObject.
|
TheReadOnlyServiceObject.Builder |
setBits(boolean[] pBits)
Method sets attribute
bits. |
TheReadOnlyServiceObject.Builder |
setBookingCodes(Set<BookingCode> pBookingCodes)
Method sets association
bookingCodes. |
TheReadOnlyServiceObject.Builder |
setInventoryType(InventoryType pInventoryType)
Method sets association
inventoryType. |
TheReadOnlyServiceObject.Builder |
setName(String pName)
Method sets attribute
name. |
protected Builder()
TheReadOnlyServiceObject.builder() instead of private constructor to create new builder.protected Builder(TheReadOnlyServiceObject pObject)
TheReadOnlyServiceObject.builder(TheReadOnlyServiceObject) instead of private constructor to create
new builder.public TheReadOnlyServiceObject.Builder setName(String pName)
name.pName - Value to which name should be set.TheReadOnlyServiceObject.Builder Instance of this builder to support chaining setters. Method never returns null.public TheReadOnlyServiceObject.Builder setBits(boolean[] pBits)
bits.pBits - Value to which bits should be set.TheReadOnlyServiceObject.Builder Instance of this builder to support chaining setters. Method never returns null.public TheReadOnlyServiceObject.Builder setBookingCodes(Set<BookingCode> pBookingCodes)
bookingCodes.pBookingCodes - Collection to which bookingCodes should be set.TheReadOnlyServiceObject.Builder Instance of this builder to support chaining setters. Method never returns null.public TheReadOnlyServiceObject.Builder setInventoryType(InventoryType pInventoryType)
inventoryType.pInventoryType - Value to which inventoryType should be set.TheReadOnlyServiceObject.Builder Instance of this builder to support chaining setters. Method never returns null.public TheReadOnlyServiceObject build()
public TheReadOnlyServiceObject 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.