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