Class StateSetRolesActionBuilder
java.lang.Object
com.commercetools.api.models.state.StateSetRolesActionBuilder
- All Implemented Interfaces:
Builder<StateSetRolesAction>
StateSetRolesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateSetRolesAction stateSetRolesAction = StateSetRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StateSetRolesAction with checking for non-null required valuesbuilds StateSetRolesAction without checking for non-null required valuesgetRoles()
Value to set.static StateSetRolesActionBuilder
of()
factory method for an instance of StateSetRolesActionBuilderstatic StateSetRolesActionBuilder
of
(StateSetRolesAction template) create builder for StateSetRolesAction instanceplusRoles
(StateRoleEnum... roles) Value to set.roles
(StateRoleEnum... roles) Value to set.roles
(List<StateRoleEnum> roles) Value to set.
-
Constructor Details
-
StateSetRolesActionBuilder
public StateSetRolesActionBuilder()
-
-
Method Details
-
roles
Value to set. If empty, any existing value will be removed.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
roles
Value to set. If empty, any existing value will be removed.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
plusRoles
Value to set. If empty, any existing value will be removed.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
getRoles
Value to set. If empty, any existing value will be removed.
- Returns:
- roles
-
build
builds StateSetRolesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StateSetRolesAction>
- Returns:
- StateSetRolesAction
-
buildUnchecked
builds StateSetRolesAction without checking for non-null required values- Returns:
- StateSetRolesAction
-
of
factory method for an instance of StateSetRolesActionBuilder- Returns:
- builder
-
of
create builder for StateSetRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-