public class AutoattachBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Autoattach>
AutoattachBuilder
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:
AutoattachBuilder createTarget(int fooXyzzy, int barBaz) {
return new AutoattachBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AutoattachBuilder, 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 methodAutoattachBuilder
,
Builder
Constructor and Description |
---|
AutoattachBuilder() |
AutoattachBuilder(Autoattach base) |
Modifier and Type | Method and Description |
---|---|
AutoattachBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach>> |
augmentation(Class<E$$> augmentationType) |
Autoattach |
build() |
List<AutoattachExternalIds> |
getAutoattachExternalIds() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri |
getAutoattachId() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid |
getAutoattachUuid() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri |
getBridgeId() |
List<Mappings> |
getMappings() |
String |
getSystemDescription() |
String |
getSystemName() |
AutoattachKey |
key() |
AutoattachBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach>> augmentationType) |
AutoattachBuilder |
setAutoattachExternalIds(List<AutoattachExternalIds> values) |
AutoattachBuilder |
setAutoattachId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value) |
AutoattachBuilder |
setAutoattachUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
AutoattachBuilder |
setBridgeId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value) |
AutoattachBuilder |
setMappings(List<Mappings> values) |
AutoattachBuilder |
setSystemDescription(String value) |
AutoattachBuilder |
setSystemName(String value) |
AutoattachBuilder |
withKey(AutoattachKey key) |
public AutoattachBuilder()
public AutoattachBuilder(Autoattach base)
public AutoattachKey key()
public List<AutoattachExternalIds> getAutoattachExternalIds()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri getAutoattachId()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getAutoattachUuid()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri getBridgeId()
public String getSystemDescription()
public String getSystemName()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach>> E$$ augmentation(Class<E$$> augmentationType)
public AutoattachBuilder withKey(AutoattachKey key)
public AutoattachBuilder setAutoattachExternalIds(List<AutoattachExternalIds> values)
public AutoattachBuilder setAutoattachId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value)
public AutoattachBuilder setAutoattachUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public AutoattachBuilder setBridgeId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value)
public AutoattachBuilder setMappings(List<Mappings> values)
public AutoattachBuilder setSystemDescription(String value)
public AutoattachBuilder setSystemName(String value)
public AutoattachBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach> augmentationValue)
public AutoattachBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Autoattach>> augmentationType)
public Autoattach build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Autoattach,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.