Interface ChannelAddRolesAction
- All Superinterfaces:
ChannelUpdateAction
,ResourceUpdateAction<ChannelUpdateAction>
ChannelAddRolesAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelAddRolesAction channelAddRolesAction = ChannelAddRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelAddRolesActionBuilder
builder()
builder factory method for ChannelAddRolesActionstatic ChannelAddRolesActionBuilder
builder
(ChannelAddRolesAction template) create builder for ChannelAddRolesAction instancestatic ChannelAddRolesAction
deepCopy
(ChannelAddRolesAction template) factory method to create a deep copy of ChannelAddRolesAction@NotNull List<ChannelRoleEnum>
getRoles()
Value to append to the array.static ChannelAddRolesAction
of()
factory methodstatic ChannelAddRolesAction
of
(ChannelAddRolesAction template) factory method to create a shallow copy ChannelAddRolesActionvoid
setRoles
(ChannelRoleEnum... roles) Value to append to the array.void
setRoles
(List<ChannelRoleEnum> roles) Value to append to the array.static com.fasterxml.jackson.core.type.TypeReference<ChannelAddRolesAction>
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
-
ADD_ROLES
discriminator value for ChannelAddRolesAction- See Also:
-
-
Method Details
-
getRoles
Value to append to the array.
- Returns:
- roles
-
setRoles
Value to append to the array.
- Parameters:
roles
- values to be set
-
setRoles
Value to append to the array.
- Parameters:
roles
- values to be set
-
of
factory method- Returns:
- instance of ChannelAddRolesAction
-
of
factory method to create a shallow copy ChannelAddRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ChannelAddRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChannelAddRolesAction- Returns:
- builder
-
builder
create builder for ChannelAddRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChannelAddRolesAction
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
-