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