Class VariantBulkUpdateItemBuilder
- All Implemented Interfaces:
Builder<VariantBulkUpdateItem>
Example to create an instance using the builder pattern
VariantBulkUpdateItem variantBulkUpdateItem = VariantBulkUpdateItem.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantBulkUpdateItem with checking for non-null required valuesbuilds VariantBulkUpdateItem without checking for non-null required valuesgetId()Unique identifier of the Variant to update.getKey()User-defined unique identifier of the Variant to update.Expected version of the Variant.Unique identifier of the Variant to update.User-defined unique identifier of the Variant to update.static VariantBulkUpdateItemBuilderof()factory method for an instance of VariantBulkUpdateItemBuilderstatic VariantBulkUpdateItemBuilderof(VariantBulkUpdateItem template) create builder for VariantBulkUpdateItem instanceExpected version of the Variant.
-
Constructor Details
-
VariantBulkUpdateItemBuilder
public VariantBulkUpdateItemBuilder()
-
-
Method Details
-
id
Unique identifier of the Variant to update. Either
idorkeymust be provided.- Parameters:
id- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the Variant to update. Either
idorkeymust be provided.- Parameters:
key- value to be set- Returns:
- Builder
-
version
Expected version of the Variant. Required when the
versionControlquery parameter isOn(the default). If the version does not match, a ConcurrentModification error is returned for that item. Not required whenversionControl=Off.- Parameters:
version- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Variant to update. Either
idorkeymust be provided.- Returns:
- id
-
getKey
User-defined unique identifier of the Variant to update. Either
idorkeymust be provided.- Returns:
- key
-
getVersion
Expected version of the Variant. Required when the
versionControlquery parameter isOn(the default). If the version does not match, a ConcurrentModification error is returned for that item. Not required whenversionControl=Off.- Returns:
- version
-
build
builds VariantBulkUpdateItem with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantBulkUpdateItem>- Returns:
- VariantBulkUpdateItem
-
buildUnchecked
builds VariantBulkUpdateItem without checking for non-null required values- Returns:
- VariantBulkUpdateItem
-
of
factory method for an instance of VariantBulkUpdateItemBuilder- Returns:
- builder
-
of
create builder for VariantBulkUpdateItem instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-