public class TransportZoneBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<TransportZone>
TransportZoneBuilder
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:
TransportZoneBuilder createTarget(int fooXyzzy, int barBaz) {
return new TransportZoneBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TransportZoneBuilder, 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 methodTransportZoneBuilder
,
Builder
Constructor and Description |
---|
TransportZoneBuilder() |
TransportZoneBuilder(TransportZone base) |
Modifier and Type | Method and Description |
---|---|
TransportZoneBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone>> |
augmentation(Class<E$$> augmentationType) |
TransportZone |
build() |
List<Subnets> |
getSubnets() |
Class<? extends TunnelTypeBase> |
getTunnelType() |
String |
getZoneName() |
TransportZoneKey |
key() |
TransportZoneBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone>> augmentationType) |
TransportZoneBuilder |
setSubnets(List<Subnets> values) |
TransportZoneBuilder |
setTunnelType(Class<? extends TunnelTypeBase> value) |
TransportZoneBuilder |
setZoneName(String value) |
TransportZoneBuilder |
withKey(TransportZoneKey key) |
public TransportZoneBuilder()
public TransportZoneBuilder(TransportZone base)
public TransportZoneKey key()
public Class<? extends TunnelTypeBase> getTunnelType()
public String getZoneName()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone>> E$$ augmentation(Class<E$$> augmentationType)
public TransportZoneBuilder withKey(TransportZoneKey key)
public TransportZoneBuilder setSubnets(List<Subnets> values)
public TransportZoneBuilder setTunnelType(Class<? extends TunnelTypeBase> value)
public TransportZoneBuilder setZoneName(String value)
public TransportZoneBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone> augmentationValue)
public TransportZoneBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TransportZone>> augmentationType)
public TransportZone build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<TransportZone,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.