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