
commonMain.aws.sdk.kotlin.services.ssm.model.StopAutomationExecutionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class StopAutomationExecutionRequest private constructor(builder: Builder) {
/**
* The execution ID of the Automation to stop.
*/
public val automationExecutionId: kotlin.String? = builder.automationExecutionId
/**
* The stop request type. Valid types include the following: Cancel and Complete. The default type is Cancel.
*/
public val type: aws.sdk.kotlin.services.ssm.model.StopType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.StopAutomationExecutionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopAutomationExecutionRequest(")
append("automationExecutionId=$automationExecutionId,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = automationExecutionId?.hashCode() ?: 0
result = 31 * result + (type?.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 StopAutomationExecutionRequest
if (automationExecutionId != other.automationExecutionId) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.StopAutomationExecutionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The execution ID of the Automation to stop.
*/
public var automationExecutionId: kotlin.String? = null
/**
* The stop request type. Valid types include the following: Cancel and Complete. The default type is Cancel.
*/
public var type: aws.sdk.kotlin.services.ssm.model.StopType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.StopAutomationExecutionRequest) : this() {
this.automationExecutionId = x.automationExecutionId
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.StopAutomationExecutionRequest = StopAutomationExecutionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy