@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeStatementResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeStatementResult() |
Modifier and Type | Method and Description |
---|---|
DescribeStatementResult |
clone() |
boolean |
equals(Object obj) |
String |
getClusterIdentifier()
The cluster identifier.
|
Date |
getCreatedAt()
The date and time (UTC) when the SQL statement was submitted to run.
|
String |
getDatabase()
The name of the database.
|
String |
getDbUser()
The database user name.
|
Long |
getDuration()
The amount of time in nanoseconds that the statement ran.
|
String |
getError()
The error message from the cluster if the SQL statement encountered an error while running.
|
Boolean |
getHasResultSet()
A value that indicates whether the statement has a result set.
|
String |
getId()
The identifier of the SQL statement described.
|
String |
getQueryString()
The SQL statement text.
|
Long |
getRedshiftPid()
The process identifier from Amazon Redshift.
|
Long |
getRedshiftQueryId()
The identifier of the query generated by Amazon Redshift.
|
Long |
getResultRows()
Either the number of rows returned from the SQL statement or the number of rows affected.
|
Long |
getResultSize()
The size in bytes of the returned results.
|
String |
getSecretArn()
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
String |
getStatus()
The status of the SQL statement being described.
|
Date |
getUpdatedAt()
The date and time (UTC) that the metadata for the SQL statement was last updated.
|
int |
hashCode() |
Boolean |
isHasResultSet()
A value that indicates whether the statement has a result set.
|
void |
setClusterIdentifier(String clusterIdentifier)
The cluster identifier.
|
void |
setCreatedAt(Date createdAt)
The date and time (UTC) when the SQL statement was submitted to run.
|
void |
setDatabase(String database)
The name of the database.
|
void |
setDbUser(String dbUser)
The database user name.
|
void |
setDuration(Long duration)
The amount of time in nanoseconds that the statement ran.
|
void |
setError(String error)
The error message from the cluster if the SQL statement encountered an error while running.
|
void |
setHasResultSet(Boolean hasResultSet)
A value that indicates whether the statement has a result set.
|
void |
setId(String id)
The identifier of the SQL statement described.
|
void |
setQueryString(String queryString)
The SQL statement text.
|
void |
setRedshiftPid(Long redshiftPid)
The process identifier from Amazon Redshift.
|
void |
setRedshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift.
|
void |
setResultRows(Long resultRows)
Either the number of rows returned from the SQL statement or the number of rows affected.
|
void |
setResultSize(Long resultSize)
The size in bytes of the returned results.
|
void |
setSecretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
void |
setStatus(String status)
The status of the SQL statement being described.
|
void |
setUpdatedAt(Date updatedAt)
The date and time (UTC) that the metadata for the SQL statement was last updated.
|
String |
toString()
Returns a string representation of this object.
|
DescribeStatementResult |
withClusterIdentifier(String clusterIdentifier)
The cluster identifier.
|
DescribeStatementResult |
withCreatedAt(Date createdAt)
The date and time (UTC) when the SQL statement was submitted to run.
|
DescribeStatementResult |
withDatabase(String database)
The name of the database.
|
DescribeStatementResult |
withDbUser(String dbUser)
The database user name.
|
DescribeStatementResult |
withDuration(Long duration)
The amount of time in nanoseconds that the statement ran.
|
DescribeStatementResult |
withError(String error)
The error message from the cluster if the SQL statement encountered an error while running.
|
DescribeStatementResult |
withHasResultSet(Boolean hasResultSet)
A value that indicates whether the statement has a result set.
|
DescribeStatementResult |
withId(String id)
The identifier of the SQL statement described.
|
DescribeStatementResult |
withQueryString(String queryString)
The SQL statement text.
|
DescribeStatementResult |
withRedshiftPid(Long redshiftPid)
The process identifier from Amazon Redshift.
|
DescribeStatementResult |
withRedshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift.
|
DescribeStatementResult |
withResultRows(Long resultRows)
Either the number of rows returned from the SQL statement or the number of rows affected.
|
DescribeStatementResult |
withResultSize(Long resultSize)
The size in bytes of the returned results.
|
DescribeStatementResult |
withSecretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
DescribeStatementResult |
withStatus(StatusString status)
The status of the SQL statement being described.
|
DescribeStatementResult |
withStatus(String status)
The status of the SQL statement being described.
|
DescribeStatementResult |
withUpdatedAt(Date updatedAt)
The date and time (UTC) that the metadata for the SQL statement was last updated.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setClusterIdentifier(String clusterIdentifier)
The cluster identifier.
clusterIdentifier
- The cluster identifier.public String getClusterIdentifier()
The cluster identifier.
public DescribeStatementResult withClusterIdentifier(String clusterIdentifier)
The cluster identifier.
clusterIdentifier
- The cluster identifier.public void setCreatedAt(Date createdAt)
The date and time (UTC) when the SQL statement was submitted to run.
createdAt
- The date and time (UTC) when the SQL statement was submitted to run.public Date getCreatedAt()
The date and time (UTC) when the SQL statement was submitted to run.
public DescribeStatementResult withCreatedAt(Date createdAt)
The date and time (UTC) when the SQL statement was submitted to run.
createdAt
- The date and time (UTC) when the SQL statement was submitted to run.public void setDatabase(String database)
The name of the database.
database
- The name of the database.public String getDatabase()
The name of the database.
public DescribeStatementResult withDatabase(String database)
The name of the database.
database
- The name of the database.public void setDbUser(String dbUser)
The database user name.
dbUser
- The database user name.public String getDbUser()
The database user name.
public DescribeStatementResult withDbUser(String dbUser)
The database user name.
dbUser
- The database user name.public void setDuration(Long duration)
The amount of time in nanoseconds that the statement ran.
duration
- The amount of time in nanoseconds that the statement ran.public Long getDuration()
The amount of time in nanoseconds that the statement ran.
public DescribeStatementResult withDuration(Long duration)
The amount of time in nanoseconds that the statement ran.
duration
- The amount of time in nanoseconds that the statement ran.public void setError(String error)
The error message from the cluster if the SQL statement encountered an error while running.
error
- The error message from the cluster if the SQL statement encountered an error while running.public String getError()
The error message from the cluster if the SQL statement encountered an error while running.
public DescribeStatementResult withError(String error)
The error message from the cluster if the SQL statement encountered an error while running.
error
- The error message from the cluster if the SQL statement encountered an error while running.public void setHasResultSet(Boolean hasResultSet)
A value that indicates whether the statement has a result set. The result set can be empty.
hasResultSet
- A value that indicates whether the statement has a result set. The result set can be empty.public Boolean getHasResultSet()
A value that indicates whether the statement has a result set. The result set can be empty.
public DescribeStatementResult withHasResultSet(Boolean hasResultSet)
A value that indicates whether the statement has a result set. The result set can be empty.
hasResultSet
- A value that indicates whether the statement has a result set. The result set can be empty.public Boolean isHasResultSet()
A value that indicates whether the statement has a result set. The result set can be empty.
public void setId(String id)
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
id
- The identifier of the SQL statement described. This value is a universally unique identifier (UUID)
generated by Amazon Redshift Data API.public String getId()
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
public DescribeStatementResult withId(String id)
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
id
- The identifier of the SQL statement described. This value is a universally unique identifier (UUID)
generated by Amazon Redshift Data API.public void setQueryString(String queryString)
The SQL statement text.
queryString
- The SQL statement text.public String getQueryString()
The SQL statement text.
public DescribeStatementResult withQueryString(String queryString)
The SQL statement text.
queryString
- The SQL statement text.public void setRedshiftPid(Long redshiftPid)
The process identifier from Amazon Redshift.
redshiftPid
- The process identifier from Amazon Redshift.public Long getRedshiftPid()
The process identifier from Amazon Redshift.
public DescribeStatementResult withRedshiftPid(Long redshiftPid)
The process identifier from Amazon Redshift.
redshiftPid
- The process identifier from Amazon Redshift.public void setRedshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query
column of the STL_QUERY
system view.
redshiftQueryId
- The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query
column of the STL_QUERY
system view.public Long getRedshiftQueryId()
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query
column of the STL_QUERY
system view.
query
column of the STL_QUERY
system view.public DescribeStatementResult withRedshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query
column of the STL_QUERY
system view.
redshiftQueryId
- The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query
column of the STL_QUERY
system view.public void setResultRows(Long resultRows)
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.
resultRows
- Either the number of rows returned from the SQL statement or the number of rows affected. If result size
is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT,
UPDATE, DELETE, COPY, and others.public Long getResultRows()
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.
public DescribeStatementResult withResultRows(Long resultRows)
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.
resultRows
- Either the number of rows returned from the SQL statement or the number of rows affected. If result size
is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT,
UPDATE, DELETE, COPY, and others.public void setResultSize(Long resultSize)
The size in bytes of the returned results.
resultSize
- The size in bytes of the returned results.public Long getResultSize()
The size in bytes of the returned results.
public DescribeStatementResult withResultSize(Long resultSize)
The size in bytes of the returned results.
resultSize
- The size in bytes of the returned results.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 DescribeStatementResult 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 setStatus(String status)
The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
status
- The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
StatusString
public String getStatus()
The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
StatusString
public DescribeStatementResult withStatus(String status)
The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
status
- The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
StatusString
public DescribeStatementResult withStatus(StatusString status)
The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
status
- The status of the SQL statement being described. Status values are defined as follows:
ABORTED - The query run was stopped by the user.
ALL - A status value that includes all query statuses. This value can be used to filter results.
FAILED - The query run failed.
FINISHED - The query has finished running.
PICKED - The query has been chosen to be run.
STARTED - The query run has started.
SUBMITTED - The query was submitted, but not yet processed.
StatusString
public void setUpdatedAt(Date updatedAt)
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
updatedAt
- The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time
the status last changed.public Date getUpdatedAt()
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
public DescribeStatementResult withUpdatedAt(Date updatedAt)
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
updatedAt
- The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time
the status last changed.public String toString()
toString
in class Object
Object.toString()
public DescribeStatementResult clone()