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