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