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