Class V1SecretReference
java.lang.Object
io.kubernetes.client.openapi.models.V1SecretReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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 TypeMethodDescriptionboolean
static V1SecretReference
Create 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.int
hashCode()
void
void
setNamespace
(String namespace) toJson()
Convert an instance of V1SecretReference to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object 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
-