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