All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.timestreaminfluxdb.model.CreateDbParameterGroupResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.timestreaminfluxdb.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateDbParameterGroupResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARM) of the DB parameter group.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * The 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" }
    /**
     * The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * A list of the parameters that comprise the DB parameter group.
     */
    public val parameters: aws.sdk.kotlin.services.timestreaminfluxdb.model.Parameters? = builder.parameters

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreaminfluxdb.model.CreateDbParameterGroupResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateDbParameterGroupResponse(")
        append("arn=$arn,")
        append("description=$description,")
        append("id=$id,")
        append("name=$name,")
        append("parameters=$parameters")
        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())
        result = 31 * result + (parameters?.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 CreateDbParameterGroupResponse

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (parameters != other.parameters) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreaminfluxdb.model.CreateDbParameterGroupResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARM) of the DB parameter group.
         */
        public var arn: kotlin.String? = null
        /**
         * The description of the DB parameter group.
         */
        public var description: kotlin.String? = null
        /**
         * A service-generated unique identifier.
         */
        public var id: kotlin.String? = null
        /**
         * The customer-supplied name that uniquely identifies the DB parameter group when interacting with the Amazon Timestream for InfluxDB API and CLI commands.
         */
        public var name: kotlin.String? = null
        /**
         * A list of the parameters that comprise the DB parameter group.
         */
        public var parameters: aws.sdk.kotlin.services.timestreaminfluxdb.model.Parameters? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.timestreaminfluxdb.model.CreateDbParameterGroupResponse) : this() {
            this.arn = x.arn
            this.description = x.description
            this.id = x.id
            this.name = x.name
            this.parameters = x.parameters
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.timestreaminfluxdb.model.CreateDbParameterGroupResponse = CreateDbParameterGroupResponse(this)

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            if (id == null) id = ""
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy