Interface CategorySetAssetSourcesAction

All Superinterfaces:
CategoryUpdateAction, ResourceUpdateAction<CategoryUpdateAction>

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

     CategorySetAssetSourcesAction categorySetAssetSourcesAction = CategorySetAssetSourcesAction.builder()
             .plusSources(sourcesBuilder -> sourcesBuilder)
             .build()
 
  • Field Details

    • SET_ASSET_SOURCES

      static final String SET_ASSET_SOURCES
      discriminator value for CategorySetAssetSourcesAction
      See Also:
  • Method Details

    • getAssetId

      String getAssetId()

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

      Returns:
      assetId
    • getAssetKey

      String getAssetKey()

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

      Returns:
      assetKey
    • getSources

      @NotNull @Valid @NotNull @Valid List<AssetSource> getSources()

      Must not be empty. At least one entry is required.

      Returns:
      sources
    • setAssetId

      void setAssetId(String assetId)

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

      Parameters:
      assetId - value to be set
    • setAssetKey

      void setAssetKey(String assetKey)

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

      Parameters:
      assetKey - value to be set
    • setSources

      void setSources(AssetSource... sources)

      Must not be empty. At least one entry is required.

      Parameters:
      sources - values to be set
    • setSources

      void setSources(List<AssetSource> sources)

      Must not be empty. At least one entry is required.

      Parameters:
      sources - values to be set
    • of

      factory method
      Returns:
      instance of CategorySetAssetSourcesAction
    • of

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

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

      builder factory method for CategorySetAssetSourcesAction
      Returns:
      builder
    • builder

      create builder for CategorySetAssetSourcesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCategorySetAssetSourcesAction

      default <T> T withCategorySetAssetSourcesAction(Function<CategorySetAssetSourcesAction,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<CategorySetAssetSourcesAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference