public class PceIdBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PceId>
PceIdBuilder 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:
PceIdBuilder createTarget(int fooXyzzy, int barBaz) {
return new PceIdBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PceIdBuilder, 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 methodPceIdBuilder,
Builder| Constructor and Description |
|---|
PceIdBuilder() |
PceIdBuilder(Object arg) |
PceIdBuilder(ObjectHeader arg) |
PceIdBuilder(PceId base) |
| Modifier and Type | Method and Description |
|---|---|
PceIdBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PceId>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<PceId> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PceId>> |
augmentation(Class<E$$> augmentationType) |
PceId |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone |
getIpAddress() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
PceIdBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PceId>> augmentationType) |
PceIdBuilder |
setIgnore(Boolean value) |
PceIdBuilder |
setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone value) |
PceIdBuilder |
setProcessingRule(Boolean value) |
public PceIdBuilder()
public PceIdBuilder(Object arg)
public PceIdBuilder(ObjectHeader arg)
public PceIdBuilder(PceId base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getIpAddress()
public Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PceId>> E$$ augmentation(Class<E$$> augmentationType)
public PceIdBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone value)
public PceIdBuilder setIgnore(Boolean value)
public PceIdBuilder setProcessingRule(Boolean value)
public PceIdBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PceId>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PceId> augmentationValue)
public PceIdBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PceId>> augmentationType)
public PceId build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PceId,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.