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

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

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

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



/**
 * This input determines which step to describe.
 */
public class DescribeStepRequest private constructor(builder: Builder) {
    /**
     * The identifier of the cluster with steps to describe.
     */
    public val clusterId: kotlin.String? = builder.clusterId
    /**
     * The identifier of the step to describe.
     */
    public val stepId: kotlin.String? = builder.stepId

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * The identifier of the cluster with steps to describe.
         */
        public var clusterId: kotlin.String? = null
        /**
         * The identifier of the step to describe.
         */
        public var stepId: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy