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