| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Channel.builder() instead of private constructor to create new builder. |
protected |
Builder(Channel pObject)
Use
Channel.builder(Channel) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Channel |
build()
Method creates a new instance of class Channel.
|
Channel |
buildValidated()
Method creates a new validated instance of class Channel.
|
Channel.Builder |
setChannelCode(ChannelCode pChannelCode)
Method sets association
channelCode. |
Channel.Builder |
setChannelType(ChannelType pChannelType)
Method sets association
channelType. |
Channel.Builder |
setCode(int pCode)
Method sets attribute
code. |
Channel.Builder |
setReseller(Reseller pReseller)
Method sets association
reseller. |
Channel.Builder |
setSelfServiceChannel(boolean pSelfServiceChannel)
Method sets attribute
selfServiceChannel. |
protected Builder()
Channel.builder() instead of private constructor to create new builder.protected Builder(Channel pObject)
Channel.builder(Channel) instead of private constructor to create new builder.public Channel.Builder setChannelType(ChannelType pChannelType)
channelType.pChannelType - Value to which channelType should be set.Channel.Builder Instance of this builder to support chaining setters. Method never returns null.public Channel.Builder setChannelCode(ChannelCode pChannelCode)
channelCode.pChannelCode - Value to which channelCode should be set.Channel.Builder Instance of this builder to support chaining setters. Method never returns null.public Channel.Builder setCode(int pCode)
code.pCode - Value to which code should be set.Channel.Builder Instance of this builder to support chaining setters. Method never returns null.public Channel.Builder setSelfServiceChannel(boolean pSelfServiceChannel)
selfServiceChannel.pSelfServiceChannel - Value to which selfServiceChannel should be set.Channel.Builder Instance of this builder to support chaining setters. Method never returns null.public Channel.Builder setReseller(Reseller pReseller)
reseller.pReseller - Value to which reseller should be set.Channel.Builder Instance of this builder to support chaining setters. Method never returns null.public Channel build()
public Channel 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.