Class SendCommandRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.qldbsession.model.QldbSessionRequest
-
- software.amazon.awssdk.services.qldbsession.model.SendCommandRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SendCommandRequest.Builder,SendCommandRequest>
@Generated("software.amazon.awssdk:codegen") public final class SendCommandRequest extends QldbSessionRequest implements ToCopyableBuilder<SendCommandRequest.Builder,SendCommandRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSendCommandRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbortTransactionRequestabortTransaction()Command to abort the current transaction.static SendCommandRequest.Builderbuilder()CommitTransactionRequestcommitTransaction()Command to commit the specified transaction.EndSessionRequestendSession()Command to end the current session.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ExecuteStatementRequestexecuteStatement()Command to execute a statement in the specified transaction.FetchPageRequestfetchPage()Command to fetch a page.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SendCommandRequest.Builder>serializableBuilderClass()StringsessionToken()Specifies the session token for the current command.StartSessionRequeststartSession()Command to start a new session.StartTransactionRequeststartTransaction()Command to start a new transaction.SendCommandRequest.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
-
sessionToken
public final String sessionToken()
Specifies the session token for the current command. A session token is constant throughout the life of the session.
To obtain a session token, run the
StartSessioncommand. ThisSessionTokenis required for every subsequent command that is issued during the current session.- Returns:
- Specifies the session token for the current command. A session token is constant throughout the life of
the session.
To obtain a session token, run the
StartSessioncommand. ThisSessionTokenis required for every subsequent command that is issued during the current session.
-
startSession
public final StartSessionRequest startSession()
Command to start a new session. A session token is obtained as part of the response.
- Returns:
- Command to start a new session. A session token is obtained as part of the response.
-
startTransaction
public final StartTransactionRequest startTransaction()
Command to start a new transaction.
- Returns:
- Command to start a new transaction.
-
endSession
public final EndSessionRequest endSession()
Command to end the current session.
- Returns:
- Command to end the current session.
-
commitTransaction
public final CommitTransactionRequest commitTransaction()
Command to commit the specified transaction.
- Returns:
- Command to commit the specified transaction.
-
abortTransaction
public final AbortTransactionRequest abortTransaction()
Command to abort the current transaction.
- Returns:
- Command to abort the current transaction.
-
executeStatement
public final ExecuteStatementRequest executeStatement()
Command to execute a statement in the specified transaction.
- Returns:
- Command to execute a statement in the specified transaction.
-
fetchPage
public final FetchPageRequest fetchPage()
Command to fetch a page.
- Returns:
- Command to fetch a page.
-
toBuilder
public SendCommandRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SendCommandRequest.Builder,SendCommandRequest>- Specified by:
toBuilderin classQldbSessionRequest
-
builder
public static SendCommandRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SendCommandRequest.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
-
-