public class BasicSessionAttributeObjectCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BasicSessionAttributeObjectCase>
BasicSessionAttributeObjectCaseBuilder 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:
BasicSessionAttributeObjectCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new BasicSessionAttributeObjectCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BasicSessionAttributeObjectCaseBuilder, 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 methodBasicSessionAttributeObjectCaseBuilder,
Builder| Constructor and Description |
|---|
BasicSessionAttributeObjectCaseBuilder() |
BasicSessionAttributeObjectCaseBuilder(BasicSessionAttributeObjectCase base) |
| Modifier and Type | Method and Description |
|---|---|
BasicSessionAttributeObjectCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase>> |
augmentation(Class<E$$> augmentationType) |
BasicSessionAttributeObjectCase |
build() |
BasicSessionAttributeObject |
getBasicSessionAttributeObject() |
BasicSessionAttributeObjectCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase>> augmentationType) |
BasicSessionAttributeObjectCaseBuilder |
setBasicSessionAttributeObject(BasicSessionAttributeObject value) |
public BasicSessionAttributeObjectCaseBuilder()
public BasicSessionAttributeObjectCaseBuilder(BasicSessionAttributeObjectCase base)
public BasicSessionAttributeObject getBasicSessionAttributeObject()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase>> E$$ augmentation(Class<E$$> augmentationType)
public BasicSessionAttributeObjectCaseBuilder setBasicSessionAttributeObject(BasicSessionAttributeObject value)
public BasicSessionAttributeObjectCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase> augmentationValue)
public BasicSessionAttributeObjectCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicSessionAttributeObjectCase>> augmentationType)
public BasicSessionAttributeObjectCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BasicSessionAttributeObjectCase,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.