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