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

commonMain.aws.sdk.kotlin.services.route53recoveryreadiness.model.UpdateCellResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.route53recoveryreadiness.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateCellResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) for the cell.
     */
    public val cellArn: kotlin.String? = builder.cellArn
    /**
     * The name of the cell.
     */
    public val cellName: kotlin.String? = builder.cellName
    /**
     * A list of cell ARNs.
     */
    public val cells: List? = builder.cells
    /**
     * The readiness scope for the cell, which can be a cell Amazon Resource Name (ARN) or a recovery group ARN. This is a list but currently can have only one element.
     */
    public val parentReadinessScopes: List? = builder.parentReadinessScopes
    /**
     * Tags on the resources.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateCellResponse(")
        append("cellArn=$cellArn,")
        append("cellName=$cellName,")
        append("cells=$cells,")
        append("parentReadinessScopes=$parentReadinessScopes,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = cellArn?.hashCode() ?: 0
        result = 31 * result + (cellName?.hashCode() ?: 0)
        result = 31 * result + (cells?.hashCode() ?: 0)
        result = 31 * result + (parentReadinessScopes?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 UpdateCellResponse

        if (cellArn != other.cellArn) return false
        if (cellName != other.cellName) return false
        if (cells != other.cells) return false
        if (parentReadinessScopes != other.parentReadinessScopes) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) for the cell.
         */
        public var cellArn: kotlin.String? = null
        /**
         * The name of the cell.
         */
        public var cellName: kotlin.String? = null
        /**
         * A list of cell ARNs.
         */
        public var cells: List? = null
        /**
         * The readiness scope for the cell, which can be a cell Amazon Resource Name (ARN) or a recovery group ARN. This is a list but currently can have only one element.
         */
        public var parentReadinessScopes: List? = null
        /**
         * Tags on the resources.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53recoveryreadiness.model.UpdateCellResponse) : this() {
            this.cellArn = x.cellArn
            this.cellName = x.cellName
            this.cells = x.cells
            this.parentReadinessScopes = x.parentReadinessScopes
            this.tags = x.tags
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy