Class VariantRemoveAssetActionBuilder

java.lang.Object
com.commercetools.api.models.variant.VariantRemoveAssetActionBuilder
All Implemented Interfaces:
Builder<VariantRemoveAssetAction>

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

     VariantRemoveAssetAction variantRemoveAssetAction = VariantRemoveAssetAction.builder()
             .build()
 
  • Constructor Details

    • VariantRemoveAssetActionBuilder

      public VariantRemoveAssetActionBuilder()
  • Method Details

    • staged

      public VariantRemoveAssetActionBuilder staged(@Nullable Boolean staged)

      If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

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

      public VariantRemoveAssetActionBuilder assetId(@Nullable String assetId)

      The id of the Asset to remove.

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

      public VariantRemoveAssetActionBuilder assetKey(@Nullable String assetKey)

      The key of the Asset to remove.

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

      @Nullable public Boolean getStaged()

      If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

      Returns:
      staged
    • getAssetId

      @Nullable public String getAssetId()

      The id of the Asset to remove.

      Returns:
      assetId
    • getAssetKey

      @Nullable public String getAssetKey()

      The key of the Asset to remove.

      Returns:
      assetKey
    • build

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

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

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

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