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 SummaryModifier 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.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.grafana.model.GrafanaRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
nameA 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.
 
- 
secondsToLiveSets 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.
 
- 
serviceAccountIdThe 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.
 
- 
workspaceIdThe 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.
 
- 
overrideConfigurationCreateWorkspaceServiceAccountTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationCreateWorkspaceServiceAccountTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-