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

commonMain.aws.sdk.kotlin.services.elastictranscoder.model.TestRoleRequest.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 `TestRoleRequest` structure.
 */
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public class TestRoleRequest private constructor(builder: Builder) {
    /**
     * The Amazon S3 bucket that contains media files to be transcoded. The action attempts to read from this bucket.
     */
    public val inputBucket: kotlin.String? = builder.inputBucket
    /**
     * The Amazon S3 bucket that Elastic Transcoder writes transcoded media files to. The action attempts to read from this bucket.
     */
    public val outputBucket: kotlin.String? = builder.outputBucket
    /**
     * The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to test.
     */
    public val role: kotlin.String? = builder.role
    /**
     * The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics that you want the action to send a test notification to.
     */
    public val topics: List? = builder.topics

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

    override fun toString(): kotlin.String = buildString {
        append("TestRoleRequest(")
        append("inputBucket=$inputBucket,")
        append("outputBucket=$outputBucket,")
        append("role=$role,")
        append("topics=$topics")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inputBucket?.hashCode() ?: 0
        result = 31 * result + (outputBucket?.hashCode() ?: 0)
        result = 31 * result + (role?.hashCode() ?: 0)
        result = 31 * result + (topics?.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 TestRoleRequest

        if (inputBucket != other.inputBucket) return false
        if (outputBucket != other.outputBucket) return false
        if (role != other.role) return false
        if (topics != other.topics) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon S3 bucket that contains media files to be transcoded. The action attempts to read from this bucket.
         */
        public var inputBucket: kotlin.String? = null
        /**
         * The Amazon S3 bucket that Elastic Transcoder writes transcoded media files to. The action attempts to read from this bucket.
         */
        public var outputBucket: kotlin.String? = null
        /**
         * The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to test.
         */
        public var role: kotlin.String? = null
        /**
         * The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics that you want the action to send a test notification to.
         */
        public var topics: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.TestRoleRequest) : this() {
            this.inputBucket = x.inputBucket
            this.outputBucket = x.outputBucket
            this.role = x.role
            this.topics = x.topics
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy