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

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

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

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



/**
 * The input to the SetVisibleToAllUsers action.
 */
public class SetVisibleToAllUsersRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the job flow (cluster).
     */
    public val jobFlowIds: List? = builder.jobFlowIds
    /**
     * A value of `true` indicates that an IAM principal in the Amazon Web Services account can perform EMR actions on the cluster that the IAM policies attached to the principal allow. A value of `false` indicates that only the IAM principal that created the cluster and the Amazon Web Services root user can perform EMR actions on the cluster.
     */
    public val visibleToAllUsers: kotlin.Boolean = builder.visibleToAllUsers

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

    override fun toString(): kotlin.String = buildString {
        append("SetVisibleToAllUsersRequest(")
        append("jobFlowIds=$jobFlowIds,")
        append("visibleToAllUsers=$visibleToAllUsers)")
    }

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

        if (jobFlowIds != other.jobFlowIds) return false
        if (visibleToAllUsers != other.visibleToAllUsers) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique identifier of the job flow (cluster).
         */
        public var jobFlowIds: List? = null
        /**
         * A value of `true` indicates that an IAM principal in the Amazon Web Services account can perform EMR actions on the cluster that the IAM policies attached to the principal allow. A value of `false` indicates that only the IAM principal that created the cluster and the Amazon Web Services root user can perform EMR actions on the cluster.
         */
        public var visibleToAllUsers: kotlin.Boolean = false

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emr.model.SetVisibleToAllUsersRequest) : this() {
            this.jobFlowIds = x.jobFlowIds
            this.visibleToAllUsers = x.visibleToAllUsers
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy