public class ProtectionSubobjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ProtectionSubobject>
ProtectionSubobjectBuilder 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:
ProtectionSubobjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new ProtectionSubobjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ProtectionSubobjectBuilder, 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 methodProtectionSubobjectBuilder,
Builder| Constructor and Description |
|---|
ProtectionSubobjectBuilder() |
ProtectionSubobjectBuilder(ProtectionSubobject base) |
public ProtectionSubobjectBuilder()
public ProtectionSubobjectBuilder(ProtectionSubobject base)
public LinkFlags getLinkFlags()
public LspFlag getLspFlag()
public LspFlag getSegFlag()
public Boolean isInPlace()
public Boolean isNotification()
public Boolean isOperational()
public Boolean isProtecting()
public Boolean isRequired()
public Boolean isSecondary()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ProtectionSubobject>> E$$ augmentation(Class<E$$> augmentationType)
public ProtectionSubobjectBuilder setLinkFlags(LinkFlags value)
public ProtectionSubobjectBuilder setLspFlag(LspFlag value)
public ProtectionSubobjectBuilder setSegFlag(LspFlag value)
public ProtectionSubobjectBuilder setInPlace(Boolean value)
public ProtectionSubobjectBuilder setNotification(Boolean value)
public ProtectionSubobjectBuilder setOperational(Boolean value)
public ProtectionSubobjectBuilder setProtecting(Boolean value)
public ProtectionSubobjectBuilder setRequired(Boolean value)
public ProtectionSubobjectBuilder setSecondary(Boolean value)
public ProtectionSubobjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ProtectionSubobject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ProtectionSubobject> augmentationValue)
public ProtectionSubobjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ProtectionSubobject>> augmentationType)
public ProtectionSubobject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ProtectionSubobject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.