Interface AssetSource


public interface AssetSource
AssetSource
Example to create an instance using the builder pattern

     AssetSource assetSource = AssetSource.builder()
             .uri("{uri}")
             .key("{key}")
             .dimensions(dimensionsBuilder -> dimensionsBuilder)
             .contentType("{contentType}")
             .build()
 
  • Method Details

    • getUri

      @NotNull @NotNull String getUri()
      Returns:
      uri
    • getKey

      @NotNull @NotNull String getKey()
      Returns:
      key
    • getDimensions

      @NotNull @Valid @NotNull @Valid AssetDimensions getDimensions()
      Returns:
      dimensions
    • getContentType

      @NotNull @NotNull String getContentType()
      Returns:
      contentType
    • setUri

      void setUri(String uri)
      set uri
      Parameters:
      uri - value to be set
    • setKey

      void setKey(String key)
      set key
      Parameters:
      key - value to be set
    • setDimensions

      void setDimensions(AssetDimensions dimensions)
      set dimensions
      Parameters:
      dimensions - value to be set
    • setContentType

      void setContentType(String contentType)
      set contentType
      Parameters:
      contentType - value to be set
    • of

      static AssetSource of()
      factory method
      Returns:
      instance of AssetSource
    • of

      static AssetSource of(AssetSource template)
      factory method to create a shallow copy AssetSource
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static AssetSourceBuilder builder()
      builder factory method for AssetSource
      Returns:
      builder
    • builder

      static AssetSourceBuilder builder(AssetSource template)
      create builder for AssetSource instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssetSource

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