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