Interface CategorySetAssetSourcesAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
CategorySetAssetSourcesAction
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategorySetAssetSourcesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategorySetAssetSourcesActionbuilder
(CategorySetAssetSourcesAction template) create builder for CategorySetAssetSourcesAction instancedeepCopy
(CategorySetAssetSourcesAction template) factory method to create a deep copy of CategorySetAssetSourcesActionNew value to set.New value to set.@NotNull @Valid List<AssetSource>
Must not be empty.of()
factory methodof
(CategorySetAssetSourcesAction template) factory method to create a shallow copy CategorySetAssetSourcesActionvoid
setAssetId
(String assetId) New value to set.void
setAssetKey
(String assetKey) New value to set.void
setSources
(AssetSource... sources) Must not be empty.void
setSources
(List<AssetSource> sources) Must not be empty.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetSourcesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ASSET_SOURCES
discriminator value for CategorySetAssetSourcesAction- See Also:
-
-
Method Details
-
getAssetId
String getAssetId()New value to set. Either
assetId
orassetKey
is required.- Returns:
- assetId
-
getAssetKey
String 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
-
setAssetId
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetId
- value to be set
-
setAssetKey
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetKey
- value to be set
-
setSources
Must not be empty. At least one entry is required.
- Parameters:
sources
- values to be set
-
setSources
Must not be empty. At least one entry is required.
- Parameters:
sources
- values to be set
-
of
factory method- Returns:
- instance of CategorySetAssetSourcesAction
-
of
factory method to create a shallow copy CategorySetAssetSourcesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CategorySetAssetSourcesAction deepCopy(@Nullable CategorySetAssetSourcesAction template) factory method to create a deep copy of CategorySetAssetSourcesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetAssetSourcesAction- Returns:
- builder
-
builder
create builder for CategorySetAssetSourcesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetAssetSourcesAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-