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