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

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

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

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



public class CreateActivationResponse private constructor(builder: Builder) {
    /**
     * The code the system generates when it processes the activation. The activation code functions like a password to validate the activation ID.
     */
    public val activationCode: kotlin.String? = builder.activationCode
    /**
     * The ID number generated by the system when it processed the activation. The activation ID functions like a user name.
     */
    public val activationId: kotlin.String? = builder.activationId

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

    override fun toString(): kotlin.String = buildString {
        append("CreateActivationResponse(")
        append("activationCode=$activationCode,")
        append("activationId=$activationId")
        append(")")
    }

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

        if (activationCode != other.activationCode) return false
        if (activationId != other.activationId) return false

        return true
    }

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

    public class Builder {
        /**
         * The code the system generates when it processes the activation. The activation code functions like a password to validate the activation ID.
         */
        public var activationCode: kotlin.String? = null
        /**
         * The ID number generated by the system when it processed the activation. The activation ID functions like a user name.
         */
        public var activationId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.CreateActivationResponse) : this() {
            this.activationCode = x.activationCode
            this.activationId = x.activationId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy