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

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

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

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



public class GetAutoTerminationPolicyRequest private constructor(builder: Builder) {
    /**
     * Specifies the ID of the Amazon EMR cluster for which the auto-termination policy will be fetched.
     */
    public val clusterId: kotlin.String? = builder.clusterId

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

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

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

        if (clusterId != other.clusterId) return false

        return true
    }

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

    public class Builder {
        /**
         * Specifies the ID of the Amazon EMR cluster for which the auto-termination policy will be fetched.
         */
        public var clusterId: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy