@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StatementData extends Object implements Serializable, Cloneable, StructuredPojo
The SQL statement to run.
Constructor and Description |
---|
StatementData() |
Modifier and Type | Method and Description |
---|---|
StatementData |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The date and time (UTC) the statement was created.
|
String |
getId()
The SQL statement identifier.
|
String |
getQueryString()
The SQL statement.
|
String |
getSecretArn()
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
String |
getStatementName()
The name of the SQL statement.
|
String |
getStatus()
The status of the SQL statement.
|
Date |
getUpdatedAt()
The date and time (UTC) that the statement metadata was last updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The date and time (UTC) the statement was created.
|
void |
setId(String id)
The SQL statement identifier.
|
void |
setQueryString(String queryString)
The SQL statement.
|
void |
setSecretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
void |
setStatementName(String statementName)
The name of the SQL statement.
|
void |
setStatus(String status)
The status of the SQL statement.
|
void |
setUpdatedAt(Date updatedAt)
The date and time (UTC) that the statement metadata was last updated.
|
String |
toString()
Returns a string representation of this object.
|
StatementData |
withCreatedAt(Date createdAt)
The date and time (UTC) the statement was created.
|
StatementData |
withId(String id)
The SQL statement identifier.
|
StatementData |
withQueryString(String queryString)
The SQL statement.
|
StatementData |
withSecretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
StatementData |
withStatementName(String statementName)
The name of the SQL statement.
|
StatementData |
withStatus(StatusString status)
The status of the SQL statement.
|
StatementData |
withStatus(String status)
The status of the SQL statement.
|
StatementData |
withUpdatedAt(Date updatedAt)
The date and time (UTC) that the statement metadata was last updated.
|
public void setCreatedAt(Date createdAt)
The date and time (UTC) the statement was created.
createdAt
- The date and time (UTC) the statement was created.public Date getCreatedAt()
The date and time (UTC) the statement was created.
public StatementData withCreatedAt(Date createdAt)
The date and time (UTC) the statement was created.
createdAt
- The date and time (UTC) the statement was created.public void setId(String id)
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
id
- The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon
Redshift Data API.public String getId()
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
public StatementData withId(String id)
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
id
- The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon
Redshift Data API.public void setQueryString(String queryString)
The SQL statement.
queryString
- The SQL statement.public String getQueryString()
The SQL statement.
public StatementData withQueryString(String queryString)
The SQL statement.
queryString
- The SQL statement.public void setSecretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
secretArn
- The name or Amazon Resource Name (ARN) of the secret that enables access to the database.public String getSecretArn()
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
public StatementData withSecretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
secretArn
- The name or Amazon Resource Name (ARN) of the secret that enables access to the database.public void setStatementName(String statementName)
The name of the SQL statement.
statementName
- The name of the SQL statement.public String getStatementName()
The name of the SQL statement.
public StatementData withStatementName(String statementName)
The name of the SQL statement.
statementName
- The name of the SQL statement.public void setStatus(String status)
The status of the SQL statement. An example is the that the SQL statement finished.
status
- The status of the SQL statement. An example is the that the SQL statement finished.StatusString
public String getStatus()
The status of the SQL statement. An example is the that the SQL statement finished.
StatusString
public StatementData withStatus(String status)
The status of the SQL statement. An example is the that the SQL statement finished.
status
- The status of the SQL statement. An example is the that the SQL statement finished.StatusString
public StatementData withStatus(StatusString status)
The status of the SQL statement. An example is the that the SQL statement finished.
status
- The status of the SQL statement. An example is the that the SQL statement finished.StatusString
public void setUpdatedAt(Date updatedAt)
The date and time (UTC) that the statement metadata was last updated.
updatedAt
- The date and time (UTC) that the statement metadata was last updated.public Date getUpdatedAt()
The date and time (UTC) that the statement metadata was last updated.
public StatementData withUpdatedAt(Date updatedAt)
The date and time (UTC) that the statement metadata was last updated.
updatedAt
- The date and time (UTC) that the statement metadata was last updated.public String toString()
toString
in class Object
Object.toString()
public StatementData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.