public class Metadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SECURE_LABEL |
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getLabels() |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
java.lang.String |
getResourceVersion() |
java.lang.String |
getUid() |
boolean |
isSecure() |
void |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels) |
void |
setName(java.lang.String name) |
void |
setNamespace(java.lang.String namespace) |
void |
setResourceVersion(java.lang.String resourceVersion) |
void |
setUid(java.lang.String uid) |
java.lang.String |
toString() |
public static final java.lang.String SECURE_LABEL
public void setUid(java.lang.String uid)
uid
- a unique in time and space valuepublic void setName(java.lang.String name)
name
- A string that uniquely identifies this object within the current namespace.public java.lang.String getName()
public java.lang.String getUid()
public java.util.Map<java.lang.String,java.lang.String> getLabels()
public void setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- A map of string keys and values that can be used to organize and categorize objects.public java.lang.String getResourceVersion()
public void setResourceVersion(java.lang.String resourceVersion)
resourceVersion
- the resource versionpublic java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- The Kubernetes namespacepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isSecure()
labels
named SECURE_LABEL
and with value "true";
false otherwise