Class ProductTailoringSetAssetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetAssetCustomFieldAction>
Example to create an instance using the builder pattern
ProductTailoringSetAssetCustomFieldAction productTailoringSetAssetCustomFieldAction = ProductTailoringSetAssetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds ProductTailoringSetAssetCustomFieldAction with checking for non-null required valuesbuilds ProductTailoringSetAssetCustomFieldAction without checking for non-null required valuesTheidof the Asset to update.Thekeyof the Asset to update.getName()Name of the Custom Field.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is updated.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Theidof the tailored ProductVariant to update.Name of the Custom Field.of()factory method for an instance of ProductTailoringSetAssetCustomFieldActionBuilderof(ProductTailoringSetAssetCustomFieldAction template) create builder for ProductTailoringSetAssetCustomFieldAction instanceTheskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is updated.Ifvalueis absent ornull, this field will be removed if it exists.Theidof the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringSetAssetCustomFieldActionBuilder
public ProductTailoringSetAssetCustomFieldActionBuilder()
-
-
Method Details
-
variantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the tailored ProductVariant to update.- Parameters:
sku- value to be set- Returns:
- Builder
-
staged
If
true, only the staged Asset is updated. Iffalse, both the current and staged Asset is updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
assetId
The
idof the Asset to update.- Parameters:
assetId- value to be set- Returns:
- Builder
-
assetKey
The
keyof the Asset to update.- Parameters:
assetKey- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
value
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Parameters:
value- value to be set- Returns:
- Builder
-
getVariantId
The
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the tailored ProductVariant to update.- Returns:
- sku
-
getStaged
If
true, only the staged Asset is updated. Iffalse, both the current and staged Asset is updated.- Returns:
- staged
-
getAssetId
The
idof the Asset to update.- Returns:
- assetId
-
getAssetKey
The
keyof the Asset to update.- Returns:
- assetKey
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
build
builds ProductTailoringSetAssetCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTailoringSetAssetCustomFieldAction>- Returns:
- ProductTailoringSetAssetCustomFieldAction
-
buildUnchecked
builds ProductTailoringSetAssetCustomFieldAction without checking for non-null required values- Returns:
- ProductTailoringSetAssetCustomFieldAction
-
of
factory method for an instance of ProductTailoringSetAssetCustomFieldActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetAssetCustomFieldActionBuilder of(ProductTailoringSetAssetCustomFieldAction template) create builder for ProductTailoringSetAssetCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-