Class CustomerSetAddressCustomFieldActionBuilder

java.lang.Object
com.commercetools.api.models.customer.CustomerSetAddressCustomFieldActionBuilder
All Implemented Interfaces:
Builder<CustomerSetAddressCustomFieldAction>

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

     CustomerSetAddressCustomFieldAction customerSetAddressCustomFieldAction = CustomerSetAddressCustomFieldAction.builder()
             .addressId("{addressId}")
             .name("{name}")
             .build()
 
  • Constructor Details

    • CustomerSetAddressCustomFieldActionBuilder

      public CustomerSetAddressCustomFieldActionBuilder()
  • Method Details

    • addressId

      public CustomerSetAddressCustomFieldActionBuilder addressId(String addressId)

      User-defined unique identifier of the Address to be updated.

      Parameters:
      addressId - value to be set
      Returns:
      Builder
    • name

      Name of the Custom Field.

      Parameters:
      name - value to be set
      Returns:
      Builder
    • value

      If value is absent or null, this field will be removed if it exists. If value is provided, it is set for the field defined by name. Trying to remove a field that does not exist will fail with an InvalidOperation error.

      Parameters:
      value - value to be set
      Returns:
      Builder
    • getAddressId

      public String getAddressId()

      User-defined unique identifier of the Address to be updated.

      Returns:
      addressId
    • getName

      public String getName()

      Name of the Custom Field.

      Returns:
      name
    • getValue

      @Nullable public Object getValue()

      If value is absent or null, this field will be removed if it exists. If value is provided, it is set for the field defined by name. Trying to remove a field that does not exist will fail with an InvalidOperation error.

      Returns:
      value
    • build

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

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

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

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