Interface CustomSql.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomSql.Builder,
,CustomSql> SdkBuilder<CustomSql.Builder,
,CustomSql> SdkPojo
- Enclosing class:
CustomSql
@Mutable
@NotThreadSafe
public static interface CustomSql.Builder
extends SdkPojo, CopyableBuilder<CustomSql.Builder,CustomSql>
-
Method Summary
Modifier and TypeMethodDescriptioncolumns
(Collection<InputColumn> columns) The column schema from the SQL query result set.columns
(Consumer<InputColumn.Builder>... columns) The column schema from the SQL query result set.columns
(InputColumn... columns) The column schema from the SQL query result set.dataSourceArn
(String dataSourceArn) The Amazon Resource Name (ARN) of the data source.A display name for the SQL query result.The SQL query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dataSourceArn
The Amazon Resource Name (ARN) of the data source.
- Parameters:
dataSourceArn
- The Amazon Resource Name (ARN) of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A display name for the SQL query result.
- Parameters:
name
- A display name for the SQL query result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sqlQuery
The SQL query.
- Parameters:
sqlQuery
- The SQL query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
The column schema from the SQL query result set.
- Parameters:
columns
- The column schema from the SQL query result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
The column schema from the SQL query result set.
- Parameters:
columns
- The column schema from the SQL query result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
The column schema from the SQL query result set.
This is a convenience method that creates an instance of theInputColumn.Builder
avoiding the need to create one manually viaInputColumn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocolumns(List<InputColumn>)
.- Parameters:
columns
- a consumer that will call methods onInputColumn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-