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