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