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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StateRemoveRolesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StateRemoveRolesActionbuilder(StateRemoveRolesAction template) create builder for StateRemoveRolesAction instancecopyDeep()static StateRemoveRolesActiondeepCopy(StateRemoveRolesAction template) factory method to create a deep copy of StateRemoveRolesAction@NotNull List<StateRoleEnum>getRoles()Roles to remove from the State.static StateRemoveRolesActionof()factory methodstatic StateRemoveRolesActionof(StateRemoveRolesAction template) factory method to create a shallow copy StateRemoveRolesActionvoidsetRoles(StateRoleEnum... roles) Roles to remove from the State.voidsetRoles(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
-
copyDeep
StateRemoveRolesAction copyDeep()- Specified by:
copyDeepin interfaceStateUpdateAction
-
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
-