Class BusinessUnitSetCustomFieldActionBuilder

java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetCustomFieldActionBuilder
All Implemented Interfaces:
Builder<BusinessUnitSetCustomFieldAction>

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

     BusinessUnitSetCustomFieldAction businessUnitSetCustomFieldAction = BusinessUnitSetCustomFieldAction.builder()
             .name("{name}")
             .build()
 
  • Constructor Details

    • BusinessUnitSetCustomFieldActionBuilder

      public BusinessUnitSetCustomFieldActionBuilder()
  • Method Details

    • name

      Name of the Custom Field to add, update, or remove.

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

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

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

      public String getName()

      Name of the Custom Field to add, update, or remove.

      Returns:
      name
    • getValue

      @Nullable public Object getValue()

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

      Returns:
      value
    • build

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

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

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

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