@Generated(value="software.amazon.awssdk:codegen") public class CreateNamedQueryRequest extends AthenaRequest implements ToCopyableBuilder<CreateNamedQueryRequest.Builder,CreateNamedQueryRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateNamedQueryRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateNamedQueryRequest.Builder |
builder() |
String |
clientRequestToken()
A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once).
|
String |
database()
The database to which the query belongs.
|
String |
description()
A brief explanation of the query.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
name()
The plain language name for the query.
|
String |
queryString()
The text of the query itself.
|
static Class<? extends CreateNamedQueryRequest.Builder> |
serializableBuilderClass() |
CreateNamedQueryRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String name()
The plain language name for the query.
public String description()
A brief explanation of the query.
public String database()
The database to which the query belongs.
public String queryString()
The text of the query itself. In other words, all query statements.
public String clientRequestToken()
A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once).
If another CreateNamedQuery
request is received, the same response is returned and another query is
not created. If a parameter has changed, for example, the QueryString
, an error is returned.
This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.
CreateNamedQuery
request is received, the same response is returned
and another query is not created. If a parameter has changed, for example, the QueryString
,
an error is returned. This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.
public CreateNamedQueryRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateNamedQueryRequest.Builder,CreateNamedQueryRequest>
toBuilder
in class AthenaRequest
public static CreateNamedQueryRequest.Builder builder()
public static Class<? extends CreateNamedQueryRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.