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

commonMain.aws.sdk.kotlin.services.ssm.model.UnlabelParameterVersionResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssm.model



public class UnlabelParameterVersionResponse private constructor(builder: Builder) {
    /**
     * The labels that aren't attached to the given parameter version.
     */
    public val invalidLabels: List? = builder.invalidLabels
    /**
     * A list of all labels deleted from the parameter.
     */
    public val removedLabels: List? = builder.removedLabels

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

    override fun toString(): kotlin.String = buildString {
        append("UnlabelParameterVersionResponse(")
        append("invalidLabels=$invalidLabels,")
        append("removedLabels=$removedLabels")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = invalidLabels?.hashCode() ?: 0
        result = 31 * result + (removedLabels?.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 UnlabelParameterVersionResponse

        if (invalidLabels != other.invalidLabels) return false
        if (removedLabels != other.removedLabels) return false

        return true
    }

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

    public class Builder {
        /**
         * The labels that aren't attached to the given parameter version.
         */
        public var invalidLabels: List? = null
        /**
         * A list of all labels deleted from the parameter.
         */
        public var removedLabels: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.UnlabelParameterVersionResponse) : this() {
            this.invalidLabels = x.invalidLabels
            this.removedLabels = x.removedLabels
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy