commonMain.aws.sdk.kotlin.services.appflow.model.StopFlowRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StopFlowRequest private constructor(builder: Builder) {
/**
* The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.
*/
public val flowName: kotlin.String? = builder.flowName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.StopFlowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopFlowRequest(")
append("flowName=$flowName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = flowName?.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 StopFlowRequest
if (flowName != other.flowName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.StopFlowRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.
*/
public var flowName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.StopFlowRequest) : this() {
this.flowName = x.flowName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.StopFlowRequest = StopFlowRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}