public class CCloseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<CClose>
CCloseBuilder 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:
CCloseBuilder createTarget(int fooXyzzy, int barBaz) {
return new CCloseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of CCloseBuilder, 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 methodCCloseBuilder,
Builder| Constructor and Description |
|---|
CCloseBuilder() |
CCloseBuilder(CClose base) |
CCloseBuilder(Object arg) |
CCloseBuilder(ObjectHeader arg) |
| Modifier and Type | Method and Description |
|---|---|
CCloseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CClose>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<CClose> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<CClose>> |
augmentation(Class<E$$> augmentationType) |
CClose |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getReason() |
Tlvs |
getTlvs() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
CCloseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CClose>> augmentationType) |
CCloseBuilder |
setIgnore(Boolean value) |
CCloseBuilder |
setProcessingRule(Boolean value) |
CCloseBuilder |
setReason(Short value) |
CCloseBuilder |
setTlvs(Tlvs value) |
public CCloseBuilder()
public CCloseBuilder(Object arg)
public CCloseBuilder(ObjectHeader arg)
public CCloseBuilder(CClose base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Short getReason()
public Tlvs getTlvs()
public Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<CClose>> E$$ augmentation(Class<E$$> augmentationType)
public CCloseBuilder setReason(Short value)
public CCloseBuilder setTlvs(Tlvs value)
public CCloseBuilder setIgnore(Boolean value)
public CCloseBuilder setProcessingRule(Boolean value)
public CCloseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CClose>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<CClose> augmentationValue)
public CCloseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CClose>> augmentationType)
public CClose build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<CClose,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.