Class CustomerSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.customer.CustomerSetKeyActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CustomerSetKeyAction>

public class CustomerSetKeyActionBuilder extends Object implements io.vrap.rmf.base.client.Builder<CustomerSetKeyAction>
CustomerSetKeyActionBuilder
Example to create an instance using the builder pattern

     CustomerSetKeyAction customerSetKeyAction = CustomerSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • CustomerSetKeyActionBuilder

      public CustomerSetKeyActionBuilder()
  • Method Details

    • 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 CustomerSetKeyAction build()
      builds CustomerSetKeyAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<CustomerSetKeyAction>
      Returns:
      CustomerSetKeyAction
    • buildUnchecked

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

      public static CustomerSetKeyActionBuilder of()
      factory method for an instance of CustomerSetKeyActionBuilder
      Returns:
      builder
    • of

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