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