Class V1ConfigMap
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ConfigMap
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ConfigMap
extends Object
ConfigMap holds configuration data for pods to consume.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) Set apiVersion in a chainable fashion.binaryData
(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> binaryData) Set binaryData in a chainable fashion.Set data in a chainable fashion.boolean
APIVersion defines the versioned schema of this representation of an object.Map<String,
@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> BinaryData contains the binary data.getData()
Data contains the configuration data.Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified).getKind()
Kind is a string value representing the REST resource this object represents.int
hashCode()
Set immutable in a chainable fashion.Set kind in a chainable fashion.metadata
(V1ObjectMeta metadata) Set metadata in a chainable fashion.putbinaryDataItem
(String key, byte[] binaryDataItem) Set the value for the key for the binaryData map property in a chainable fashion.putdataItem
(String key, String dataItem) Set the value for the key for the data map property in a chainable fashion.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
setBinaryData
(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> binaryData) Set the binaryData property valuevoid
Set the data property valuevoid
setImmutable
(Boolean immutable) Set the immutable property valuevoid
Set the kind property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuetoString()
-
Field Details
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_BINARY_DATA
- See Also:
-
JSON_PROPERTY_DATA
- See Also:
-
JSON_PROPERTY_IMMUTABLE
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
-
Constructor Details
-
V1ConfigMap
public V1ConfigMap()
-
-
Method Details
-
getApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value- Parameters:
apiVersion
- property value to set
-
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
getBinaryData
public Map<String,@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> getBinaryData()BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.- Returns:
- the binaryData property value
-
setBinaryData
public void setBinaryData(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> binaryData) Set the binaryData property value- Parameters:
binaryData
- property value to set
-
binaryData
public V1ConfigMap binaryData(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> binaryData) Set binaryData in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
putbinaryDataItem
Set the value for the key for the binaryData map property in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
getData
Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.- Returns:
- the data property value
-
setData
Set the data property value- Parameters:
data
- property value to set
-
data
Set data in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
putdataItem
Set the value for the key for the data map property in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
getImmutable
Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.- Returns:
- the immutable property value
-
setImmutable
Set the immutable property value- Parameters:
immutable
- property value to set
-
immutable
Set immutable in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
getKind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind
- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
getMetadata
- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value- Parameters:
metadata
- property value to set
-
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of V1ConfigMap for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-