Class ProductTailoringSetAssetSourcesActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetAssetSourcesActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetAssetSourcesAction>
public class ProductTailoringSetAssetSourcesActionBuilder
extends Object
implements Builder<ProductTailoringSetAssetSourcesAction>
ProductTailoringSetAssetSourcesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetAssetSourcesAction productTailoringSetAssetSourcesAction = ProductTailoringSetAssetSourcesAction.builder()
.plusSources(sourcesBuilder -> sourcesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSources
(Function<AssetSourceBuilder, AssetSource> builder) Value to set.Theid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductTailoringSetAssetSourcesAction with checking for non-null required valuesbuilds ProductTailoringSetAssetSourcesAction without checking for non-null required valuesTheid
of the Asset to update.Thekey
of the Asset to update.getSku()
Thesku
of the tailored ProductVariant to update.Value to set.Iftrue
, only the staged Asset is updated.Theid
of the tailored ProductVariant to update.of()
factory method for an instance of ProductTailoringSetAssetSourcesActionBuilderof
(ProductTailoringSetAssetSourcesAction template) create builder for ProductTailoringSetAssetSourcesAction instanceplusSources
(AssetSource... sources) Value to set.Value to set.setSources
(Function<AssetSourceBuilder, AssetSource> builder) Value to set.Thesku
of the tailored ProductVariant to update.sources
(AssetSource... sources) Value to set.sources
(List<AssetSource> sources) Value to set.Iftrue
, only the staged Asset is updated.Theid
of the tailored ProductVariant to update.Value to set.
-
Constructor Details
-
ProductTailoringSetAssetSourcesActionBuilder
public ProductTailoringSetAssetSourcesActionBuilder()
-
-
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
-
sources
Value to set.
- Parameters:
sources
- value to be set- Returns:
- Builder
-
sources
Value to set.
- Parameters:
sources
- value to be set- Returns:
- Builder
-
plusSources
Value to set.
- Parameters:
sources
- value to be set- Returns:
- Builder
-
plusSources
public ProductTailoringSetAssetSourcesActionBuilder plusSources(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Value to set.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
withSources
public ProductTailoringSetAssetSourcesActionBuilder withSources(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Value to set.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
addSources
public ProductTailoringSetAssetSourcesActionBuilder addSources(Function<AssetSourceBuilder, AssetSource> builder) Value to set.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
setSources
public ProductTailoringSetAssetSourcesActionBuilder setSources(Function<AssetSourceBuilder, AssetSource> builder) Value to set.
- Parameters:
builder
- function to build the sources value- 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
-
getSources
Value to set.
- Returns:
- sources
-
build
builds ProductTailoringSetAssetSourcesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetAssetSourcesAction>
- Returns:
- ProductTailoringSetAssetSourcesAction
-
buildUnchecked
builds ProductTailoringSetAssetSourcesAction without checking for non-null required values- Returns:
- ProductTailoringSetAssetSourcesAction
-
of
factory method for an instance of ProductTailoringSetAssetSourcesActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetAssetSourcesActionBuilder of(ProductTailoringSetAssetSourcesAction template) create builder for ProductTailoringSetAssetSourcesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-