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