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

commonMain.aws.sdk.kotlin.services.sts.model.DecodeAuthorizationMessageResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sts.model



/**
 * A document that contains additional information about the authorization status of a request from an encoded message that is returned in response to an Amazon Web Services request.
 */
public class DecodeAuthorizationMessageResponse private constructor(builder: Builder) {
    /**
     * The API returns a response with the decoded message.
     */
    public val decodedMessage: kotlin.String? = builder.decodedMessage

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

    override fun toString(): kotlin.String = buildString {
        append("DecodeAuthorizationMessageResponse(")
        append("decodedMessage=$decodedMessage)")
    }

    override fun hashCode(): kotlin.Int {
        var result = decodedMessage?.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 DecodeAuthorizationMessageResponse

        if (decodedMessage != other.decodedMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The API returns a response with the decoded message.
         */
        public var decodedMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sts.model.DecodeAuthorizationMessageResponse) : this() {
            this.decodedMessage = x.decodedMessage
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.sts.model.DecodeAuthorizationMessageResponse = DecodeAuthorizationMessageResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy