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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateTokenRequest.BuilderclientToken(String clientToken)Idempotency token, valid for 10 minutes.CreateTokenRequest.BuilderexpirationInDays(Integer expirationInDays)Token expiration, in days, counted from token creation.CreateTokenRequest.BuilderlicenseArn(String licenseArn)Amazon Resource Name (ARN) of the license.CreateTokenRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateTokenRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateTokenRequest.BuilderroleArns(String... roleArns)Amazon Resource Name (ARN) of the IAM roles to embed in the token.CreateTokenRequest.BuilderroleArns(Collection<String> roleArns)Amazon Resource Name (ARN) of the IAM roles to embed in the token.CreateTokenRequest.BuildertokenProperties(String... tokenProperties)Data specified by the caller to be included in the JWT token.CreateTokenRequest.BuildertokenProperties(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
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.licensemanager.model.LicenseManagerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
licenseArn
CreateTokenRequest.Builder licenseArn(String 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
CreateTokenRequest.Builder roleArns(Collection<String> 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
CreateTokenRequest.Builder roleArns(String... 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
CreateTokenRequest.Builder expirationInDays(Integer 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
CreateTokenRequest.Builder tokenProperties(Collection<String> 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
CreateTokenRequest.Builder tokenProperties(String... 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
CreateTokenRequest.Builder clientToken(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-