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

     ChannelSetRolesAction channelSetRolesAction = ChannelSetRolesAction.builder()
             .plusRoles(rolesBuilder -> rolesBuilder)
             .build()
 
  • 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

      public ChannelSetRolesActionBuilder plusRoles(ChannelRoleEnum... roles)

      Value to set. If not specified, then InventorySupply is assigned by default.

      Parameters:
      roles - value to be set
      Returns:
      Builder
    • getRoles

      public List<ChannelRoleEnum> getRoles()

      Value to set. If not specified, then InventorySupply is assigned by default.

      Returns:
      roles
    • build

      public ChannelSetRolesAction build()
      builds ChannelSetRolesAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ChannelSetRolesAction>
      Returns:
      ChannelSetRolesAction
    • buildUnchecked

      public ChannelSetRolesAction buildUnchecked()
      builds ChannelSetRolesAction without checking for non-null required values
      Returns:
      ChannelSetRolesAction
    • of

      public static ChannelSetRolesActionBuilder 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