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