Class CommonMetadata
- java.lang.Object
-
- com.netflix.genie.common.internal.dtos.CommonMetadata
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ApplicationMetadata
,ClusterMetadata
,CommandMetadata
,FinishedJob
,JobMetadata
public abstract class CommonMetadata extends java.lang.Object implements java.io.Serializable
Metadata fields common to all Genie resources (Jobs, clusters, etc).- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommonMetadata.Builder<T extends CommonMetadata.Builder>
Builder for common fields.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommonMetadata(CommonMetadata.Builder builder)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getDescription()
Get the description.java.util.Optional<com.fasterxml.jackson.databind.JsonNode>
getMetadata()
Get the metadata of this resource as a JSON Node.java.util.Set<java.lang.String>
getTags()
Get the tags associated with this resource.
-
-
-
Constructor Detail
-
CommonMetadata
protected CommonMetadata(CommonMetadata.Builder builder)
Constructor.- Parameters:
builder
- The builder containing the values to use.
-
-
Method Detail
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
Get the description.- Returns:
- The description as an
Optional
-
getMetadata
public java.util.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 java.util.Set<java.lang.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
-
-