Class CategorySetAssetCustomFieldActionBuilder

java.lang.Object
com.commercetools.api.models.category.CategorySetAssetCustomFieldActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CategorySetAssetCustomFieldAction>

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

     CategorySetAssetCustomFieldAction categorySetAssetCustomFieldAction = CategorySetAssetCustomFieldAction.builder()
             .name("{name}")
             .build()
 
  • Constructor Details

    • CategorySetAssetCustomFieldActionBuilder

      public CategorySetAssetCustomFieldActionBuilder()
  • Method Details

    • assetId

      New value to set. Either assetId or assetKey is required.

      Parameters:
      assetId - value to be set
      Returns:
      Builder
    • assetKey

      New value to set. Either assetId or assetKey is required.

      Parameters:
      assetKey - 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. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

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

      @Nullable public String getAssetId()

      New value to set. Either assetId or assetKey is required.

      Returns:
      assetId
    • getAssetKey

      @Nullable public String getAssetKey()

      New value to set. Either assetId or assetKey is required.

      Returns:
      assetKey
    • 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. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

      Returns:
      value
    • build

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

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

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

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