
commonMain.aws.sdk.kotlin.services.swf.model.DescribeWorkflowExecutionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.swf.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeWorkflowExecutionRequest private constructor(builder: Builder) {
/**
* The name of the domain containing the workflow execution.
*/
public val domain: kotlin.String? = builder.domain
/**
* The workflow execution to describe.
*/
public val execution: aws.sdk.kotlin.services.swf.model.WorkflowExecution? = builder.execution
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.DescribeWorkflowExecutionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeWorkflowExecutionRequest(")
append("domain=$domain,")
append("execution=$execution")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domain?.hashCode() ?: 0
result = 31 * result + (execution?.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 DescribeWorkflowExecutionRequest
if (domain != other.domain) return false
if (execution != other.execution) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.DescribeWorkflowExecutionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the domain containing the workflow execution.
*/
public var domain: kotlin.String? = null
/**
* The workflow execution to describe.
*/
public var execution: aws.sdk.kotlin.services.swf.model.WorkflowExecution? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.DescribeWorkflowExecutionRequest) : this() {
this.domain = x.domain
this.execution = x.execution
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.DescribeWorkflowExecutionRequest = DescribeWorkflowExecutionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.swf.model.WorkflowExecution] inside the given [block]
*/
public fun execution(block: aws.sdk.kotlin.services.swf.model.WorkflowExecution.Builder.() -> kotlin.Unit) {
this.execution = aws.sdk.kotlin.services.swf.model.WorkflowExecution.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy