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

commonMain.aws.sdk.kotlin.services.transfer.model.CustomStepDetails.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

/**
 * Each step type has its own `StepDetails` structure.
 */
public class CustomStepDetails private constructor(builder: Builder) {
    /**
     * The name of the step, used as an identifier.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.
     * + To use the previous file as the input, enter `${previous.file}`. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.
     * + To use the originally uploaded file location as input for this step, enter `${original.file}`.
     */
    public val sourceFileLocation: kotlin.String? = builder.sourceFileLocation
    /**
     * The ARN for the Lambda function that is being called.
     */
    public val target: kotlin.String? = builder.target
    /**
     * Timeout, in seconds, for the step.
     */
    public val timeoutSeconds: kotlin.Int? = builder.timeoutSeconds

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

    override fun toString(): kotlin.String = buildString {
        append("CustomStepDetails(")
        append("name=$name,")
        append("sourceFileLocation=$sourceFileLocation,")
        append("target=$target,")
        append("timeoutSeconds=$timeoutSeconds")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = name?.hashCode() ?: 0
        result = 31 * result + (sourceFileLocation?.hashCode() ?: 0)
        result = 31 * result + (target?.hashCode() ?: 0)
        result = 31 * result + (timeoutSeconds ?: 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 CustomStepDetails

        if (name != other.name) return false
        if (sourceFileLocation != other.sourceFileLocation) return false
        if (target != other.target) return false
        if (timeoutSeconds != other.timeoutSeconds) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the step, used as an identifier.
         */
        public var name: kotlin.String? = null
        /**
         * Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.
         * + To use the previous file as the input, enter `${previous.file}`. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.
         * + To use the originally uploaded file location as input for this step, enter `${original.file}`.
         */
        public var sourceFileLocation: kotlin.String? = null
        /**
         * The ARN for the Lambda function that is being called.
         */
        public var target: kotlin.String? = null
        /**
         * Timeout, in seconds, for the step.
         */
        public var timeoutSeconds: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transfer.model.CustomStepDetails) : this() {
            this.name = x.name
            this.sourceFileLocation = x.sourceFileLocation
            this.target = x.target
            this.timeoutSeconds = x.timeoutSeconds
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy