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