public class PortModCaseDataBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PortModCaseData>
PortModCaseDataBuilder
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:
PortModCaseDataBuilder createTarget(int fooXyzzy, int barBaz) {
return new PortModCaseDataBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PortModCaseDataBuilder, 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 methodPortModCaseDataBuilder
,
Builder
Constructor and Description |
---|
PortModCaseDataBuilder() |
PortModCaseDataBuilder(OfHeader arg) |
PortModCaseDataBuilder(PortMod arg) |
PortModCaseDataBuilder(PortModCaseData base) |
public PortModCaseDataBuilder()
public PortModCaseDataBuilder(PortMod arg)
public PortModCaseDataBuilder(OfHeader arg)
public PortModCaseDataBuilder(PortModCaseData base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic PortFeatures getAdvertise()
public PortFeaturesV10 getAdvertiseV10()
public PortConfig getConfig()
public PortConfigV10 getConfigV10()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getHwAddress()
public PortConfig getMask()
public PortConfigV10 getMaskV10()
public PortNumber getPortNo()
public Short getVersion()
public Long getXid()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PortModCaseData>> E$$ augmentation(Class<E$$> augmentationType)
public PortModCaseDataBuilder setAdvertise(PortFeatures value)
public PortModCaseDataBuilder setAdvertiseV10(PortFeaturesV10 value)
public PortModCaseDataBuilder setConfig(PortConfig value)
public PortModCaseDataBuilder setConfigV10(PortConfigV10 value)
public PortModCaseDataBuilder setHwAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public PortModCaseDataBuilder setMask(PortConfig value)
public PortModCaseDataBuilder setMaskV10(PortConfigV10 value)
public PortModCaseDataBuilder setPortNo(PortNumber value)
public PortModCaseDataBuilder setVersion(Short value)
public PortModCaseDataBuilder setXid(Long value)
public PortModCaseDataBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PortModCaseData>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PortModCaseData> augmentationValue)
public PortModCaseDataBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PortModCaseData>> augmentationType)
public PortModCaseData build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PortModCaseData,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.