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