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