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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateWorkspaceServiceAccountTokenRequest.Buildername(String name)A name for the token to create.CreateWorkspaceServiceAccountTokenRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateWorkspaceServiceAccountTokenRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateWorkspaceServiceAccountTokenRequest.BuildersecondsToLive(Integer secondsToLive)Sets how long the token will be valid, in seconds.CreateWorkspaceServiceAccountTokenRequest.BuilderserviceAccountId(String serviceAccountId)The ID of the service account for which to create a token.CreateWorkspaceServiceAccountTokenRequest.BuilderworkspaceId(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, sdkFields
-
-
-
-
Method Detail
-
name
CreateWorkspaceServiceAccountTokenRequest.Builder name(String 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
CreateWorkspaceServiceAccountTokenRequest.Builder secondsToLive(Integer 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
CreateWorkspaceServiceAccountTokenRequest.Builder serviceAccountId(String 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
CreateWorkspaceServiceAccountTokenRequest.Builder workspaceId(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateWorkspaceServiceAccountTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-