public class BasicFastRerouteObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BasicFastRerouteObject>
BasicFastRerouteObjectBuilder 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:
BasicFastRerouteObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new BasicFastRerouteObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BasicFastRerouteObjectBuilder, 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 methodBasicFastRerouteObjectBuilder,
Builder| Constructor and Description |
|---|
BasicFastRerouteObjectBuilder() |
BasicFastRerouteObjectBuilder(AttributeFilters arg) |
BasicFastRerouteObjectBuilder(BasicFastRerouteObject base) |
BasicFastRerouteObjectBuilder(CommonFastRerouteObject arg) |
BasicFastRerouteObjectBuilder(Priority arg) |
BasicFastRerouteObjectBuilder(RsvpTeObject arg) |
public BasicFastRerouteObjectBuilder()
public BasicFastRerouteObjectBuilder(CommonFastRerouteObject arg)
public BasicFastRerouteObjectBuilder(Priority arg)
public BasicFastRerouteObjectBuilder(AttributeFilters arg)
public BasicFastRerouteObjectBuilder(RsvpTeObject arg)
public BasicFastRerouteObjectBuilder(BasicFastRerouteObject 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.network.concepts.rev131125.Bandwidth getBandwidth()
public AttributeFilter getExcludeAny()
public FastRerouteFlags getFlags()
public Short getHoldPriority()
public Short getHopLimit()
public AttributeFilter getIncludeAll()
public AttributeFilter getIncludeAny()
public Short getSetupPriority()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicFastRerouteObject>> E$$ augmentation(Class<E$$> augmentationType)
public BasicFastRerouteObjectBuilder setBandwidth(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.concepts.rev131125.Bandwidth value)
public BasicFastRerouteObjectBuilder setExcludeAny(AttributeFilter value)
public BasicFastRerouteObjectBuilder setFlags(FastRerouteFlags value)
public BasicFastRerouteObjectBuilder setHoldPriority(Short value)
public BasicFastRerouteObjectBuilder setHopLimit(Short value)
public BasicFastRerouteObjectBuilder setIncludeAll(AttributeFilter value)
public BasicFastRerouteObjectBuilder setIncludeAny(AttributeFilter value)
public BasicFastRerouteObjectBuilder setSetupPriority(Short value)
public BasicFastRerouteObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicFastRerouteObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BasicFastRerouteObject> augmentationValue)
public BasicFastRerouteObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicFastRerouteObject>> augmentationType)
public BasicFastRerouteObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BasicFastRerouteObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.