commonMain.aws.sdk.kotlin.services.glue.model.PutWorkflowRunPropertiesRequest.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 PutWorkflowRunPropertiesRequest private constructor(builder: Builder) {
/**
* Name of the workflow which was run.
*/
public val name: kotlin.String? = builder.name
/**
* The ID of the workflow run for which the run properties should be updated.
*/
public val runId: kotlin.String? = builder.runId
/**
* The properties to put for the specified run.
*/
public val runProperties: Map? = builder.runProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.PutWorkflowRunPropertiesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutWorkflowRunPropertiesRequest(")
append("name=$name,")
append("runId=$runId,")
append("runProperties=$runProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (runId?.hashCode() ?: 0)
result = 31 * result + (runProperties?.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 PutWorkflowRunPropertiesRequest
if (name != other.name) return false
if (runId != other.runId) return false
if (runProperties != other.runProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.PutWorkflowRunPropertiesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Name of the workflow which was run.
*/
public var name: kotlin.String? = null
/**
* The ID of the workflow run for which the run properties should be updated.
*/
public var runId: kotlin.String? = null
/**
* The properties to put for the specified run.
*/
public var runProperties: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.PutWorkflowRunPropertiesRequest) : this() {
this.name = x.name
this.runId = x.runId
this.runProperties = x.runProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.PutWorkflowRunPropertiesRequest = PutWorkflowRunPropertiesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}