Interface ChannelSetRolesAction
- All Superinterfaces:
ChannelUpdateAction
,ResourceUpdateAction<ChannelUpdateAction>
ChannelSetRolesAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelSetRolesAction channelSetRolesAction = ChannelSetRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelSetRolesActionBuilder
builder()
builder factory method for ChannelSetRolesActionstatic ChannelSetRolesActionBuilder
builder
(ChannelSetRolesAction template) create builder for ChannelSetRolesAction instancestatic ChannelSetRolesAction
deepCopy
(ChannelSetRolesAction template) factory method to create a deep copy of ChannelSetRolesAction@NotNull List<ChannelRoleEnum>
getRoles()
Value to set.static ChannelSetRolesAction
of()
factory methodstatic ChannelSetRolesAction
of
(ChannelSetRolesAction template) factory method to create a shallow copy ChannelSetRolesActionvoid
setRoles
(ChannelRoleEnum... roles) Value to set.void
setRoles
(List<ChannelRoleEnum> roles) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ChannelSetRolesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.channel.ChannelUpdateAction
getAction, withChannelUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ROLES
discriminator value for ChannelSetRolesAction- See Also:
-
-
Method Details
-
getRoles
Value to set. If not specified, then
InventorySupply
is assigned by default.- Returns:
- roles
-
setRoles
Value to set. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- values to be set
-
setRoles
Value to set. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- values to be set
-
of
factory method- Returns:
- instance of ChannelSetRolesAction
-
of
factory method to create a shallow copy ChannelSetRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ChannelSetRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChannelSetRolesAction- Returns:
- builder
-
builder
create builder for ChannelSetRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChannelSetRolesAction
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
-