public class NxmNxNshMdtypeBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxmNxNshMdtype>
NxmNxNshMdtypeBuilder
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:
NxmNxNshMdtypeBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxmNxNshMdtypeBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxmNxNshMdtypeBuilder, 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 methodNxmNxNshMdtypeBuilder
,
Builder
Constructor and Description |
---|
NxmNxNshMdtypeBuilder() |
NxmNxNshMdtypeBuilder(NxmNxNshMdtype base) |
Modifier and Type | Method and Description |
---|---|
NxmNxNshMdtypeBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype>> |
augmentation(Class<E$$> augmentationType) |
NxmNxNshMdtype |
build() |
Short |
getValue() |
NxmNxNshMdtypeBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype>> augmentationType) |
NxmNxNshMdtypeBuilder |
setValue(Short value) |
public NxmNxNshMdtypeBuilder()
public NxmNxNshMdtypeBuilder(NxmNxNshMdtype base)
public Short getValue()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype>> E$$ augmentation(Class<E$$> augmentationType)
public NxmNxNshMdtypeBuilder setValue(Short value)
public NxmNxNshMdtypeBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype> augmentationValue)
public NxmNxNshMdtypeBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxNshMdtype>> augmentationType)
public NxmNxNshMdtype build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxmNxNshMdtype,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.