public class SubobjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Subobject>
SubobjectBuilder 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:
SubobjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new SubobjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SubobjectBuilder, 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 methodSubobjectBuilder,
Builder| Constructor and Description |
|---|
SubobjectBuilder() |
SubobjectBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.RecordRouteSubobjects arg) |
SubobjectBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.SecondaryRecordRouteSubobjects arg) |
SubobjectBuilder(Subobject base) |
| Modifier and Type | Method and Description |
|---|---|
SubobjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subobject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Subobject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Subobject>> |
augmentation(Class<E$$> augmentationType) |
Subobject |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.SubobjectType |
getSubobjectType() |
Boolean |
isProtectionAvailable() |
Boolean |
isProtectionInUse() |
SubobjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subobject>> augmentationType) |
SubobjectBuilder |
setProtectionAvailable(Boolean value) |
SubobjectBuilder |
setProtectionInUse(Boolean value) |
SubobjectBuilder |
setSubobjectType(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.SubobjectType value) |
public SubobjectBuilder()
public SubobjectBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.SecondaryRecordRouteSubobjects arg)
public SubobjectBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.RecordRouteSubobjects arg)
public SubobjectBuilder(Subobject base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.SubobjectType getSubobjectType()
public Boolean isProtectionAvailable()
public Boolean isProtectionInUse()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Subobject>> E$$ augmentation(Class<E$$> augmentationType)
public SubobjectBuilder setSubobjectType(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.record.route.subobjects.SubobjectType value)
public SubobjectBuilder setProtectionAvailable(Boolean value)
public SubobjectBuilder setProtectionInUse(Boolean value)
public SubobjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subobject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Subobject> augmentationValue)
public SubobjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subobject>> augmentationType)
public Subobject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Subobject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.