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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StateAddRolesActionBuilderbuilder()builder factory method for StateAddRolesActionstatic StateAddRolesActionBuilderbuilder(StateAddRolesAction template) create builder for StateAddRolesAction instancecopyDeep()static StateAddRolesActiondeepCopy(StateAddRolesAction template) factory method to create a deep copy of StateAddRolesAction@NotNull List<StateRoleEnum>getRoles()Value to append to the array.static StateAddRolesActionof()factory methodstatic StateAddRolesActionof(StateAddRolesAction template) factory method to create a shallow copy StateAddRolesActionvoidsetRoles(StateRoleEnum... roles) Value to append to the array.voidsetRoles(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> TwithStateAddRolesAction(Function<StateAddRolesAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
-
copyDeep
StateAddRolesAction copyDeep()- Specified by:
copyDeepin interfaceStateUpdateAction
-
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
-