Interface CreateWorkspaceApiKeyRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,,- CreateWorkspaceApiKeyRequest> - GrafanaRequest.Builder,- SdkBuilder<CreateWorkspaceApiKeyRequest.Builder,,- CreateWorkspaceApiKeyRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- CreateWorkspaceApiKeyRequest
@Mutable
@NotThreadSafe
public static interface CreateWorkspaceApiKeyRequest.Builder
extends GrafanaRequest.Builder, SdkPojo, CopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest> 
- 
Method SummaryModifier and TypeMethodDescriptionSpecifies the name of the key.Specifies the permission level of the key.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.secondsToLive(Integer secondsToLive) Specifies the time in seconds until the key expires.workspaceId(String workspaceId) The ID of the workspace to create an API key.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- 
keyNameSpecifies the name of the key. Keynames must be unique to the workspace. - Parameters:
- keyName- Specifies the name of the key. Keynames must be unique to the workspace.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
keyRoleSpecifies the permission level of the key. Valid values: ADMIN|EDITOR|VIEWER- Parameters:
- keyRole- Specifies the permission level of the key.- Valid values: - ADMIN|- EDITOR|- VIEWER
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
secondsToLiveSpecifies the time in seconds until the key expires. Keys can be valid for up to 30 days. - Parameters:
- secondsToLive- Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
workspaceIdThe ID of the workspace to create an API key. - Parameters:
- workspaceId- The ID of the workspace to create an API key.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
overrideConfigurationCreateWorkspaceApiKeyRequest.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.
 
- 
overrideConfigurationCreateWorkspaceApiKeyRequest.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.
 
 
-