Interface CreateWorkspaceApiKeyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest>,GrafanaRequest.Builder,SdkBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateWorkspaceApiKeyRequest
public static interface CreateWorkspaceApiKeyRequest.Builder extends GrafanaRequest.Builder, SdkPojo, CopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateWorkspaceApiKeyRequest.BuilderkeyName(String keyName)Specifies the name of the key.CreateWorkspaceApiKeyRequest.BuilderkeyRole(String keyRole)Specifies the permission level of the key.CreateWorkspaceApiKeyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateWorkspaceApiKeyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateWorkspaceApiKeyRequest.BuildersecondsToLive(Integer secondsToLive)Specifies the time in seconds until the key expires.CreateWorkspaceApiKeyRequest.BuilderworkspaceId(String workspaceId)The ID of the workspace to create an API key.-
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
-
keyName
CreateWorkspaceApiKeyRequest.Builder keyName(String keyName)
Specifies 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.
-
keyRole
CreateWorkspaceApiKeyRequest.Builder keyRole(String keyRole)
Specifies 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.
-
secondsToLive
CreateWorkspaceApiKeyRequest.Builder secondsToLive(Integer secondsToLive)
Specifies 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.
-
workspaceId
CreateWorkspaceApiKeyRequest.Builder workspaceId(String workspaceId)
The 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.
-
overrideConfiguration
CreateWorkspaceApiKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateWorkspaceApiKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-