Class CategorySetAssetSourcesActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategorySetAssetSourcesActionBuilder
- All Implemented Interfaces:
Builder<CategorySetAssetSourcesAction>
public class CategorySetAssetSourcesActionBuilder
extends Object
implements Builder<CategorySetAssetSourcesAction>
CategorySetAssetSourcesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetAssetSourcesAction categorySetAssetSourcesAction = CategorySetAssetSourcesAction.builder()
.plusSources(sourcesBuilder -> sourcesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSources
(Function<AssetSourceBuilder, AssetSource> builder) Must not be empty.New value to set.New value to set.build()
builds CategorySetAssetSourcesAction with checking for non-null required valuesbuilds CategorySetAssetSourcesAction without checking for non-null required valuesNew value to set.New value to set.Must not be empty.of()
factory method for an instance of CategorySetAssetSourcesActionBuilderof
(CategorySetAssetSourcesAction template) create builder for CategorySetAssetSourcesAction instanceplusSources
(AssetSource... sources) Must not be empty.Must not be empty.setSources
(Function<AssetSourceBuilder, AssetSource> builder) Must not be empty.sources
(AssetSource... sources) Must not be empty.sources
(List<AssetSource> sources) Must not be empty.Must not be empty.
-
Constructor Details
-
CategorySetAssetSourcesActionBuilder
public CategorySetAssetSourcesActionBuilder()
-
-
Method Details
-
assetId
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetId
- value to be set- Returns:
- Builder
-
assetKey
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetKey
- value to be set- Returns:
- Builder
-
sources
Must not be empty. At least one entry is required.
- Parameters:
sources
- value to be set- Returns:
- Builder
-
sources
Must not be empty. At least one entry is required.
- Parameters:
sources
- value to be set- Returns:
- Builder
-
plusSources
Must not be empty. At least one entry is required.
- Parameters:
sources
- value to be set- Returns:
- Builder
-
plusSources
public CategorySetAssetSourcesActionBuilder plusSources(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Must not be empty. At least one entry is required.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
withSources
public CategorySetAssetSourcesActionBuilder withSources(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Must not be empty. At least one entry is required.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
addSources
public CategorySetAssetSourcesActionBuilder addSources(Function<AssetSourceBuilder, AssetSource> builder) Must not be empty. At least one entry is required.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
setSources
public CategorySetAssetSourcesActionBuilder setSources(Function<AssetSourceBuilder, AssetSource> builder) Must not be empty. At least one entry is required.
- Parameters:
builder
- function to build the sources value- Returns:
- Builder
-
getAssetId
New value to set. Either
assetId
orassetKey
is required.- Returns:
- assetId
-
getAssetKey
New value to set. Either
assetId
orassetKey
is required.- Returns:
- assetKey
-
getSources
Must not be empty. At least one entry is required.
- Returns:
- sources
-
build
builds CategorySetAssetSourcesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategorySetAssetSourcesAction>
- Returns:
- CategorySetAssetSourcesAction
-
buildUnchecked
builds CategorySetAssetSourcesAction without checking for non-null required values- Returns:
- CategorySetAssetSourcesAction
-
of
factory method for an instance of CategorySetAssetSourcesActionBuilder- Returns:
- builder
-
of
create builder for CategorySetAssetSourcesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-