Interface StateRemoveRolesAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateRemoveRolesAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateRemoveRolesAction stateRemoveRolesAction = StateRemoveRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StateRemoveRolesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StateRemoveRolesActionbuilder
(StateRemoveRolesAction template) create builder for StateRemoveRolesAction instancestatic StateRemoveRolesAction
deepCopy
(StateRemoveRolesAction template) factory method to create a deep copy of StateRemoveRolesAction@NotNull List<StateRoleEnum>
getRoles()
Roles to remove from the State.static StateRemoveRolesAction
of()
factory methodstatic StateRemoveRolesAction
of
(StateRemoveRolesAction template) factory method to create a shallow copy StateRemoveRolesActionvoid
setRoles
(StateRoleEnum... roles) Roles to remove from the State.void
setRoles
(List<StateRoleEnum> roles) Roles to remove from the State.static com.fasterxml.jackson.core.type.TypeReference<StateRemoveRolesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
REMOVE_ROLES
discriminator value for StateRemoveRolesAction- See Also:
-
-
Method Details
-
getRoles
Roles to remove from the State.
- Returns:
- roles
-
setRoles
Roles to remove from the State.
- Parameters:
roles
- values to be set
-
setRoles
Roles to remove from the State.
- Parameters:
roles
- values to be set
-
of
factory method- Returns:
- instance of StateRemoveRolesAction
-
of
factory method to create a shallow copy StateRemoveRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateRemoveRolesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateRemoveRolesAction- Returns:
- builder
-
builder
create builder for StateRemoveRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateRemoveRolesAction
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
-