
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.StopEngagementRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmcontacts.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StopEngagementRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the engagement.
*/
public val engagementId: kotlin.String? = builder.engagementId
/**
* The reason that you're stopping the engagement.
*/
public val reason: kotlin.String? = builder.reason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.StopEngagementRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopEngagementRequest(")
append("engagementId=$engagementId,")
append("reason=$reason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = engagementId?.hashCode() ?: 0
result = 31 * result + (reason?.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 StopEngagementRequest
if (engagementId != other.engagementId) return false
if (reason != other.reason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.StopEngagementRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the engagement.
*/
public var engagementId: kotlin.String? = null
/**
* The reason that you're stopping the engagement.
*/
public var reason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.StopEngagementRequest) : this() {
this.engagementId = x.engagementId
this.reason = x.reason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.StopEngagementRequest = StopEngagementRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy