Class ChannelSetAddressCustomFieldActionBuilder

java.lang.Object
com.commercetools.api.models.channel.ChannelSetAddressCustomFieldActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ChannelSetAddressCustomFieldAction>

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

     ChannelSetAddressCustomFieldAction channelSetAddressCustomFieldAction = ChannelSetAddressCustomFieldAction.builder()
             .name("{name}")
             .build()
 
  • Constructor Details

    • ChannelSetAddressCustomFieldActionBuilder

      public ChannelSetAddressCustomFieldActionBuilder()
  • Method Details

    • name

      Name of the Custom Field.

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

      Specifies the format of the value of the Custom Field defined by name. If value is absent or null, this field will be removed, if it exists. Removing a field that does not exist returns an InvalidOperation error.

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

      public String getName()

      Name of the Custom Field.

      Returns:
      name
    • getValue

      @Nullable public Object getValue()

      Specifies the format of the value of the Custom Field defined by name. If value is absent or null, this field will be removed, if it exists. Removing a field that does not exist returns an InvalidOperation error.

      Returns:
      value
    • build

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

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

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

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