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