Class BaseDTO

java.lang.Object
com.netflix.genie.common.dto.BaseDTO
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommonDTO, JobExecution, JobMetadata

public abstract class BaseDTO extends Object implements Serializable
Base fields for multiple DTOs.
Since:
3.0.0
See Also:
  • Method Details

    • getId

      public Optional<String> getId()
      Get the Id of this DTO.
      Returns:
      The id as an Optional
    • getCreated

      public Optional<Instant> getCreated()
      Get the creation time.
      Returns:
      The creation time or null if not set.
    • getUpdated

      public Optional<Instant> getUpdated()
      Get the update time.
      Returns:
      The update time or null if not set.
    • toString

      public String toString()
      Convert this object to a string representation.
      Overrides:
      toString in class Object
      Returns:
      This application data represented as a JSON structure