@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomSql extends Object implements Serializable, Cloneable, StructuredPojo
A physical table type built from the results of the custom SQL query.
Constructor and Description |
---|
CustomSql() |
Modifier and Type | Method and Description |
---|---|
CustomSql |
clone() |
boolean |
equals(Object obj) |
List<InputColumn> |
getColumns()
The column schema from the SQL query result set.
|
String |
getDataSourceArn()
The Amazon Resource Name (ARN) of the data source.
|
String |
getName()
A display name for the SQL query result.
|
String |
getSqlQuery()
The SQL query.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setColumns(Collection<InputColumn> columns)
The column schema from the SQL query result set.
|
void |
setDataSourceArn(String dataSourceArn)
The Amazon Resource Name (ARN) of the data source.
|
void |
setName(String name)
A display name for the SQL query result.
|
void |
setSqlQuery(String sqlQuery)
The SQL query.
|
String |
toString()
Returns a string representation of this object.
|
CustomSql |
withColumns(Collection<InputColumn> columns)
The column schema from the SQL query result set.
|
CustomSql |
withColumns(InputColumn... columns)
The column schema from the SQL query result set.
|
CustomSql |
withDataSourceArn(String dataSourceArn)
The Amazon Resource Name (ARN) of the data source.
|
CustomSql |
withName(String name)
A display name for the SQL query result.
|
CustomSql |
withSqlQuery(String sqlQuery)
The SQL query.
|
public void setDataSourceArn(String dataSourceArn)
The Amazon Resource Name (ARN) of the data source.
dataSourceArn
- The Amazon Resource Name (ARN) of the data source.public String getDataSourceArn()
The Amazon Resource Name (ARN) of the data source.
public CustomSql withDataSourceArn(String dataSourceArn)
The Amazon Resource Name (ARN) of the data source.
dataSourceArn
- The Amazon Resource Name (ARN) of the data source.public void setName(String name)
A display name for the SQL query result.
name
- A display name for the SQL query result.public String getName()
A display name for the SQL query result.
public CustomSql withName(String name)
A display name for the SQL query result.
name
- A display name for the SQL query result.public void setSqlQuery(String sqlQuery)
The SQL query.
sqlQuery
- The SQL query.public String getSqlQuery()
The SQL query.
public CustomSql withSqlQuery(String sqlQuery)
The SQL query.
sqlQuery
- The SQL query.public List<InputColumn> getColumns()
The column schema from the SQL query result set.
public void setColumns(Collection<InputColumn> columns)
The column schema from the SQL query result set.
columns
- The column schema from the SQL query result set.public CustomSql withColumns(InputColumn... columns)
The column schema from the SQL query result set.
NOTE: This method appends the values to the existing list (if any). Use
setColumns(java.util.Collection)
or withColumns(java.util.Collection)
if you want to override
the existing values.
columns
- The column schema from the SQL query result set.public CustomSql withColumns(Collection<InputColumn> columns)
The column schema from the SQL query result set.
columns
- The column schema from the SQL query result set.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.