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

commonMain.aws.sdk.kotlin.services.elastictranscoder.model.TestRoleResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elastictranscoder.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The `TestRoleResponse` structure.
 */
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public class TestRoleResponse private constructor(builder: Builder) {
    /**
     * If the `Success` element contains `false`, this value is an array of one or more error messages that were generated during the test process.
     */
    public val messages: List? = builder.messages
    /**
     * If the operation is successful, this value is `true`; otherwise, the value is `false`.
     */
    public val success: kotlin.String? = builder.success

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

    override fun toString(): kotlin.String = buildString {
        append("TestRoleResponse(")
        append("messages=$messages,")
        append("success=$success")
        append(")")
    }

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

        if (messages != other.messages) return false
        if (success != other.success) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * If the `Success` element contains `false`, this value is an array of one or more error messages that were generated during the test process.
         */
        public var messages: List? = null
        /**
         * If the operation is successful, this value is `true`; otherwise, the value is `false`.
         */
        public var success: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.TestRoleResponse) : this() {
            this.messages = x.messages
            this.success = x.success
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy