Package org.cdk8s.plus23.k8s
Class TokenReviewSpec.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.TokenReviewSpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TokenReviewSpec>
- Enclosing interface:
- TokenReviewSpec
@Stability(Stable) public static final class TokenReviewSpec.Builder extends Object implements software.amazon.jsii.Builder<TokenReviewSpec>
A builder forTokenReviewSpec
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenReviewSpec.Builder
audiences(List<String> audiences)
Sets the value ofTokenReviewSpec.getAudiences()
TokenReviewSpec
build()
Builds the configured instance.TokenReviewSpec.Builder
token(String token)
Sets the value ofTokenReviewSpec.getToken()
-
-
-
Method Detail
-
audiences
@Stability(Stable) public TokenReviewSpec.Builder audiences(List<String> audiences)
Sets the value ofTokenReviewSpec.getAudiences()
- Parameters:
audiences
- Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.- Returns:
this
-
token
@Stability(Stable) public TokenReviewSpec.Builder token(String token)
Sets the value ofTokenReviewSpec.getToken()
- Parameters:
token
- Token is the opaque bearer token.- Returns:
this
-
build
@Stability(Stable) public TokenReviewSpec build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TokenReviewSpec>
- Returns:
- a new instance of
TokenReviewSpec
- Throws:
NullPointerException
- if any required attribute was not provided
-
-