commonMain.aws.sdk.kotlin.services.transfer.model.ExecutionStepResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transfer-jvm Show documentation
Show all versions of transfer-jvm Show documentation
The AWS SDK for Kotlin client for Transfer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transfer.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the following details for the step: error (if any), outputs (if any), and the step type.
*/
public class ExecutionStepResult private constructor(builder: Builder) {
/**
* Specifies the details for an error, if it occurred during execution of the specified workflow step.
*/
public val error: aws.sdk.kotlin.services.transfer.model.ExecutionError? = builder.error
/**
* The values for the key/value pair applied as a tag to the file. Only applicable if the step type is `TAG`.
*/
public val outputs: kotlin.String? = builder.outputs
/**
* One of the available step types.
* + **`COPY`** - Copy the file to another location.
* + **`CUSTOM`** - Perform a custom step with an Lambda function target.
* + **`DECRYPT`** - Decrypt a file that was encrypted before it was uploaded.
* + **`DELETE`** - Delete the file.
* + **`TAG`** - Add a tag to the file.
*/
public val stepType: aws.sdk.kotlin.services.transfer.model.WorkflowStepType? = builder.stepType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transfer.model.ExecutionStepResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionStepResult(")
append("error=$error,")
append("outputs=$outputs,")
append("stepType=$stepType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = error?.hashCode() ?: 0
result = 31 * result + (outputs?.hashCode() ?: 0)
result = 31 * result + (stepType?.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 ExecutionStepResult
if (error != other.error) return false
if (outputs != other.outputs) return false
if (stepType != other.stepType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transfer.model.ExecutionStepResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the details for an error, if it occurred during execution of the specified workflow step.
*/
public var error: aws.sdk.kotlin.services.transfer.model.ExecutionError? = null
/**
* The values for the key/value pair applied as a tag to the file. Only applicable if the step type is `TAG`.
*/
public var outputs: kotlin.String? = null
/**
* One of the available step types.
* + **`COPY`** - Copy the file to another location.
* + **`CUSTOM`** - Perform a custom step with an Lambda function target.
* + **`DECRYPT`** - Decrypt a file that was encrypted before it was uploaded.
* + **`DELETE`** - Delete the file.
* + **`TAG`** - Add a tag to the file.
*/
public var stepType: aws.sdk.kotlin.services.transfer.model.WorkflowStepType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transfer.model.ExecutionStepResult) : this() {
this.error = x.error
this.outputs = x.outputs
this.stepType = x.stepType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transfer.model.ExecutionStepResult = ExecutionStepResult(this)
/**
* construct an [aws.sdk.kotlin.services.transfer.model.ExecutionError] inside the given [block]
*/
public fun error(block: aws.sdk.kotlin.services.transfer.model.ExecutionError.Builder.() -> kotlin.Unit) {
this.error = aws.sdk.kotlin.services.transfer.model.ExecutionError.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}