Class ProductTailoringSetAssetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetAssetCustomTypeAction>
Example to create an instance using the builder pattern
ProductTailoringSetAssetCustomTypeAction productTailoringSetAssetCustomTypeAction = ProductTailoringSetAssetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductTailoringSetAssetCustomTypeAction with checking for non-null required valuesbuilds ProductTailoringSetAssetCustomTypeAction 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 tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.getType()
Defines the Type that extends the Asset with Custom Fields.Theid
of the tailored ProductVariant to update.of()
factory method for an instance of ProductTailoringSetAssetCustomTypeActionBuilderof
(ProductTailoringSetAssetCustomTypeAction template) create builder for ProductTailoringSetAssetCustomTypeAction instanceThesku
of the tailored 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 tailored ProductVariant to update.Sets the Custom Fields fields for the Asset.Defines the Type that extends the Asset with Custom Fields.
-
Constructor Details
-
ProductTailoringSetAssetCustomTypeActionBuilder
public ProductTailoringSetAssetCustomTypeActionBuilder()
-
-
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
-
type
public ProductTailoringSetAssetCustomTypeActionBuilder 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 ProductTailoringSetAssetCustomTypeActionBuilder 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 ProductTailoringSetAssetCustomTypeActionBuilder 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 ProductTailoringSetAssetCustomTypeActionBuilder 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 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
-
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 ProductTailoringSetAssetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetAssetCustomTypeAction>
- Returns:
- ProductTailoringSetAssetCustomTypeAction
-
buildUnchecked
builds ProductTailoringSetAssetCustomTypeAction without checking for non-null required values- Returns:
- ProductTailoringSetAssetCustomTypeAction
-
of
factory method for an instance of ProductTailoringSetAssetCustomTypeActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetAssetCustomTypeActionBuilder of(ProductTailoringSetAssetCustomTypeAction template) create builder for ProductTailoringSetAssetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-