Class ExecuteSqlRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.rdsdata.model.RdsDataRequest
-
- software.amazon.awssdk.services.rdsdata.model.ExecuteSqlRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ExecuteSqlRequest.Builder,ExecuteSqlRequest>
@Generated("software.amazon.awssdk:codegen") public final class ExecuteSqlRequest extends RdsDataRequest implements ToCopyableBuilder<ExecuteSqlRequest.Builder,ExecuteSqlRequest>
The request parameters represent the input of a request to run one or more SQL statements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExecuteSqlRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringawsSecretStoreArn()The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster.static ExecuteSqlRequest.Builderbuilder()Stringdatabase()The name of the database.StringdbClusterOrInstanceArn()The ARN of the Aurora Serverless DB cluster.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringschema()The name of the database schema.List<SdkField<?>>sdkFields()static Class<? extends ExecuteSqlRequest.Builder>serializableBuilderClass()StringsqlStatements()One or more SQL statements to run on the DB cluster.ExecuteSqlRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dbClusterOrInstanceArn
public final String dbClusterOrInstanceArn()
The ARN of the Aurora Serverless DB cluster.
- Returns:
- The ARN of the Aurora Serverless DB cluster.
-
awsSecretStoreArn
public final String awsSecretStoreArn()
The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.
For information about creating the secret, see Create a database secret.
- Returns:
- The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database
user name and password for the credentials in the secret.
For information about creating the secret, see Create a database secret.
-
sqlStatements
public final String sqlStatements()
One or more SQL statements to run on the DB cluster.
You can separate SQL statements from each other with a semicolon (;). Any valid SQL statement is permitted, including data definition, data manipulation, and commit statements.
- Returns:
- One or more SQL statements to run on the DB cluster.
You can separate SQL statements from each other with a semicolon (;). Any valid SQL statement is permitted, including data definition, data manipulation, and commit statements.
-
database
public final String database()
The name of the database.
- Returns:
- The name of the database.
-
schema
public final String schema()
The name of the database schema.
- Returns:
- The name of the database schema.
-
toBuilder
public ExecuteSqlRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ExecuteSqlRequest.Builder,ExecuteSqlRequest>- Specified by:
toBuilderin classRdsDataRequest
-
builder
public static ExecuteSqlRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ExecuteSqlRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-