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