commonMain.aws.sdk.kotlin.services.transfer.model.DeleteStepDetails.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
/**
* The name of the step, used to identify the delete step.
*/
public class DeleteStepDetails 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transfer.model.DeleteStepDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteStepDetails(")
append("name=$name,")
append("sourceFileLocation=$sourceFileLocation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (sourceFileLocation?.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 DeleteStepDetails
if (name != other.name) return false
if (sourceFileLocation != other.sourceFileLocation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transfer.model.DeleteStepDetails = 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transfer.model.DeleteStepDetails) : this() {
this.name = x.name
this.sourceFileLocation = x.sourceFileLocation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transfer.model.DeleteStepDetails = DeleteStepDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}