commonMain.aws.sdk.kotlin.services.appflow.model.DescribeFlowRequest.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeFlowRequest 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.DescribeFlowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeFlowRequest(")
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 DescribeFlowRequest
if (flowName != other.flowName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.DescribeFlowRequest = 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.DescribeFlowRequest) : this() {
this.flowName = x.flowName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.DescribeFlowRequest = DescribeFlowRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}