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