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
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductTailoringSetAssetCustomFieldAction with checking for non-null required valuesbuilds ProductTailoringSetAssetCustomFieldAction without checking for non-null required valuesTheid
of the Asset to update.Thekey
of the Asset to update.getName()
Name of the Custom Field.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.Theid
of the tailored ProductVariant to update.Name of the Custom Field.of()
factory method for an instance of ProductTailoringSetAssetCustomFieldActionBuilderof
(ProductTailoringSetAssetCustomFieldAction template) create builder for ProductTailoringSetAssetCustomFieldAction instanceThesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.Ifvalue
is absent ornull
, this field will be removed if it exists.Theid
of the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringSetAssetCustomFieldActionBuilder
public ProductTailoringSetAssetCustomFieldActionBuilder()
-
-
Method Details
-
variantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of 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
id
of the Asset to update.- Parameters:
assetId
- value to be set- Returns:
- Builder
-
assetKey
The
key
of 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
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of 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
id
of the Asset to update.- Returns:
- assetId
-
getAssetKey
The
key
of the Asset to update.- Returns:
- assetKey
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds ProductTailoringSetAssetCustomFieldAction with checking for non-null required values- Specified by:
build
in 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
-