Class ConfigMap
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.ConfigMap
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ConfigMap extends java.lang.Object implements com.marcnuri.yakc.model.Model
ConfigMap holds configuration data for pods to consume.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigMap.Builder
-
Constructor Summary
Constructors Constructor Description ConfigMap()
ConfigMap(java.lang.String apiVersion, java.util.Map<java.lang.String,java.lang.String> binaryData, java.util.Map<java.lang.String,java.lang.String> data, java.lang.Boolean immutable, java.lang.String kind, ObjectMeta metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigMap.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getApiVersion()
APIVersion defines the versioned schema of this representation of an object.java.util.Map<java.lang.String,java.lang.String>
getBinaryData()
BinaryData contains the binary data.java.util.Map<java.lang.String,java.lang.String>
getData()
Data contains the configuration data.java.lang.Boolean
getImmutable()
Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified).java.lang.String
getKind()
Kind is a string value representing the REST resource this object represents.ObjectMeta
getMetadata()
int
hashCode()
void
setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.void
setBinaryData(java.util.Map<java.lang.String,java.lang.String> binaryData)
BinaryData contains the binary data.void
setData(java.util.Map<java.lang.String,java.lang.String> data)
Data contains the configuration data.void
setImmutable(java.lang.Boolean immutable)
Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified).void
setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.void
setMetadata(ObjectMeta metadata)
ConfigMap.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ConfigMap
public ConfigMap(java.lang.String apiVersion, java.util.Map<java.lang.String,java.lang.String> binaryData, java.util.Map<java.lang.String,java.lang.String> data, java.lang.Boolean immutable, java.lang.String kind, ObjectMeta metadata)
-
ConfigMap
public ConfigMap()
-
-
Method Detail
-
builder
public static ConfigMap.Builder builder()
-
toBuilder
public ConfigMap.Builder toBuilder()
-
getApiVersion
public java.lang.String 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
-
getBinaryData
public java.util.Map<java.lang.String,java.lang.String> 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.
-
getData
public java.util.Map<java.lang.String,java.lang.String> 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.
-
getImmutable
public java.lang.Boolean 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.
-
getKind
public java.lang.String 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
-
getMetadata
public ObjectMeta getMetadata()
-
setApiVersion
public void setApiVersion(java.lang.String apiVersion)
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
-
setBinaryData
public void setBinaryData(java.util.Map<java.lang.String,java.lang.String> binaryData)
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.
-
setData
public void setData(java.util.Map<java.lang.String,java.lang.String> data)
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.
-
setImmutable
public void setImmutable(java.lang.Boolean immutable)
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.
-
setKind
public void setKind(java.lang.String kind)
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
-
setMetadata
public void setMetadata(ObjectMeta metadata)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-