Interface CreateNamedQueryRequest.Builder
- All Superinterfaces:
AthenaRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateNamedQueryRequest.Builder,,CreateNamedQueryRequest> SdkBuilder<CreateNamedQueryRequest.Builder,,CreateNamedQueryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateNamedQueryRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once).The database to which the query belongs.description(String description) The query description.The query name.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.queryString(String queryString) The contents of the query with all query statements.The name of the workgroup in which the named query is being created.Methods inherited from interface software.amazon.awssdk.services.athena.model.AthenaRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The query name.
- Parameters:
name- The query name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The query description.
- Parameters:
description- The query description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
The database to which the query belongs.
- Parameters:
database- The database to which the query belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryString
The contents of the query with all query statements.
- Parameters:
queryString- The contents of the query with all query statements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another
CreateNamedQueryrequest is received, the same response is returned and another query is not created. If a parameter has changed, for example, theQueryString, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- Parameters:
clientRequestToken- A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If anotherCreateNamedQueryrequest is received, the same response is returned and another query is not created. If a parameter has changed, for example, theQueryString, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workGroup
The name of the workgroup in which the named query is being created.
- Parameters:
workGroup- The name of the workgroup in which the named query is being created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateNamedQueryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateNamedQueryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-