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

commonMain.aws.sdk.kotlin.services.emr.model.GetClusterSessionCredentialsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.emr.model



public class GetClusterSessionCredentialsRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the cluster.
     */
    public val clusterId: kotlin.String? = builder.clusterId
    /**
     * The Amazon Resource Name (ARN) of the runtime role for interactive workload submission on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: `arn:partition:service:region:account:resource`.
     */
    public val executionRoleArn: kotlin.String? = builder.executionRoleArn

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

    override fun toString(): kotlin.String = buildString {
        append("GetClusterSessionCredentialsRequest(")
        append("clusterId=$clusterId,")
        append("executionRoleArn=$executionRoleArn")
        append(")")
    }

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

        if (clusterId != other.clusterId) return false
        if (executionRoleArn != other.executionRoleArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique identifier of the cluster.
         */
        public var clusterId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the runtime role for interactive workload submission on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: `arn:partition:service:region:account:resource`.
         */
        public var executionRoleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emr.model.GetClusterSessionCredentialsRequest) : this() {
            this.clusterId = x.clusterId
            this.executionRoleArn = x.executionRoleArn
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy