commonMain.aws.sdk.kotlin.services.dsql.model.ClusterSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsql-jvm Show documentation
Show all versions of dsql-jvm Show documentation
The AWS SDK for Kotlin client for DSQL
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dsql.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A summary of the properties of a cluster.
*/
public class ClusterSummary private constructor(builder: Builder) {
/**
* The ARN of the cluster.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The ID of the cluster.
*/
public val identifier: kotlin.String = requireNotNull(builder.identifier) { "A non-null value must be provided for identifier" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dsql.model.ClusterSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ClusterSummary(")
append("arn=$arn,")
append("identifier=$identifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (identifier.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 ClusterSummary
if (arn != other.arn) return false
if (identifier != other.identifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dsql.model.ClusterSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the cluster.
*/
public var arn: kotlin.String? = null
/**
* The ID of the cluster.
*/
public var identifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dsql.model.ClusterSummary) : this() {
this.arn = x.arn
this.identifier = x.identifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dsql.model.ClusterSummary = ClusterSummary(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (identifier == null) identifier = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy