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