public class PathKeysBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PathKeys>
PathKeysBuilder 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:
PathKeysBuilder createTarget(int fooXyzzy, int barBaz) {
return new PathKeysBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PathKeysBuilder, 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 methodPathKeysBuilder,
Builder| Constructor and Description |
|---|
PathKeysBuilder() |
PathKeysBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.CSubobject arg) |
PathKeysBuilder(PathKeys base) |
PathKeysBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PathKeySubobject arg) |
| Modifier and Type | Method and Description |
|---|---|
PathKeysBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys>> |
augmentation(Class<E$$> augmentationType) |
PathKeys |
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.PathKey |
getPathKey() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PceId |
getPceId() |
Boolean |
isLoose() |
PathKeysBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys>> augmentationType) |
PathKeysBuilder |
setLoose(Boolean value) |
PathKeysBuilder |
setPathKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PathKey value) |
PathKeysBuilder |
setPceId(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PceId value) |
public PathKeysBuilder()
public PathKeysBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PathKeySubobject arg)
public PathKeysBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.CSubobject arg)
public PathKeysBuilder(PathKeys 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.PathKey getPathKey()
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PceId getPceId()
public Boolean isLoose()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys>> E$$ augmentation(Class<E$$> augmentationType)
public PathKeysBuilder setPathKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PathKey value)
public PathKeysBuilder setPceId(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.PceId value)
public PathKeysBuilder setLoose(Boolean value)
public PathKeysBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys> augmentationValue)
public PathKeysBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKeys>> augmentationType)
public PathKeys build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PathKeys,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.