commonMain.aws.sdk.kotlin.services.glue.model.GetWorkflowRunsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetWorkflowRunsRequest private constructor(builder: Builder) {
/**
* Specifies whether to include the workflow graph in response or not.
*/
public val includeGraph: kotlin.Boolean? = builder.includeGraph
/**
* The maximum number of workflow runs to be included in the response.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* Name of the workflow whose metadata of runs should be returned.
*/
public val name: kotlin.String? = builder.name
/**
* The maximum size of the response.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetWorkflowRunsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetWorkflowRunsRequest(")
append("includeGraph=$includeGraph,")
append("maxResults=$maxResults,")
append("name=$name,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = includeGraph?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (nextToken?.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 GetWorkflowRunsRequest
if (includeGraph != other.includeGraph) return false
if (maxResults != other.maxResults) return false
if (name != other.name) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetWorkflowRunsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether to include the workflow graph in response or not.
*/
public var includeGraph: kotlin.Boolean? = null
/**
* The maximum number of workflow runs to be included in the response.
*/
public var maxResults: kotlin.Int? = null
/**
* Name of the workflow whose metadata of runs should be returned.
*/
public var name: kotlin.String? = null
/**
* The maximum size of the response.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetWorkflowRunsRequest) : this() {
this.includeGraph = x.includeGraph
this.maxResults = x.maxResults
this.name = x.name
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetWorkflowRunsRequest = GetWorkflowRunsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}