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