Class StorageV1TokenRequest
java.lang.Object
io.kubernetes.client.openapi.models.StorageV1TokenRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class StorageV1TokenRequest
extends Object
TokenRequest contains parameters of a service account token.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
expirationSeconds
(Long expirationSeconds) static StorageV1TokenRequest
Create an instance of StorageV1TokenRequest given an JSON stringaudience is the intended audience of the token in \"TokenRequestSpec\".expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\".int
hashCode()
void
setAudience
(String audience) void
setExpirationSeconds
(Long expirationSeconds) toJson()
Convert an instance of StorageV1TokenRequest 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_AUDIENCE
- See Also:
-
SERIALIZED_NAME_EXPIRATION_SECONDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StorageV1TokenRequest
public StorageV1TokenRequest()
-
-
Method Details
-
audience
-
getAudience
audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.- Returns:
- audience
-
setAudience
-
expirationSeconds
-
getExpirationSeconds
expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".- Returns:
- expirationSeconds
-
setExpirationSeconds
-
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 StorageV1TokenRequest
-
fromJson
Create an instance of StorageV1TokenRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of StorageV1TokenRequest
- Throws:
IOException
- if the JSON string is invalid with respect to StorageV1TokenRequest
-
toJson
Convert an instance of StorageV1TokenRequest to an JSON string- Returns:
- JSON string
-