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