Interface CreateWorkspaceServiceAccountTokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,
,CreateWorkspaceServiceAccountTokenRequest> GrafanaRequest.Builder
,SdkBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,
,CreateWorkspaceServiceAccountTokenRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateWorkspaceServiceAccountTokenRequest
@Mutable
@NotThreadSafe
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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.grafana.model.GrafanaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-