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