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