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