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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelSetRolesActionBuilderbuilder()builder factory method for ChannelSetRolesActionstatic ChannelSetRolesActionBuilderbuilder(ChannelSetRolesAction template) create builder for ChannelSetRolesAction instancecopyDeep()static ChannelSetRolesActiondeepCopy(ChannelSetRolesAction template) factory method to create a deep copy of ChannelSetRolesAction@NotNull List<ChannelRoleEnum>getRoles()Value to set.static ChannelSetRolesActionof()factory methodstatic ChannelSetRolesActionof(ChannelSetRolesAction template) factory method to create a shallow copy ChannelSetRolesActionvoidsetRoles(ChannelRoleEnum... roles) Value to set.voidsetRoles(List<ChannelRoleEnum> roles) Value to set.static tools.jackson.core.type.TypeReference<ChannelSetRolesAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.channel.ChannelUpdateAction
getAction, withChannelUpdateActionMethods 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 set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Returns:
- roles
-
setRoles
Value to set. If set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Parameters:
roles- values to be set
-
setRoles
Value to set. If set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- 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
-
copyDeep
ChannelSetRolesAction copyDeep()- Specified by:
copyDeepin interfaceChannelUpdateAction
-
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
-