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