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