Interface CreateTokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTokenRequest.Builder,,CreateTokenRequest> LicenseManagerRequest.Builder,SdkBuilder<CreateTokenRequest.Builder,,CreateTokenRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateTokenRequest
public static interface CreateTokenRequest.Builder
extends LicenseManagerRequest.Builder, SdkPojo, CopyableBuilder<CreateTokenRequest.Builder,CreateTokenRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token, valid for 10 minutes.expirationInDays(Integer expirationInDays) Token expiration, in days, counted from token creation.licenseArn(String licenseArn) Amazon Resource Name (ARN) of the license.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Amazon Resource Name (ARN) of the IAM roles to embed in the token.roleArns(Collection<String> roleArns) Amazon Resource Name (ARN) of the IAM roles to embed in the token.tokenProperties(String... tokenProperties) Data specified by the caller to be included in the JWT token.tokenProperties(Collection<String> tokenProperties) Data specified by the caller to be included in the JWT token.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.licensemanager.model.LicenseManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
licenseArn
Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
- Parameters:
licenseArn- Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArns
Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
- Parameters:
roleArns- Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArns
Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
- Parameters:
roleArns- Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationInDays
Token expiration, in days, counted from token creation. The default is 365 days.
- Parameters:
expirationInDays- Token expiration, in days, counted from token creation. The default is 365 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenProperties
Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
- Parameters:
tokenProperties- Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenProperties
Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
- Parameters:
tokenProperties- Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Idempotency token, valid for 10 minutes.
- Parameters:
clientToken- Idempotency token, valid for 10 minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-