Class ProductSetAssetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<ProductSetAssetCustomFieldAction>
Example to create an instance using the builder pattern
ProductSetAssetCustomFieldAction productSetAssetCustomFieldAction = ProductSetAssetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds ProductSetAssetCustomFieldAction with checking for non-null required valuesbuilds ProductSetAssetCustomFieldAction 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 ProductVariant to update.Iftrue, only the staged Asset is updated.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Theidof the ProductVariant to update.Name of the Custom Field.of()factory method for an instance of ProductSetAssetCustomFieldActionBuilderof(ProductSetAssetCustomFieldAction template) create builder for ProductSetAssetCustomFieldAction instanceTheskuof the ProductVariant to update.Iftrue, only the staged Asset is updated.Ifvalueis absent ornull, this field will be removed if it exists.Theidof the ProductVariant to update.
-
Constructor Details
-
ProductSetAssetCustomFieldActionBuilder
public ProductSetAssetCustomFieldActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the 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 ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the 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 ProductSetAssetCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSetAssetCustomFieldAction>- Returns:
- ProductSetAssetCustomFieldAction
-
buildUnchecked
builds ProductSetAssetCustomFieldAction without checking for non-null required values- Returns:
- ProductSetAssetCustomFieldAction
-
of
factory method for an instance of ProductSetAssetCustomFieldActionBuilder- Returns:
- builder
-
of
create builder for ProductSetAssetCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-