commonMain.aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetWorkflowsRequest private constructor(builder: Builder) {
/**
* Specifies whether to include a graph when returning the workflow resource metadata.
*/
public val includeGraph: kotlin.Boolean? = builder.includeGraph
/**
* A list of workflow names, which may be the names returned from the `ListWorkflows` operation.
*/
public val names: List? = builder.names
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetWorkflowsRequest(")
append("includeGraph=$includeGraph,")
append("names=$names")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = includeGraph?.hashCode() ?: 0
result = 31 * result + (names?.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 BatchGetWorkflowsRequest
if (includeGraph != other.includeGraph) return false
if (names != other.names) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether to include a graph when returning the workflow resource metadata.
*/
public var includeGraph: kotlin.Boolean? = null
/**
* A list of workflow names, which may be the names returned from the `ListWorkflows` operation.
*/
public var names: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsRequest) : this() {
this.includeGraph = x.includeGraph
this.names = x.names
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsRequest = BatchGetWorkflowsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}