commonMain.aws.sdk.kotlin.services.glue.model.UpdateWorkflowRequest.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 UpdateWorkflowRequest private constructor(builder: Builder) {
/**
* A collection of properties to be used as part of each execution of the workflow.
*/
public val defaultRunProperties: Map? = builder.defaultRunProperties
/**
* The description of the workflow.
*/
public val description: kotlin.String? = builder.description
/**
* You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.
*/
public val maxConcurrentRuns: kotlin.Int? = builder.maxConcurrentRuns
/**
* Name of the workflow to be updated.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.UpdateWorkflowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateWorkflowRequest(")
append("defaultRunProperties=$defaultRunProperties,")
append("description=$description,")
append("maxConcurrentRuns=$maxConcurrentRuns,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultRunProperties?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (maxConcurrentRuns ?: 0)
result = 31 * result + (name?.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 UpdateWorkflowRequest
if (defaultRunProperties != other.defaultRunProperties) return false
if (description != other.description) return false
if (maxConcurrentRuns != other.maxConcurrentRuns) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.UpdateWorkflowRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A collection of properties to be used as part of each execution of the workflow.
*/
public var defaultRunProperties: Map? = null
/**
* The description of the workflow.
*/
public var description: kotlin.String? = null
/**
* You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.
*/
public var maxConcurrentRuns: kotlin.Int? = null
/**
* Name of the workflow to be updated.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.UpdateWorkflowRequest) : this() {
this.defaultRunProperties = x.defaultRunProperties
this.description = x.description
this.maxConcurrentRuns = x.maxConcurrentRuns
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.UpdateWorkflowRequest = UpdateWorkflowRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}