Interface ResourceIdentifier


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

     ResourceIdentifier resourceIdentifier = ResourceIdentifier.builder()
             .id("{id}")
             .key("{key}")
             .typeId(ReferenceTypeId.ASSOCIATE_ROLE)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()
      Returns:
      id
    • getKey

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

      @NotNull @NotNull ReferenceTypeId getTypeId()
      Returns:
      typeId
    • setId

      void setId(String id)
      set id
      Parameters:
      id - value to be set
    • setKey

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

      void setTypeId(ReferenceTypeId typeId)
      set typeId
      Parameters:
      typeId - value to be set
    • of

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

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

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

      static ResourceIdentifierBuilder builder()
      builder factory method for ResourceIdentifier
      Returns:
      builder
    • builder

      static ResourceIdentifierBuilder builder(ResourceIdentifier template)
      create builder for ResourceIdentifier instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withResourceIdentifier

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