Interface NamedQuery.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NamedQuery.Builder,,NamedQuery> SdkBuilder<NamedQuery.Builder,,NamedQuery> SdkPojo
- Enclosing class:
NamedQuery
@Mutable
@NotThreadSafe
public static interface NamedQuery.Builder
extends SdkPojo, CopyableBuilder<NamedQuery.Builder,NamedQuery>
-
Method Summary
Modifier and TypeMethodDescriptiondefault NamedQuery.BuildercompatibilityResult(Consumer<NamedQueryCompatibilityResult.Builder> compatibilityResult) The result of translating the named query to DuckDB, if a translation has been performed.compatibilityResult(NamedQueryCompatibilityResult compatibilityResult) The result of translating the named query to DuckDB, if a translation has been performed.The database to which the query belongs.description(String description) The query description.The query name.namedQueryId(String namedQueryId) The unique identifier of the query.queryString(String queryString) The SQL statements that make up the query.The name of the workgroup that contains the named query.Methods 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 SQL statements that make up the query.
- Parameters:
queryString- The SQL statements that make up the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namedQueryId
The unique identifier of the query.
- Parameters:
namedQueryId- The unique identifier of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workGroup
The name of the workgroup that contains the named query.
- Parameters:
workGroup- The name of the workgroup that contains the named query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibilityResult
The result of translating the named query to DuckDB, if a translation has been performed.
- Parameters:
compatibilityResult- The result of translating the named query to DuckDB, if a translation has been performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibilityResult
default NamedQuery.Builder compatibilityResult(Consumer<NamedQueryCompatibilityResult.Builder> compatibilityResult) The result of translating the named query to DuckDB, if a translation has been performed.
This is a convenience method that creates an instance of theNamedQueryCompatibilityResult.Builderavoiding the need to create one manually viaNamedQueryCompatibilityResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocompatibilityResult(NamedQueryCompatibilityResult).- Parameters:
compatibilityResult- a consumer that will call methods onNamedQueryCompatibilityResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-