Class ChannelAddRolesActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelAddRolesActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ChannelAddRolesAction>
public class ChannelAddRolesActionBuilder
extends Object
implements io.vrap.rmf.base.client.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
-
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 ChannelAddRolesActionBuilder
of()
factory method for an instance of ChannelAddRolesActionBuilderstatic ChannelAddRolesActionBuilder
of
(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:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-