
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.DeleteContactRequest.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 DeleteContactRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the contact that you're deleting.
*/
public val contactId: kotlin.String? = builder.contactId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.DeleteContactRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteContactRequest(")
append("contactId=$contactId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = contactId?.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 DeleteContactRequest
if (contactId != other.contactId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.DeleteContactRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the contact that you're deleting.
*/
public var contactId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.DeleteContactRequest) : this() {
this.contactId = x.contactId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.DeleteContactRequest = DeleteContactRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy