Class V1SecretReference
java.lang.Object
io.kubernetes.client.openapi.models.V1SecretReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1SecretReference
extends Object
SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1SecretReferenceCreate an instance of V1SecretReference given an JSON stringgetName()name is unique within a namespace to reference a secret resource.namespace defines the space within which the secret name must be unique.inthashCode()voidvoidsetNamespace(String namespace) toJson()Convert an instance of V1SecretReference to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SecretReference
public V1SecretReference()
-
-
Method Details
-
name
-
getName
name is unique within a namespace to reference a secret resource.- Returns:
- name
-
setName
-
namespace
-
getNamespace
namespace defines the space within which the secret name must be unique.- Returns:
- namespace
-
setNamespace
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1SecretReference
-
fromJson
Create an instance of V1SecretReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1SecretReference
- Throws:
IOException- if the JSON string is invalid with respect to V1SecretReference
-
toJson
Convert an instance of V1SecretReference to an JSON string- Returns:
- JSON string
-