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.Serializable
Base fields for multiple DTOs.- Since:
- 3.0.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseDTO.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.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- This application data represented as a JSON structure
-
-