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