Class NamedQuery
- java.lang.Object
-
- software.amazon.awssdk.services.athena.model.NamedQuery
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NamedQuery.Builder,NamedQuery>
@Generated("software.amazon.awssdk:codegen") public final class NamedQuery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NamedQuery.Builder,NamedQuery>
A query, where
QueryStringcontains the SQL statements that make up the query.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNamedQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedQuery.Builderbuilder()Stringdatabase()The database to which the query belongs.Stringdescription()The query description.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The query name.StringnamedQueryId()The unique identifier of the query.StringqueryString()The SQL statements that make up the query.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends NamedQuery.Builder>serializableBuilderClass()NamedQuery.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringworkGroup()The name of the workgroup that contains the named query.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The query name.
- Returns:
- The query name.
-
description
public final String description()
The query description.
- Returns:
- The query description.
-
database
public final String database()
The database to which the query belongs.
- Returns:
- The database to which the query belongs.
-
queryString
public final String queryString()
The SQL statements that make up the query.
- Returns:
- The SQL statements that make up the query.
-
namedQueryId
public final String namedQueryId()
The unique identifier of the query.
- Returns:
- The unique identifier of the query.
-
workGroup
public final String workGroup()
The name of the workgroup that contains the named query.
- Returns:
- The name of the workgroup that contains the named query.
-
toBuilder
public NamedQuery.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<NamedQuery.Builder,NamedQuery>
-
builder
public static NamedQuery.Builder builder()
-
serializableBuilderClass
public static Class<? extends NamedQuery.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-