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