Class ChannelAddRolesActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelAddRolesActionBuilder
- All Implemented Interfaces:
Builder<ChannelAddRolesAction>
ChannelAddRolesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelAddRolesAction channelAddRolesAction = ChannelAddRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ChannelAddRolesAction with checking for non-null required valuesbuilds ChannelAddRolesAction without checking for non-null required valuesgetRoles()Value to append to the array.static ChannelAddRolesActionBuilderof()factory method for an instance of ChannelAddRolesActionBuilderstatic ChannelAddRolesActionBuilderof(ChannelAddRolesAction template) create builder for ChannelAddRolesAction instanceplusRoles(ChannelRoleEnum... roles) Value to append to the array.roles(ChannelRoleEnum... roles) Value to append to the array.roles(List<ChannelRoleEnum> roles) Value to append to the array.
-
Constructor Details
-
ChannelAddRolesActionBuilder
public ChannelAddRolesActionBuilder()
-
-
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 ChannelAddRolesAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChannelAddRolesAction>- Returns:
- ChannelAddRolesAction
-
buildUnchecked
builds ChannelAddRolesAction without checking for non-null required values- Returns:
- ChannelAddRolesAction
-
of
factory method for an instance of ChannelAddRolesActionBuilder- Returns:
- builder
-
of
create builder for ChannelAddRolesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-