commonMain.aws.sdk.kotlin.services.timestreaminfluxdb.model.DbParameterGroupSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreaminfluxdb-jvm Show documentation
Show all versions of timestreaminfluxdb-jvm Show documentation
The AWS SDK for Kotlin client for Timestream InfluxDB
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreaminfluxdb.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains a summary of a DB parameter group.
*/
public class DbParameterGroupSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the DB parameter group.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* A description of the DB parameter group.
*/
public val description: kotlin.String? = builder.description
/**
* A service-generated unique identifier.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* This customer-supplied name uniquely identifies the parameter group.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreaminfluxdb.model.DbParameterGroupSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DbParameterGroupSummary(")
append("arn=$arn,")
append("description=$description,")
append("id=$id,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (name.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 DbParameterGroupSummary
if (arn != other.arn) return false
if (description != other.description) return false
if (id != other.id) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreaminfluxdb.model.DbParameterGroupSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the DB parameter group.
*/
public var arn: kotlin.String? = null
/**
* A description of the DB parameter group.
*/
public var description: kotlin.String? = null
/**
* A service-generated unique identifier.
*/
public var id: kotlin.String? = null
/**
* This customer-supplied name uniquely identifies the parameter group.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreaminfluxdb.model.DbParameterGroupSummary) : this() {
this.arn = x.arn
this.description = x.description
this.id = x.id
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreaminfluxdb.model.DbParameterGroupSummary = DbParameterGroupSummary(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (id == null) id = ""
if (name == null) name = ""
return this
}
}
}