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