public class IfmConfigBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IfmConfig>
IfmConfigBuilder
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:
IfmConfigBuilder createTarget(int fooXyzzy, int barBaz) {
return new IfmConfigBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IfmConfigBuilder, 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 methodIfmConfigBuilder
,
Builder
Constructor and Description |
---|
IfmConfigBuilder() |
IfmConfigBuilder(IfmConfig base) |
Modifier and Type | Method and Description |
---|---|
IfmConfigBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig>> |
augmentation(Class<E$$> augmentationType) |
IfmConfig |
build() |
Integer |
getIfmStatsDefPollInterval() |
Boolean |
isIfmStatsPollEnabled() |
Boolean |
isItmDirectTunnels() |
IfmConfigBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig>> augmentationType) |
IfmConfigBuilder |
setIfmStatsDefPollInterval(Integer value) |
IfmConfigBuilder |
setIfmStatsPollEnabled(Boolean value) |
IfmConfigBuilder |
setItmDirectTunnels(Boolean value) |
public IfmConfigBuilder()
public IfmConfigBuilder(IfmConfig base)
public Integer getIfmStatsDefPollInterval()
public Boolean isIfmStatsPollEnabled()
public Boolean isItmDirectTunnels()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig>> E$$ augmentation(Class<E$$> augmentationType)
public IfmConfigBuilder setIfmStatsDefPollInterval(Integer value)
public IfmConfigBuilder setIfmStatsPollEnabled(Boolean value)
public IfmConfigBuilder setItmDirectTunnels(Boolean value)
public IfmConfigBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig> augmentationValue)
public IfmConfigBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfmConfig>> augmentationType)
public IfmConfig build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IfmConfig,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.