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

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

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

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



/**
 * The input argument to the AddJobFlowSteps operation.
 */
public class AddJobFlowStepsRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the runtime role for a step 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`.
     *
     * For example, `arn:aws:iam::1234567890:role/ReadOnly` is a correctly formatted runtime role ARN.
     */
    public val executionRoleArn: kotlin.String? = builder.executionRoleArn
    /**
     * A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
     */
    public val jobFlowId: kotlin.String? = builder.jobFlowId
    /**
     * A list of StepConfig to be executed by the job flow.
     */
    public val steps: List? = builder.steps

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

    override fun toString(): kotlin.String = buildString {
        append("AddJobFlowStepsRequest(")
        append("executionRoleArn=$executionRoleArn,")
        append("jobFlowId=$jobFlowId,")
        append("steps=$steps)")
    }

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

        if (executionRoleArn != other.executionRoleArn) return false
        if (jobFlowId != other.jobFlowId) return false
        if (steps != other.steps) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the runtime role for a step 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`.
         *
         * For example, `arn:aws:iam::1234567890:role/ReadOnly` is a correctly formatted runtime role ARN.
         */
        public var executionRoleArn: kotlin.String? = null
        /**
         * A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
         */
        public var jobFlowId: kotlin.String? = null
        /**
         * A list of StepConfig to be executed by the job flow.
         */
        public var steps: List? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy