commonMain.aws.sdk.kotlin.services.appsync.model.RelationalDatabaseDataSourceConfig.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
/**
* Describes a relational database data source configuration.
*/
public class RelationalDatabaseDataSourceConfig private constructor(builder: Builder) {
/**
* Amazon RDS HTTP endpoint settings.
*/
public val rdsHttpEndpointConfig: aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig? = builder.rdsHttpEndpointConfig
/**
* Source type for the relational database.
* + **RDS_HTTP_ENDPOINT**: The relational database source type is an Amazon Relational Database Service (Amazon RDS) HTTP endpoint.
*/
public val relationalDatabaseSourceType: aws.sdk.kotlin.services.appsync.model.RelationalDatabaseSourceType? = builder.relationalDatabaseSourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.RelationalDatabaseDataSourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RelationalDatabaseDataSourceConfig(")
append("rdsHttpEndpointConfig=$rdsHttpEndpointConfig,")
append("relationalDatabaseSourceType=$relationalDatabaseSourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rdsHttpEndpointConfig?.hashCode() ?: 0
result = 31 * result + (relationalDatabaseSourceType?.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 RelationalDatabaseDataSourceConfig
if (rdsHttpEndpointConfig != other.rdsHttpEndpointConfig) return false
if (relationalDatabaseSourceType != other.relationalDatabaseSourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.RelationalDatabaseDataSourceConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Amazon RDS HTTP endpoint settings.
*/
public var rdsHttpEndpointConfig: aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig? = null
/**
* Source type for the relational database.
* + **RDS_HTTP_ENDPOINT**: The relational database source type is an Amazon Relational Database Service (Amazon RDS) HTTP endpoint.
*/
public var relationalDatabaseSourceType: aws.sdk.kotlin.services.appsync.model.RelationalDatabaseSourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.RelationalDatabaseDataSourceConfig) : this() {
this.rdsHttpEndpointConfig = x.rdsHttpEndpointConfig
this.relationalDatabaseSourceType = x.relationalDatabaseSourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.RelationalDatabaseDataSourceConfig = RelationalDatabaseDataSourceConfig(this)
/**
* construct an [aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig] inside the given [block]
*/
public fun rdsHttpEndpointConfig(block: aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig.Builder.() -> kotlin.Unit) {
this.rdsHttpEndpointConfig = aws.sdk.kotlin.services.appsync.model.RdsHttpEndpointConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}