Interface StateAddRolesAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateAddRolesAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateAddRolesAction stateAddRolesAction = StateAddRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateAddRolesActionBuilder
builder()
builder factory method for StateAddRolesActionstatic StateAddRolesActionBuilder
builder
(StateAddRolesAction template) create builder for StateAddRolesAction instancestatic StateAddRolesAction
deepCopy
(StateAddRolesAction template) factory method to create a deep copy of StateAddRolesAction@NotNull List<StateRoleEnum>
getRoles()
Value to append to the array.static StateAddRolesAction
of()
factory methodstatic StateAddRolesAction
of
(StateAddRolesAction template) factory method to create a shallow copy StateAddRolesActionvoid
setRoles
(StateRoleEnum... roles) Value to append to the array.void
setRoles
(List<StateRoleEnum> roles) Value to append to the array.static com.fasterxml.jackson.core.type.TypeReference<StateAddRolesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStateAddRolesAction
(Function<StateAddRolesAction, 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
-
ADD_ROLES
discriminator value for StateAddRolesAction- 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 StateAddRolesAction
-
of
factory method to create a shallow copy StateAddRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateAddRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateAddRolesAction- Returns:
- builder
-
builder
create builder for StateAddRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateAddRolesAction
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
-