@Stability(value=Stable) @Internal public static final class ApiObjectMetadata.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ApiObjectMetadata
ApiObjectMetadata
software.amazon.jsii.JsiiObject.InitializationMode
ApiObjectMetadata.Builder, ApiObjectMetadata.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(Map<String,String> annotations,
Map<String,String> labels,
String name,
String namespace)
Constructor that initializes the object based on literal property values passed by the
ApiObjectMetadata.Builder . |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Map<String,String> |
getAnnotations()
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
Map<String,String> |
getLabels()
Map of string keys and values that can be used to organize and categorize (scope and select) objects.
|
String |
getName()
The unique, namespace-global, name of this object inside the Kubernetes cluster.
|
String |
getNamespace()
Namespace defines the space within each name must be unique.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final Map<String,String> getAnnotations()
ApiObjectMetadata
They are not queryable and should be preserved when modifying objects.
Default: - No annotations.
getAnnotations
in interface ApiObjectMetadata
http://kubernetes.io/docs/user-guide/annotations
public final Map<String,String> getLabels()
ApiObjectMetadata
May match selectors of replication controllers and services.
Default: - No labels.
getLabels
in interface ApiObjectMetadata
http://kubernetes.io/docs/user-guide/labels
public final String getName()
ApiObjectMetadata
Normally, you shouldn't specify names for objects and let the CDK generate a name for you that is application-unique. The names CDK generates are composed from the construct path components, separated by dots and a suffix that is based on a hash of the entire path, to ensure uniqueness.
You can supply custom name allocation logic by overriding the
chart.generateObjectName
method.
If you use an explicit name here, bear in mind that this reduces the composability of your construct because it won't be possible to include more than one instance in any app. Therefore it is highly recommended to leave this unspecified.
Default: - an app-unique name generated by the chart
getName
in interface ApiObjectMetadata
public final String getNamespace()
ApiObjectMetadata
An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces
Default: undefined (will be assigned to the 'default' namespace)
getNamespace
in interface ApiObjectMetadata
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.