@Generated(value="software.amazon.awssdk:codegen") public final class StatementData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StatementData.Builder,StatementData>
The SQL statement to run.
| Modifier and Type | Class and Description |
|---|---|
static interface |
StatementData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static StatementData.Builder |
builder() |
Instant |
createdAt()
The date and time (UTC) the statement was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasQueryParameters()
For responses, this returns true if the service returned a value for the QueryParameters property.
|
boolean |
hasQueryStrings()
For responses, this returns true if the service returned a value for the QueryStrings property.
|
String |
id()
The SQL statement identifier.
|
Boolean |
isBatchStatement()
A value that indicates whether the statement is a batch query request.
|
List<SqlParameter> |
queryParameters()
The parameters used in a SQL statement.
|
String |
queryString()
The SQL statement.
|
List<String> |
queryStrings()
One or more SQL statements.
|
List<SdkField<?>> |
sdkFields() |
String |
secretArn()
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
static Class<? extends StatementData.Builder> |
serializableBuilderClass() |
String |
statementName()
The name of the SQL statement.
|
StatusString |
status()
The status of the SQL statement.
|
String |
statusAsString()
The status of the SQL statement.
|
StatementData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
The date and time (UTC) that the statement metadata was last updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant createdAt()
The date and time (UTC) the statement was created.
public final String id()
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
public final Boolean isBatchStatement()
A value that indicates whether the statement is a batch query request.
public final boolean hasQueryParameters()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<SqlParameter> queryParameters()
The parameters used in a SQL statement.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasQueryParameters() method.
public final String queryString()
The SQL statement.
public final boolean hasQueryStrings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> queryStrings()
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasQueryStrings() method.
public final String secretArn()
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
public final String statementName()
The name of the SQL statement.
public final StatusString status()
The status of the SQL statement. An example is the that the SQL statement finished.
If the service returns an enum value that is not available in the current SDK version, status will
return StatusString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
StatusStringpublic final String statusAsString()
The status of the SQL statement. An example is the that the SQL statement finished.
If the service returns an enum value that is not available in the current SDK version, status will
return StatusString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
StatusStringpublic final Instant updatedAt()
The date and time (UTC) that the statement metadata was last updated.
public StatementData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<StatementData.Builder,StatementData>public static StatementData.Builder builder()
public static Class<? extends StatementData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.