Class CommonMetadata

java.lang.Object
com.netflix.genie.common.internal.dtos.CommonMetadata
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationMetadata, ClusterMetadata, CommandMetadata, FinishedJob, JobMetadata

public abstract class CommonMetadata extends Object implements Serializable
Metadata fields common to all Genie resources (Jobs, clusters, etc).
Since:
4.0.0
See Also:
  • Constructor Details

    • CommonMetadata

      protected CommonMetadata(CommonMetadata.Builder builder)
      Constructor.
      Parameters:
      builder - The builder containing the values to use.
  • Method Details

    • getDescription

      public Optional<String> getDescription()
      Get the description.
      Returns:
      The description as an Optional
    • getMetadata

      public Optional<com.fasterxml.jackson.databind.JsonNode> getMetadata()
      Get the metadata of this resource as a JSON Node.
      Returns:
      Optional of the metadata if it exists
    • getTags

      public Set<String> getTags()
      Get the tags associated with this resource. Will be returned as an immutable set and any attempt to modify will result in an exception being thrown.
      Returns:
      The tags