public class ItmConfigBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ItmConfig>
ItmConfigBuilder
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:
ItmConfigBuilder createTarget(int fooXyzzy, int barBaz) {
return new ItmConfigBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ItmConfigBuilder, 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 methodItmConfigBuilder
,
Builder
Constructor and Description |
---|
ItmConfigBuilder() |
ItmConfigBuilder(ItmConfig base) |
public ItmConfigBuilder()
public ItmConfigBuilder(ItmConfig base)
public String getDefTzTunnelType()
public String getDefaultTunnelTos()
public List<TunnelAggregation> getTunnelAggregation()
public Boolean isDefTzEnabled()
public Boolean isGpeExtensionEnabled()
public Boolean isUseOfTunnels()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ItmConfig>> E$$ augmentation(Class<E$$> augmentationType)
public ItmConfigBuilder setDefTzTunnelType(String value)
public ItmConfigBuilder setDefaultTunnelTos(String value)
public ItmConfigBuilder setTunnelAggregation(List<TunnelAggregation> values)
public ItmConfigBuilder setDefTzEnabled(Boolean value)
public ItmConfigBuilder setGpeExtensionEnabled(Boolean value)
public ItmConfigBuilder setUseOfTunnels(Boolean value)
public ItmConfigBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ItmConfig>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ItmConfig> augmentationValue)
public ItmConfigBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ItmConfig>> augmentationType)
public ItmConfig build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ItmConfig,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.