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