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