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