Interface ChannelRemoveRolesAction
- All Superinterfaces:
ChannelUpdateAction
,ResourceUpdateAction<ChannelUpdateAction>
ChannelRemoveRolesAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelRemoveRolesAction channelRemoveRolesAction = ChannelRemoveRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ChannelRemoveRolesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ChannelRemoveRolesActionbuilder
(ChannelRemoveRolesAction template) create builder for ChannelRemoveRolesAction instancestatic ChannelRemoveRolesAction
deepCopy
(ChannelRemoveRolesAction template) factory method to create a deep copy of ChannelRemoveRolesAction@NotNull List<ChannelRoleEnum>
getRoles()
Value to remove from the array.static ChannelRemoveRolesAction
of()
factory methodstatic ChannelRemoveRolesAction
of
(ChannelRemoveRolesAction template) factory method to create a shallow copy ChannelRemoveRolesActionvoid
setRoles
(ChannelRoleEnum... roles) Value to remove from the array.void
setRoles
(List<ChannelRoleEnum> roles) Value to remove from the array.static com.fasterxml.jackson.core.type.TypeReference<ChannelRemoveRolesAction>
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
-
REMOVE_ROLES
discriminator value for ChannelRemoveRolesAction- See Also:
-
-
Method Details
-
getRoles
Value to remove from the array.
- Returns:
- roles
-
setRoles
Value to remove from the array.
- Parameters:
roles
- values to be set
-
setRoles
Value to remove from the array.
- Parameters:
roles
- values to be set
-
of
factory method- Returns:
- instance of ChannelRemoveRolesAction
-
of
factory method to create a shallow copy ChannelRemoveRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ChannelRemoveRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChannelRemoveRolesAction- Returns:
- builder
-
builder
create builder for ChannelRemoveRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChannelRemoveRolesAction
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
-