Class ProductSetAssetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ProductSetAssetCustomTypeAction>
Example to create an instance using the builder pattern
ProductSetAssetCustomTypeAction productSetAssetCustomTypeAction = ProductSetAssetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductSetAssetCustomTypeAction with checking for non-null required valuesbuilds ProductSetAssetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Asset.Sets the Custom Fields fields for the Asset.Theid
of the Asset to update.Thekey
of the Asset to update.Sets the Custom Fields fields for the Asset.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.getType()
Defines the Type that extends the Asset with Custom Fields.Theid
of the ProductVariant to update.of()
factory method for an instance of ProductSetAssetCustomTypeActionBuilderof
(ProductSetAssetCustomTypeAction template) create builder for ProductSetAssetCustomTypeAction instanceThesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.type
(TypeResourceIdentifier type) Defines the Type that extends the Asset with Custom Fields.Defines the Type that extends the Asset with Custom Fields.Theid
of the ProductVariant to update.Sets the Custom Fields fields for the Asset.Defines the Type that extends the Asset with Custom Fields.
-
Constructor Details
-
ProductSetAssetCustomTypeActionBuilder
public ProductSetAssetCustomTypeActionBuilder()
-
-
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
-
type
public ProductSetAssetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ProductSetAssetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ProductSetAssetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Asset.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ProductSetAssetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Asset.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Asset.
- Parameters:
fields
- 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
-
getType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Asset.
- Returns:
- fields
-
build
builds ProductSetAssetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetAssetCustomTypeAction>
- Returns:
- ProductSetAssetCustomTypeAction
-
buildUnchecked
builds ProductSetAssetCustomTypeAction without checking for non-null required values- Returns:
- ProductSetAssetCustomTypeAction
-
of
factory method for an instance of ProductSetAssetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for ProductSetAssetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-