Package io.fabric8.kubernetes.api.model
Class SecretKeySelector
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.SecretKeySelector
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SecretKeySelectorBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SecretKeySelector extends Object implements io.fabric8.kubernetes.api.builder.Editable<SecretKeySelectorBuilder>, KubernetesResource
SecretKeySelector selects a key of a Secret.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecretKeySelector()No args constructor for use in serializationSecretKeySelector(String key, String name, Boolean optional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretKeySelectorBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()The key of the secret to select from.StringgetName()Name of the referent.BooleangetOptional()Specify whether the Secret or its key must be definedvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKey(String key)The key of the secret to select from.voidsetName(String name)Name of the referent.voidsetOptional(Boolean optional)Specify whether the Secret or its key must be definedSecretKeySelectorBuildertoBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
The key of the secret to select from. Must be a valid secret key.
-
setKey
public void setKey(String key)
The key of the secret to select from. Must be a valid secret key.
-
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 Secret or its key must be defined
-
setOptional
public void setOptional(Boolean optional)
Specify whether the Secret or its key must be defined
-
edit
public SecretKeySelectorBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SecretKeySelectorBuilder>
-
toBuilder
public SecretKeySelectorBuilder toBuilder()
-
-