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

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

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

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



public class LabelParameterVersionRequest private constructor(builder: Builder) {
    /**
     * One or more labels to attach to the specified parameter version.
     */
    public val labels: List? = builder.labels
    /**
     * The parameter name on which you want to attach one or more labels.
     *
     * You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.
     */
    public val parameterVersion: kotlin.Long? = builder.parameterVersion

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

    override fun toString(): kotlin.String = buildString {
        append("LabelParameterVersionRequest(")
        append("labels=$labels,")
        append("name=$name,")
        append("parameterVersion=$parameterVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = labels?.hashCode() ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (parameterVersion?.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 LabelParameterVersionRequest

        if (labels != other.labels) return false
        if (name != other.name) return false
        if (parameterVersion != other.parameterVersion) return false

        return true
    }

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

    public class Builder {
        /**
         * One or more labels to attach to the specified parameter version.
         */
        public var labels: List? = null
        /**
         * The parameter name on which you want to attach one or more labels.
         *
         * You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.
         */
        public var name: kotlin.String? = null
        /**
         * The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.
         */
        public var parameterVersion: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.LabelParameterVersionRequest) : this() {
            this.labels = x.labels
            this.name = x.name
            this.parameterVersion = x.parameterVersion
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy