Class ChannelSetRolesActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelSetRolesActionBuilder
- All Implemented Interfaces:
Builder<ChannelSetRolesAction>
ChannelSetRolesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelSetRolesAction channelSetRolesAction = ChannelSetRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ChannelSetRolesAction with checking for non-null required valuesbuilds ChannelSetRolesAction without checking for non-null required valuesgetRoles()Value to set.static ChannelSetRolesActionBuilderof()factory method for an instance of ChannelSetRolesActionBuilderstatic ChannelSetRolesActionBuilderof(ChannelSetRolesAction template) create builder for ChannelSetRolesAction instanceplusRoles(ChannelRoleEnum... roles) Value to set.roles(ChannelRoleEnum... roles) Value to set.roles(List<ChannelRoleEnum> roles) Value to set.
-
Constructor Details
-
ChannelSetRolesActionBuilder
public ChannelSetRolesActionBuilder()
-
-
Method Details
-
roles
Value to set. If set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Parameters:
roles- value to be set- Returns:
- Builder
-
roles
Value to set. If set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Parameters:
roles- value to be set- Returns:
- Builder
-
plusRoles
Value to set. If set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Parameters:
roles- value to be set- Returns:
- Builder
-
getRoles
Value to set. If set to an empty array, an InvalidOperation error is returned.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Returns:
- roles
-
build
builds ChannelSetRolesAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChannelSetRolesAction>- Returns:
- ChannelSetRolesAction
-
buildUnchecked
builds ChannelSetRolesAction without checking for non-null required values- Returns:
- ChannelSetRolesAction
-
of
factory method for an instance of ChannelSetRolesActionBuilder- Returns:
- builder
-
of
create builder for ChannelSetRolesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-