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