Class CustomerGroupSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.customer_group.CustomerGroupSetKeyActionBuilder
All Implemented Interfaces:
Builder<CustomerGroupSetKeyAction>

public class CustomerGroupSetKeyActionBuilder extends Object implements Builder<CustomerGroupSetKeyAction>
CustomerGroupSetKeyActionBuilder
Example to create an instance using the builder pattern

     CustomerGroupSetKeyAction customerGroupSetKeyAction = CustomerGroupSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • CustomerGroupSetKeyActionBuilder

      public CustomerGroupSetKeyActionBuilder()
  • Method Details

    • key

      public CustomerGroupSetKeyActionBuilder key(@Nullable String key)

      If key is absent or null, the existing key, if any, will be removed.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      @Nullable public String getKey()

      If key is absent or null, the existing key, if any, will be removed.

      Returns:
      key
    • build

      public CustomerGroupSetKeyAction build()
      builds CustomerGroupSetKeyAction with checking for non-null required values
      Specified by:
      build in interface Builder<CustomerGroupSetKeyAction>
      Returns:
      CustomerGroupSetKeyAction
    • buildUnchecked

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

      factory method for an instance of CustomerGroupSetKeyActionBuilder
      Returns:
      builder
    • of

      create builder for CustomerGroupSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder