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

commonMain.aws.sdk.kotlin.services.transfer.model.DescribedWorkflow.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.transfer.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes the properties of the specified workflow
 */
public class DescribedWorkflow private constructor(builder: Builder) {
    /**
     * Specifies the unique Amazon Resource Name (ARN) for the workflow.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * Specifies the text description for the workflow.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
     */
    public val onExceptionSteps: List? = builder.onExceptionSteps
    /**
     * Specifies the details for the steps that are in the specified workflow.
     */
    public val steps: List? = builder.steps
    /**
     * Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    public val tags: List? = builder.tags
    /**
     * A unique identifier for the workflow.
     */
    public val workflowId: kotlin.String? = builder.workflowId

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

    override fun toString(): kotlin.String = buildString {
        append("DescribedWorkflow(")
        append("arn=$arn,")
        append("description=$description,")
        append("onExceptionSteps=$onExceptionSteps,")
        append("steps=$steps,")
        append("tags=$tags,")
        append("workflowId=$workflowId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (onExceptionSteps?.hashCode() ?: 0)
        result = 31 * result + (steps?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (workflowId?.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 DescribedWorkflow

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (onExceptionSteps != other.onExceptionSteps) return false
        if (steps != other.steps) return false
        if (tags != other.tags) return false
        if (workflowId != other.workflowId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the unique Amazon Resource Name (ARN) for the workflow.
         */
        public var arn: kotlin.String? = null
        /**
         * Specifies the text description for the workflow.
         */
        public var description: kotlin.String? = null
        /**
         * Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
         */
        public var onExceptionSteps: List? = null
        /**
         * Specifies the details for the steps that are in the specified workflow.
         */
        public var steps: List? = null
        /**
         * Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
         */
        public var tags: List? = null
        /**
         * A unique identifier for the workflow.
         */
        public var workflowId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transfer.model.DescribedWorkflow) : this() {
            this.arn = x.arn
            this.description = x.description
            this.onExceptionSteps = x.onExceptionSteps
            this.steps = x.steps
            this.tags = x.tags
            this.workflowId = x.workflowId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.transfer.model.DescribedWorkflow = DescribedWorkflow(this)

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy