Interface CreateWorkspaceServiceAccountTokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,,CreateWorkspaceServiceAccountTokenRequest> GrafanaRequest.Builder,SdkBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,,CreateWorkspaceServiceAccountTokenRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateWorkspaceServiceAccountTokenRequest
public static interface CreateWorkspaceServiceAccountTokenRequest.Builder
extends GrafanaRequest.Builder, SdkPojo, CopyableBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,CreateWorkspaceServiceAccountTokenRequest>
-
Method Summary
Modifier and TypeMethodDescriptionA name for the token to create.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.secondsToLive(Integer secondsToLive) Sets how long the token will be valid, in seconds.serviceAccountId(String serviceAccountId) The ID of the service account for which to create a token.workspaceId(String workspaceId) The ID of the workspace the service account resides within.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.grafana.model.GrafanaRequest.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
-
name
A name for the token to create.
- Parameters:
name- A name for the token to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondsToLive
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
- Parameters:
secondsToLive- Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccountId
The ID of the service account for which to create a token.
- Parameters:
serviceAccountId- The ID of the service account for which to create a token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceId
The ID of the workspace the service account resides within.
- Parameters:
workspaceId- The ID of the workspace the service account resides within.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateWorkspaceServiceAccountTokenRequest.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
CreateWorkspaceServiceAccountTokenRequest.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.
-