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