public class WavebandSwitchingLabelBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<WavebandSwitchingLabel>
WavebandSwitchingLabelBuilder 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:
WavebandSwitchingLabelBuilder createTarget(int fooXyzzy, int barBaz) {
return new WavebandSwitchingLabelBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of WavebandSwitchingLabelBuilder, 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 methodWavebandSwitchingLabelBuilder,
Builder| Constructor and Description |
|---|
WavebandSwitchingLabelBuilder() |
WavebandSwitchingLabelBuilder(CLabel arg) |
WavebandSwitchingLabelBuilder(WavebandSwitchingLabel arg) |
WavebandSwitchingLabelBuilder(WavebandSwitchingLabel base) |
| Modifier and Type | Method and Description |
|---|---|
WavebandSwitchingLabelBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel>> |
augmentation(Class<E$$> augmentationType) |
WavebandSwitchingLabel |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Long |
getEndLabel() |
Long |
getStartLabel() |
Long |
getWavebandId() |
WavebandSwitchingLabelBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel>> augmentationType) |
WavebandSwitchingLabelBuilder |
setEndLabel(Long value) |
WavebandSwitchingLabelBuilder |
setStartLabel(Long value) |
WavebandSwitchingLabelBuilder |
setWavebandId(Long value) |
public WavebandSwitchingLabelBuilder()
public WavebandSwitchingLabelBuilder(WavebandSwitchingLabel arg)
public WavebandSwitchingLabelBuilder(CLabel arg)
public WavebandSwitchingLabelBuilder(WavebandSwitchingLabel base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Long getEndLabel()
public Long getStartLabel()
public Long getWavebandId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel>> E$$ augmentation(Class<E$$> augmentationType)
public WavebandSwitchingLabelBuilder setEndLabel(Long value)
public WavebandSwitchingLabelBuilder setStartLabel(Long value)
public WavebandSwitchingLabelBuilder setWavebandId(Long value)
public WavebandSwitchingLabelBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel> augmentationValue)
public WavebandSwitchingLabelBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<WavebandSwitchingLabel>> augmentationType)
public WavebandSwitchingLabel build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<WavebandSwitchingLabel,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.