Class CategoryAddAssetActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategoryAddAssetActionBuilder
- All Implemented Interfaces:
Builder<CategoryAddAssetAction>
public class CategoryAddAssetActionBuilder
extends Object
implements Builder<CategoryAddAssetAction>
CategoryAddAssetActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryAddAssetAction categoryAddAssetAction = CategoryAddAssetAction.builder()
.asset(assetBuilder -> assetBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasset
(AssetDraft asset) Value to append.asset
(Function<AssetDraftBuilder, AssetDraftBuilder> builder) Value to append.build()
builds CategoryAddAssetAction with checking for non-null required valuesbuilds CategoryAddAssetAction without checking for non-null required valuesgetAsset()
Value to append.Position in the array at which the Asset should be put.of()
factory method for an instance of CategoryAddAssetActionBuilderof
(CategoryAddAssetAction template) create builder for CategoryAddAssetAction instancePosition in the array at which the Asset should be put.withAsset
(Function<AssetDraftBuilder, AssetDraft> builder) Value to append.
-
Constructor Details
-
CategoryAddAssetActionBuilder
public CategoryAddAssetActionBuilder()
-
-
Method Details
-
asset
Value to append.
- Parameters:
builder
- function to build the asset value- Returns:
- Builder
-
withAsset
Value to append.
- Parameters:
builder
- function to build the asset value- Returns:
- Builder
-
asset
Value to append.
- Parameters:
asset
- value to be set- Returns:
- Builder
-
position
Position in the array at which the Asset should be put. When specified, the value must be between
0
and the total number of Assets minus1
.- Parameters:
position
- value to be set- Returns:
- Builder
-
getAsset
Value to append.
- Returns:
- asset
-
getPosition
Position in the array at which the Asset should be put. When specified, the value must be between
0
and the total number of Assets minus1
.- Returns:
- position
-
build
builds CategoryAddAssetAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryAddAssetAction>
- Returns:
- CategoryAddAssetAction
-
buildUnchecked
builds CategoryAddAssetAction without checking for non-null required values- Returns:
- CategoryAddAssetAction
-
of
factory method for an instance of CategoryAddAssetActionBuilder- Returns:
- builder
-
of
create builder for CategoryAddAssetAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-