Class ChannelRemoveRolesActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelRemoveRolesActionBuilder
- All Implemented Interfaces:
Builder<ChannelRemoveRolesAction>
public class ChannelRemoveRolesActionBuilder
extends Object
implements Builder<ChannelRemoveRolesAction>
ChannelRemoveRolesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelRemoveRolesAction channelRemoveRolesAction = ChannelRemoveRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelRemoveRolesAction with checking for non-null required valuesbuilds ChannelRemoveRolesAction without checking for non-null required valuesgetRoles()
Value to remove from the array.of()
factory method for an instance of ChannelRemoveRolesActionBuilderof
(ChannelRemoveRolesAction template) create builder for ChannelRemoveRolesAction instanceplusRoles
(ChannelRoleEnum... roles) Value to remove from the array.roles
(ChannelRoleEnum... roles) Value to remove from the array.roles
(List<ChannelRoleEnum> roles) Value to remove from the array.
-
Constructor Details
-
ChannelRemoveRolesActionBuilder
public ChannelRemoveRolesActionBuilder()
-
-
Method Details
-
roles
Value to remove from the array.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
roles
Value to remove from the array.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
plusRoles
Value to remove from the array.
- Parameters:
roles
- value to be set- Returns:
- Builder
-
getRoles
Value to remove from the array.
- Returns:
- roles
-
build
builds ChannelRemoveRolesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelRemoveRolesAction>
- Returns:
- ChannelRemoveRolesAction
-
buildUnchecked
builds ChannelRemoveRolesAction without checking for non-null required values- Returns:
- ChannelRemoveRolesAction
-
of
factory method for an instance of ChannelRemoveRolesActionBuilder- Returns:
- builder
-
of
create builder for ChannelRemoveRolesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-