public static class BookingCode.Builder extends Object
BookingCode.| 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 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)
code.pCode - Value to which code should be set.BookingCode.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.