Class ProductTailoringAddVariantActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringAddVariantAction>
Example to create an instance using the builder pattern
ProductTailoringAddVariantAction productTailoringAddVariantAction = ProductTailoringAddVariantAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAssets
(Function<AssetDraftBuilder, AssetDraft> builder) Media assets for the Product Variant Tailoring.Attributes for the Product Variant Tailoring.addImages
(Function<ImageBuilder, Image> builder) Images for the Product Variant Tailoring.assets
(AssetDraft... assets) Media assets for the Product Variant Tailoring.assets
(List<AssetDraft> assets) Media assets for the Product Variant Tailoring.attributes
(ProductTailoringAttribute... attributes) Attributes for the Product Variant Tailoring.attributes
(List<ProductTailoringAttribute> attributes) Attributes for the Product Variant Tailoring.build()
builds ProductTailoringAddVariantAction with checking for non-null required valuesbuilds ProductTailoringAddVariantAction without checking for non-null required valuesMedia assets for the Product Variant Tailoring.Attributes for the Product Variant Tailoring.getId()
Theid
of the tailored ProductVariant to update.Images for the Product Variant Tailoring.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
the new Product Variant Tailoring is only staged.Theid
of the tailored ProductVariant to update.Images for the Product Variant Tailoring.Images for the Product Variant Tailoring.of()
factory method for an instance of ProductTailoringAddVariantActionBuilderof
(ProductTailoringAddVariantAction template) create builder for ProductTailoringAddVariantAction instanceplusAssets
(AssetDraft... assets) Media assets for the Product Variant Tailoring.plusAssets
(Function<AssetDraftBuilder, AssetDraftBuilder> builder) Media assets for the Product Variant Tailoring.plusAttributes
(ProductTailoringAttribute... attributes) Attributes for the Product Variant Tailoring.Attributes for the Product Variant Tailoring.plusImages
(Image... images) Images for the Product Variant Tailoring.plusImages
(Function<ImageBuilder, ImageBuilder> builder) Images for the Product Variant Tailoring.setAssets
(Function<AssetDraftBuilder, AssetDraft> builder) Media assets for the Product Variant Tailoring.Attributes for the Product Variant Tailoring.setImages
(Function<ImageBuilder, Image> builder) Images for the Product Variant Tailoring.Thesku
of the tailored ProductVariant to update.Iftrue
the new Product Variant Tailoring is only staged.withAssets
(Function<AssetDraftBuilder, AssetDraftBuilder> builder) Media assets for the Product Variant Tailoring.Attributes for the Product Variant Tailoring.withImages
(Function<ImageBuilder, ImageBuilder> builder) Images for the Product Variant Tailoring.
-
Constructor Details
-
ProductTailoringAddVariantActionBuilder
public ProductTailoringAddVariantActionBuilder()
-
-
Method Details
-
id
The
id
of the tailored ProductVariant to update.- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
The
sku
of the tailored ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
images
Images for the Product Variant Tailoring.
- Parameters:
images
- value to be set- Returns:
- Builder
-
images
Images for the Product Variant Tailoring.
- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Images for the Product Variant Tailoring.
- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
public ProductTailoringAddVariantActionBuilder plusImages(Function<ImageBuilder, ImageBuilder> builder) Images for the Product Variant Tailoring.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
public ProductTailoringAddVariantActionBuilder withImages(Function<ImageBuilder, ImageBuilder> builder) Images for the Product Variant Tailoring.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
Images for the Product Variant Tailoring.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
Images for the Product Variant Tailoring.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
assets
Media assets for the Product Variant Tailoring.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
assets
Media assets for the Product Variant Tailoring.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
Media assets for the Product Variant Tailoring.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
public ProductTailoringAddVariantActionBuilder plusAssets(Function<AssetDraftBuilder, AssetDraftBuilder> builder) Media assets for the Product Variant Tailoring.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
withAssets
public ProductTailoringAddVariantActionBuilder withAssets(Function<AssetDraftBuilder, AssetDraftBuilder> builder) Media assets for the Product Variant Tailoring.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
addAssets
public ProductTailoringAddVariantActionBuilder addAssets(Function<AssetDraftBuilder, AssetDraft> builder) Media assets for the Product Variant Tailoring.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
setAssets
public ProductTailoringAddVariantActionBuilder setAssets(Function<AssetDraftBuilder, AssetDraft> builder) Media assets for the Product Variant Tailoring.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
attributes
public ProductTailoringAddVariantActionBuilder attributes(@Nullable ProductTailoringAttribute... attributes) Attributes for the Product Variant Tailoring.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
public ProductTailoringAddVariantActionBuilder attributes(@Nullable List<ProductTailoringAttribute> attributes) Attributes for the Product Variant Tailoring.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public ProductTailoringAddVariantActionBuilder plusAttributes(@Nullable ProductTailoringAttribute... attributes) Attributes for the Product Variant Tailoring.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public ProductTailoringAddVariantActionBuilder plusAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttributeBuilder> builder) Attributes for the Product Variant Tailoring.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public ProductTailoringAddVariantActionBuilder withAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttributeBuilder> builder) Attributes for the Product Variant Tailoring.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
addAttributes
public ProductTailoringAddVariantActionBuilder addAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttribute> builder) Attributes for the Product Variant Tailoring.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
setAttributes
public ProductTailoringAddVariantActionBuilder setAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttribute> builder) Attributes for the Product Variant Tailoring.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
staged
If
true
the new Product Variant Tailoring is only staged. Iffalse
the new Product Variant Tailoring is both current and staged.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getId
The
id
of the tailored ProductVariant to update.- Returns:
- id
-
getSku
The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getImages
Images for the Product Variant Tailoring.
- Returns:
- images
-
getAssets
Media assets for the Product Variant Tailoring.
- Returns:
- assets
-
getAttributes
Attributes for the Product Variant Tailoring.
- Returns:
- attributes
-
getStaged
If
true
the new Product Variant Tailoring is only staged. Iffalse
the new Product Variant Tailoring is both current and staged.- Returns:
- staged
-
build
builds ProductTailoringAddVariantAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringAddVariantAction>
- Returns:
- ProductTailoringAddVariantAction
-
buildUnchecked
builds ProductTailoringAddVariantAction without checking for non-null required values- Returns:
- ProductTailoringAddVariantAction
-
of
factory method for an instance of ProductTailoringAddVariantActionBuilder- Returns:
- builder
-
of
create builder for ProductTailoringAddVariantAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-