Interface VariantSetAssetsAction

All Superinterfaces:
VariantUpdateAction

public interface VariantSetAssetsAction extends VariantUpdateAction

Sets the assets of the Variant. Existing assets will be replaced with the new ones.


Example to create an instance using the builder pattern

     VariantSetAssetsAction variantSetAssetsAction = VariantSetAssetsAction.builder()
             .plusAssets(assetsBuilder -> assetsBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getAssets

      @NotNull @Valid @NotNull @Valid List<AssetDraft> getAssets()

      Assets to set for the Variant.

      Returns:
      assets
    • getStaged

      Boolean getStaged()

      If true, only the staged assets are set. If false, both the current and staged assets are updated.

      Returns:
      staged
    • setAssets

      void setAssets(AssetDraft... assets)

      Assets to set for the Variant.

      Parameters:
      assets - values to be set
    • setAssets

      void setAssets(List<AssetDraft> assets)

      Assets to set for the Variant.

      Parameters:
      assets - values to be set
    • setStaged

      void setStaged(Boolean staged)

      If true, only the staged assets are set. If false, both the current and staged assets are updated.

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of VariantSetAssetsAction
    • of

      factory method to create a shallow copy VariantSetAssetsAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface VariantUpdateAction
    • deepCopy

      @Nullable static VariantSetAssetsAction deepCopy(@Nullable VariantSetAssetsAction template)
      factory method to create a deep copy of VariantSetAssetsAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for VariantSetAssetsAction
      Returns:
      builder
    • builder

      create builder for VariantSetAssetsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantSetAssetsAction

      default <T> T withVariantSetAssetsAction(Function<VariantSetAssetsAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<VariantSetAssetsAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference