public class IpMatchBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IpMatch>
IpMatchBuilder
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:
IpMatchBuilder createTarget(int fooXyzzy, int barBaz) {
return new IpMatchBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IpMatchBuilder, 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 methodIpMatchBuilder
,
Builder
Constructor and Description |
---|
IpMatchBuilder() |
IpMatchBuilder(IpMatch base) |
IpMatchBuilder(IpMatchFields arg) |
Modifier and Type | Method and Description |
---|---|
IpMatchBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch>> |
augmentation(Class<E$$> augmentationType) |
IpMatch |
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.Dscp |
getIpDscp() |
Short |
getIpEcn() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion |
getIpProto() |
Short |
getIpProtocol() |
IpMatchBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch>> augmentationType) |
IpMatchBuilder |
setIpDscp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Dscp value) |
IpMatchBuilder |
setIpEcn(Short value) |
IpMatchBuilder |
setIpProto(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion value) |
IpMatchBuilder |
setIpProtocol(Short value) |
public IpMatchBuilder()
public IpMatchBuilder(IpMatchFields arg)
public IpMatchBuilder(IpMatch 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.Dscp getIpDscp()
public Short getIpEcn()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion getIpProto()
public Short getIpProtocol()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch>> E$$ augmentation(Class<E$$> augmentationType)
public IpMatchBuilder setIpDscp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Dscp value)
public IpMatchBuilder setIpEcn(Short value)
public IpMatchBuilder setIpProto(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion value)
public IpMatchBuilder setIpProtocol(Short value)
public IpMatchBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch> augmentationValue)
public IpMatchBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpMatch>> augmentationType)
public IpMatch build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IpMatch,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.