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