public static class BookingCode.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
BookingCode.builder() instead of private constructor to create new builder. |
protected |
Builder(BookingCode pObject)
Use
BookingCode.builder(BookingCode) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
BookingCode |
build()
Method creates a new instance of class BookingCode.
|
BookingCode |
buildValidated()
Method creates a new validated instance of class BookingCode.
|
BookingCode.Builder |
setCode(String pCode)
Method sets the attribute "code".
|
protected Builder()
BookingCode.builder() instead of private constructor to create new builder.protected Builder(BookingCode pObject)
BookingCode.builder(BookingCode) instead of private constructor to create new builder.public BookingCode.Builder setCode(String pCode)
pCode - Value to which the attribute "code" should be set.public BookingCode build()
public BookingCode 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.