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