commonMain.aws.sdk.kotlin.services.rdsdata.model.CommitTransactionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdsdata-jvm Show documentation
Show all versions of rdsdata-jvm Show documentation
The AWS SDK for Kotlin client for RDS Data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rdsdata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The request parameters represent the input of a commit transaction request.
*/
public class CommitTransactionRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
*/
public val resourceArn: kotlin.String = requireNotNull(builder.resourceArn) { "A non-null value must be provided for resourceArn" }
/**
* The name or ARN of the secret that enables access to the DB cluster.
*/
public val secretArn: kotlin.String = requireNotNull(builder.secretArn) { "A non-null value must be provided for secretArn" }
/**
* The identifier of the transaction to end and commit.
*/
public val transactionId: kotlin.String = requireNotNull(builder.transactionId) { "A non-null value must be provided for transactionId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rdsdata.model.CommitTransactionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CommitTransactionRequest(")
append("resourceArn=$resourceArn,")
append("secretArn=$secretArn,")
append("transactionId=$transactionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resourceArn.hashCode()
result = 31 * result + (secretArn.hashCode())
result = 31 * result + (transactionId.hashCode())
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as CommitTransactionRequest
if (resourceArn != other.resourceArn) return false
if (secretArn != other.secretArn) return false
if (transactionId != other.transactionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rdsdata.model.CommitTransactionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
*/
public var resourceArn: kotlin.String? = null
/**
* The name or ARN of the secret that enables access to the DB cluster.
*/
public var secretArn: kotlin.String? = null
/**
* The identifier of the transaction to end and commit.
*/
public var transactionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rdsdata.model.CommitTransactionRequest) : this() {
this.resourceArn = x.resourceArn
this.secretArn = x.secretArn
this.transactionId = x.transactionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rdsdata.model.CommitTransactionRequest = CommitTransactionRequest(this)
internal fun correctErrors(): Builder {
if (resourceArn == null) resourceArn = ""
if (secretArn == null) secretArn = ""
if (transactionId == null) transactionId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy