Class ChannelSetRolesActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelSetRolesActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ChannelSetRolesAction>
public class ChannelSetRolesActionBuilder
extends Object
implements io.vrap.rmf.base.client.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
-
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 ChannelSetRolesActionBuilder
of()
factory method for an instance of ChannelSetRolesActionBuilderstatic ChannelSetRolesActionBuilder
of
(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 not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- value to be set- Returns:
- Builder
-
roles
Value to set. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- value to be set- Returns:
- Builder
-
plusRoles
Value to set. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- value to be set- Returns:
- Builder
-
getRoles
Value to set. If not specified, then
InventorySupply
is assigned by default.- Returns:
- roles
-
build
builds ChannelSetRolesAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-