public class CCloseMessageBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<CCloseMessage>
CCloseMessageBuilder 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:
CCloseMessageBuilder createTarget(int fooXyzzy, int barBaz) {
return new CCloseMessageBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of CCloseMessageBuilder, 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 methodCCloseMessageBuilder,
Builder| Constructor and Description |
|---|
CCloseMessageBuilder() |
CCloseMessageBuilder(CCloseMessage base) |
CCloseMessageBuilder(CloseObject arg) |
CCloseMessageBuilder(MessageHeader arg) |
| Modifier and Type | Method and Description |
|---|---|
CCloseMessageBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage>> |
augmentation(Class<E$$> augmentationType) |
CCloseMessage |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
CClose |
getCClose() |
ProtocolVersion |
getVersion() |
CCloseMessageBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage>> augmentationType) |
CCloseMessageBuilder |
setCClose(CClose value) |
CCloseMessageBuilder |
setVersion(ProtocolVersion value) |
public CCloseMessageBuilder()
public CCloseMessageBuilder(MessageHeader arg)
public CCloseMessageBuilder(CloseObject arg)
public CCloseMessageBuilder(CCloseMessage base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic CClose getCClose()
public ProtocolVersion getVersion()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage>> E$$ augmentation(Class<E$$> augmentationType)
public CCloseMessageBuilder setCClose(CClose value)
public CCloseMessageBuilder setVersion(ProtocolVersion value)
public CCloseMessageBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage> augmentationValue)
public CCloseMessageBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CCloseMessage>> augmentationType)
public CCloseMessage build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<CCloseMessage,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.