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