Package io.fabric8.kubernetes.api.model
Class ConfigMapKeySelector
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ConfigMapKeySelector
-
- All Implemented Interfaces:
Editable<ConfigMapKeySelectorBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ConfigMapKeySelector extends Object implements Editable<ConfigMapKeySelectorBuilder>, KubernetesResource
Selects a key from a ConfigMap.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigMapKeySelector()No args constructor for use in serializationConfigMapKeySelector(String key, String name, Boolean optional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMapKeySelectorBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()The key to select from the ConfigMap's Data field.StringgetName()Name of the referent.BooleangetOptional()Specify whether the ConfigMap or its key must be definedvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKey(String key)The key to select from the ConfigMap's Data field.voidsetName(String name)Name of the referent.voidsetOptional(Boolean optional)Specify whether the ConfigMap or its key must be definedConfigMapKeySelectorBuildertoBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.
-
setKey
public void setKey(String key)
The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.
-
getName
public String getName()
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
setName
public void setName(String name)
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
getOptional
public Boolean getOptional()
Specify whether the ConfigMap or its key must be defined
-
setOptional
public void setOptional(Boolean optional)
Specify whether the ConfigMap or its key must be defined
-
edit
public ConfigMapKeySelectorBuilder edit()
- Specified by:
editin interfaceEditable<ConfigMapKeySelectorBuilder>
-
toBuilder
public ConfigMapKeySelectorBuilder toBuilder()
-
-