Class ProductSetAssetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ProductSetAssetCustomTypeAction>
Example to create an instance using the builder pattern
ProductSetAssetCustomTypeAction productSetAssetCustomTypeAction = ProductSetAssetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof 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.Theidof the Asset to update.Thekeyof the Asset to update.Sets the Custom Fields fields for the Asset.getSku()Theskuof the ProductVariant to update.Iftrue, only the staged Asset is updated.getType()Defines the Type that extends the Asset with Custom Fields.Theidof the ProductVariant to update.of()factory method for an instance of ProductSetAssetCustomTypeActionBuilderof(ProductSetAssetCustomTypeAction template) create builder for ProductSetAssetCustomTypeAction instanceTheskuof 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.Theidof 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
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
-
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
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
-
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:
buildin 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
-