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