Class VariantSetAssetKeyActionBuilder

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

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

     VariantSetAssetKeyAction variantSetAssetKeyAction = VariantSetAssetKeyAction.builder()
             .assetId("{assetId}")
             .build()
 
  • Constructor Details

    • VariantSetAssetKeyActionBuilder

      public VariantSetAssetKeyActionBuilder()
  • Method Details

    • staged

      public VariantSetAssetKeyActionBuilder staged(@Nullable Boolean staged)

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

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

      public VariantSetAssetKeyActionBuilder assetId(String assetId)

      The id of the Asset to update.

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

      public VariantSetAssetKeyActionBuilder assetKey(@Nullable String assetKey)

      Value to set. If empty, any existing value will be removed.

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

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • getAssetId

      public String getAssetId()

      The id of the Asset to update.

      Returns:
      assetId
    • getAssetKey

      @Nullable public String getAssetKey()

      Value to set. If empty, any existing value will be removed.

      Returns:
      assetKey
    • build

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

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

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

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