commonMain.aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsResponse.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 BatchGetWorkflowsResponse private constructor(builder: Builder) {
/**
* A list of names of workflows not found.
*/
public val missingWorkflows: List? = builder.missingWorkflows
/**
* A list of workflow resource metadata.
*/
public val workflows: List? = builder.workflows
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetWorkflowsResponse(")
append("missingWorkflows=$missingWorkflows,")
append("workflows=$workflows")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = missingWorkflows?.hashCode() ?: 0
result = 31 * result + (workflows?.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 BatchGetWorkflowsResponse
if (missingWorkflows != other.missingWorkflows) return false
if (workflows != other.workflows) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of names of workflows not found.
*/
public var missingWorkflows: List? = null
/**
* A list of workflow resource metadata.
*/
public var workflows: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsResponse) : this() {
this.missingWorkflows = x.missingWorkflows
this.workflows = x.workflows
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetWorkflowsResponse = BatchGetWorkflowsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}