Interface CategoryAddAssetAction

All Superinterfaces:
CategoryUpdateAction, ResourceUpdateAction<CategoryUpdateAction>

public interface CategoryAddAssetAction extends CategoryUpdateAction
CategoryAddAssetAction
Example to create an instance using the builder pattern

     CategoryAddAssetAction categoryAddAssetAction = CategoryAddAssetAction.builder()
             .asset(assetBuilder -> assetBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getAsset

      @NotNull @Valid @NotNull @Valid AssetDraft getAsset()

      Value to append.

      Returns:
      asset
    • getPosition

      Integer getPosition()

      Position in the array at which the Asset should be put. When specified, the value must be between 0 and the total number of Assets minus 1.

      Returns:
      position
    • setAsset

      void setAsset(AssetDraft asset)

      Value to append.

      Parameters:
      asset - value to be set
    • setPosition

      void setPosition(Integer position)

      Position in the array at which the Asset should be put. When specified, the value must be between 0 and the total number of Assets minus 1.

      Parameters:
      position - value to be set
    • of

      factory method
      Returns:
      instance of CategoryAddAssetAction
    • of

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

      factory method to create a deep copy of CategoryAddAssetAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for CategoryAddAssetAction
      Returns:
      builder
    • builder

      create builder for CategoryAddAssetAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCategoryAddAssetAction

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

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