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
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductSetAssetCustomFieldAction with checking for non-null required valuesbuilds ProductSetAssetCustomFieldAction 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 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 ProductVariant to update.Name of the Custom Field.of()
factory method for an instance of ProductSetAssetCustomFieldActionBuilderof
(ProductSetAssetCustomFieldAction template) create builder for ProductSetAssetCustomFieldAction instanceThesku
of the 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 ProductVariant to update.
-
Constructor Details
-
ProductSetAssetCustomFieldActionBuilder
public ProductSetAssetCustomFieldActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of 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
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 ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of 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
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 ProductSetAssetCustomFieldAction with checking for non-null required values- Specified by:
build
in 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
-