Class StateRemoveRolesActionBuilder
java.lang.Object
com.commercetools.api.models.state.StateRemoveRolesActionBuilder
- All Implemented Interfaces:
Builder<StateRemoveRolesAction>
public class StateRemoveRolesActionBuilder
extends Object
implements Builder<StateRemoveRolesAction>
StateRemoveRolesActionBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StateRemoveRolesAction with checking for non-null required valuesbuilds StateRemoveRolesAction without checking for non-null required valuesgetRoles()
Roles to remove from the State.of()
factory method for an instance of StateRemoveRolesActionBuilderof
(StateRemoveRolesAction template) create builder for StateRemoveRolesAction instanceplusRoles
(StateRoleEnum... roles) Roles to remove from the State.roles
(StateRoleEnum... roles) Roles to remove from the State.roles
(List<StateRoleEnum> roles) Roles to remove from the State.
-
Constructor Details
-
StateRemoveRolesActionBuilder
public StateRemoveRolesActionBuilder()
-
-
Method Details
-
roles
Roles to remove from the State.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
roles
Roles to remove from the State.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
plusRoles
Roles to remove from the State.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
getRoles
Roles to remove from the State.
- Returns:
- roles
-
build
builds StateRemoveRolesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StateRemoveRolesAction>
- Returns:
- StateRemoveRolesAction
-
buildUnchecked
builds StateRemoveRolesAction without checking for non-null required values- Returns:
- StateRemoveRolesAction
-
of
factory method for an instance of StateRemoveRolesActionBuilder- Returns:
- builder
-
of
create builder for StateRemoveRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-