public class P2mpBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<P2mp>
P2mpBuilder 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:
P2mpBuilder createTarget(int fooXyzzy, int barBaz) {
return new P2mpBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of P2mpBuilder, 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 methodP2mpBuilder,
Builder| Constructor and Description |
|---|
P2mpBuilder() |
P2mpBuilder(BandwidthObject arg) |
P2mpBuilder(LoadBalancingObject arg) |
P2mpBuilder(LspaObject arg) |
P2mpBuilder(OfObject arg) |
P2mpBuilder(P2mp base) |
| Modifier and Type | Method and Description |
|---|---|
P2mpBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mp>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<P2mp> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mp>> |
augmentation(Class<E$$> augmentationType) |
P2mp |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Bandwidth |
getBandwidth() |
List<EndpointRroPair> |
getEndpointRroPair() |
IroBncChoice |
getIroBncChoice() |
LoadBalancing |
getLoadBalancing() |
Lspa |
getLspa() |
List<Metric> |
getMetric() |
Of |
getOf() |
P2mpBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mp>> augmentationType) |
P2mpBuilder |
setBandwidth(Bandwidth value) |
P2mpBuilder |
setEndpointRroPair(List<EndpointRroPair> values) |
P2mpBuilder |
setIroBncChoice(IroBncChoice value) |
P2mpBuilder |
setLoadBalancing(LoadBalancing value) |
P2mpBuilder |
setLspa(Lspa value) |
P2mpBuilder |
setMetric(List<Metric> values) |
P2mpBuilder |
setOf(Of value) |
public P2mpBuilder()
public P2mpBuilder(OfObject arg)
public P2mpBuilder(LspaObject arg)
public P2mpBuilder(BandwidthObject arg)
public P2mpBuilder(LoadBalancingObject arg)
public P2mpBuilder(P2mp base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Bandwidth getBandwidth()
public List<EndpointRroPair> getEndpointRroPair()
public IroBncChoice getIroBncChoice()
public LoadBalancing getLoadBalancing()
public Lspa getLspa()
public Of getOf()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mp>> E$$ augmentation(Class<E$$> augmentationType)
public P2mpBuilder setBandwidth(Bandwidth value)
public P2mpBuilder setEndpointRroPair(List<EndpointRroPair> values)
public P2mpBuilder setIroBncChoice(IroBncChoice value)
public P2mpBuilder setLoadBalancing(LoadBalancing value)
public P2mpBuilder setLspa(Lspa value)
public P2mpBuilder setMetric(List<Metric> values)
public P2mpBuilder setOf(Of value)
public P2mpBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mp>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<P2mp> augmentationValue)
public P2mpBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mp>> augmentationType)
public P2mp build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<P2mp,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.