Interface StateSetRolesAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateSetRolesAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateSetRolesAction stateSetRolesAction = StateSetRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateSetRolesActionBuilder
builder()
builder factory method for StateSetRolesActionstatic StateSetRolesActionBuilder
builder
(StateSetRolesAction template) create builder for StateSetRolesAction instancestatic StateSetRolesAction
deepCopy
(StateSetRolesAction template) factory method to create a deep copy of StateSetRolesAction@NotNull List<StateRoleEnum>
getRoles()
Value to set.static StateSetRolesAction
of()
factory methodstatic StateSetRolesAction
of
(StateSetRolesAction template) factory method to create a shallow copy StateSetRolesActionvoid
setRoles
(StateRoleEnum... roles) Value to set.void
setRoles
(List<StateRoleEnum> roles) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StateSetRolesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStateSetRolesAction
(Function<StateSetRolesAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.state.StateUpdateAction
getAction, withStateUpdateAction
-
Field Details
-
SET_ROLES
discriminator value for StateSetRolesAction- See Also:
-
-
Method Details
-
getRoles
Value to set. If empty, any existing value will be removed.
- Returns:
- roles
-
setRoles
Value to set. If empty, any existing value will be removed.
- Parameters:
roles
- values to be set
-
setRoles
Value to set. If empty, any existing value will be removed.
- Parameters:
roles
- values to be set
-
of
factory method- Returns:
- instance of StateSetRolesAction
-
of
factory method to create a shallow copy StateSetRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateSetRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateSetRolesAction- Returns:
- builder
-
builder
create builder for StateSetRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateSetRolesAction
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
-