commonMain.aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon Relational Database Service (Amazon RDS) HTTP endpoint configuration.
*/
public class RdsHttpEndpointConfig private constructor(builder: Builder) {
/**
* Amazon Web Services Region for Amazon RDS HTTP endpoint.
*/
public val awsRegion: kotlin.String? = builder.awsRegion
/**
* Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.
*/
public val awsSecretStoreArn: kotlin.String? = builder.awsSecretStoreArn
/**
* Logical database name.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* Amazon RDS cluster Amazon Resource Name (ARN).
*/
public val dbClusterIdentifier: kotlin.String? = builder.dbClusterIdentifier
/**
* Logical schema name.
*/
public val schema: kotlin.String? = builder.schema
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RdsHttpEndpointConfig(")
append("awsRegion=$awsRegion,")
append("awsSecretStoreArn=$awsSecretStoreArn,")
append("databaseName=$databaseName,")
append("dbClusterIdentifier=$dbClusterIdentifier,")
append("schema=$schema")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = awsRegion?.hashCode() ?: 0
result = 31 * result + (awsSecretStoreArn?.hashCode() ?: 0)
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (dbClusterIdentifier?.hashCode() ?: 0)
result = 31 * result + (schema?.hashCode() ?: 0)
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 RdsHttpEndpointConfig
if (awsRegion != other.awsRegion) return false
if (awsSecretStoreArn != other.awsSecretStoreArn) return false
if (databaseName != other.databaseName) return false
if (dbClusterIdentifier != other.dbClusterIdentifier) return false
if (schema != other.schema) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Amazon Web Services Region for Amazon RDS HTTP endpoint.
*/
public var awsRegion: kotlin.String? = null
/**
* Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.
*/
public var awsSecretStoreArn: kotlin.String? = null
/**
* Logical database name.
*/
public var databaseName: kotlin.String? = null
/**
* Amazon RDS cluster Amazon Resource Name (ARN).
*/
public var dbClusterIdentifier: kotlin.String? = null
/**
* Logical schema name.
*/
public var schema: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig) : this() {
this.awsRegion = x.awsRegion
this.awsSecretStoreArn = x.awsSecretStoreArn
this.databaseName = x.databaseName
this.dbClusterIdentifier = x.dbClusterIdentifier
this.schema = x.schema
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig = RdsHttpEndpointConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}