Package com.netflix.genie.common.dto
Class BaseDTO
- java.lang.Object
-
- com.netflix.genie.common.dto.BaseDTO
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CommonDTO,JobExecution,JobMetadata
public abstract class BaseDTO extends java.lang.Object implements java.io.SerializableBase fields for multiple DTOs.- Since:
- 3.0.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseDTO.Builder<T extends BaseDTO.Builder>Builder pattern to save constructor arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.time.Instant>getCreated()Get the creation time.java.util.Optional<java.lang.String>getId()Get the Id of this DTO.java.util.Optional<java.time.Instant>getUpdated()Get the update time.java.lang.StringtoString()Convert this object to a string representation.
-
-
-
Method Detail
-
getId
public java.util.Optional<java.lang.String> getId()
Get the Id of this DTO.- Returns:
- The id as an Optional
-
getCreated
public java.util.Optional<java.time.Instant> getCreated()
Get the creation time.- Returns:
- The creation time or null if not set.
-
getUpdated
public java.util.Optional<java.time.Instant> getUpdated()
Get the update time.- Returns:
- The update time or null if not set.
-
toString
public java.lang.String toString()
Convert this object to a string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- This application data represented as a JSON structure
-
-