Class TokenRequest.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.storage.v1beta1.TokenRequest.Builder
-
- Enclosing class:
- TokenRequest
public static class TokenRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenRequest.Builder
audience(@NonNull java.lang.String audience)
Audience is the intended audience of the token in "TokenRequestSpec".TokenRequest
build()
TokenRequest.Builder
expirationSeconds(java.lang.Number expirationSeconds)
ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".java.lang.String
toString()
-
-
-
Method Detail
-
audience
public TokenRequest.Builder audience(@NonNull @NonNull java.lang.String audience)
Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.- Returns:
this
.
-
expirationSeconds
public TokenRequest.Builder expirationSeconds(java.lang.Number expirationSeconds)
ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"- Returns:
this
.
-
build
public TokenRequest build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-