public class PcrepMessageBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PcrepMessage>
PcrepMessageBuilder instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
PcrepMessageBuilder createTarget(int fooXyzzy, int barBaz) {
return new PcrepMessageBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PcrepMessageBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build(), which is then returned from the methodPcrepMessageBuilder,
Builder| Constructor and Description |
|---|
PcrepMessageBuilder() |
PcrepMessageBuilder(MessageHeader arg) |
PcrepMessageBuilder(PcrepMessage base) |
| Modifier and Type | Method and Description |
|---|---|
PcrepMessageBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage>> |
augmentation(Class<E$$> augmentationType) |
PcrepMessage |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<Replies> |
getReplies() |
ProtocolVersion |
getVersion() |
PcrepMessageBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage>> augmentationType) |
PcrepMessageBuilder |
setReplies(List<Replies> values) |
PcrepMessageBuilder |
setVersion(ProtocolVersion value) |
public PcrepMessageBuilder()
public PcrepMessageBuilder(MessageHeader arg)
public PcrepMessageBuilder(PcrepMessage base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic ProtocolVersion getVersion()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage>> E$$ augmentation(Class<E$$> augmentationType)
public PcrepMessageBuilder setReplies(List<Replies> values)
public PcrepMessageBuilder setVersion(ProtocolVersion value)
public PcrepMessageBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage> augmentationValue)
public PcrepMessageBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PcrepMessage>> augmentationType)
public PcrepMessage build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PcrepMessage,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.