public class NxActionNatBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxActionNat>
NxActionNatBuilder
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:
NxActionNatBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxActionNatBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxActionNatBuilder, 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 methodNxActionNatBuilder
,
Builder
Constructor and Description |
---|
NxActionNatBuilder() |
NxActionNatBuilder(NxActionNat base) |
Modifier and Type | Method and Description |
---|---|
NxActionNatBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat>> |
augmentation(Class<E$$> augmentationType) |
NxActionNat |
build() |
Integer |
getFlags() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAddressMax() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAddressMin() |
Integer |
getPortMax() |
Integer |
getPortMin() |
Integer |
getRangePresent() |
NxActionNatBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat>> augmentationType) |
NxActionNatBuilder |
setFlags(Integer value) |
NxActionNatBuilder |
setIpAddressMax(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
NxActionNatBuilder |
setIpAddressMin(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
NxActionNatBuilder |
setPortMax(Integer value) |
NxActionNatBuilder |
setPortMin(Integer value) |
NxActionNatBuilder |
setRangePresent(Integer value) |
public NxActionNatBuilder()
public NxActionNatBuilder(NxActionNat base)
public Integer getFlags()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddressMax()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddressMin()
public Integer getPortMax()
public Integer getPortMin()
public Integer getRangePresent()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat>> E$$ augmentation(Class<E$$> augmentationType)
public NxActionNatBuilder setFlags(Integer value)
public NxActionNatBuilder setIpAddressMax(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public NxActionNatBuilder setIpAddressMin(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public NxActionNatBuilder setPortMax(Integer value)
public NxActionNatBuilder setPortMin(Integer value)
public NxActionNatBuilder setRangePresent(Integer value)
public NxActionNatBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat> augmentationValue)
public NxActionNatBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxActionNat>> augmentationType)
public NxActionNat build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxActionNat,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.