Class CommonMetadata
java.lang.Object
com.netflix.genie.common.internal.dtos.CommonMetadata
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApplicationMetadata
,ClusterMetadata
,CommandMetadata
,FinishedJob
,JobMetadata
Metadata fields common to all Genie resources (Jobs, clusters, etc).
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for common fields. -
Constructor Summary
ModifierConstructorDescriptionprotected
CommonMetadata
(CommonMetadata.Builder builder) Constructor. -
Method Summary
-
Constructor Details
-
CommonMetadata
Constructor.- Parameters:
builder
- The builder containing the values to use.
-
-
Method Details
-
getDescription
Get the description.- Returns:
- The description as an
Optional
-
getMetadata
Get the metadata of this resource as a JSON Node.- Returns:
Optional
of the metadata if it exists
-
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
-