commonMain.aws.sdk.kotlin.services.shield.model.AssociateProactiveEngagementDetailsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shield Show documentation
Show all versions of shield Show documentation
The AWS SDK for Kotlin client for Shield
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
public class AssociateProactiveEngagementDetailsRequest private constructor(builder: Builder) {
/**
* A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
*
* To enable proactive engagement, the contact list must include at least one phone number.
*
* The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using `DescribeEmergencyContactSettings` and then provide it here.
*/
public val emergencyContactList: List? = builder.emergencyContactList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.AssociateProactiveEngagementDetailsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateProactiveEngagementDetailsRequest(")
append("emergencyContactList=$emergencyContactList)")
}
override fun hashCode(): kotlin.Int {
var result = emergencyContactList?.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 AssociateProactiveEngagementDetailsRequest
if (emergencyContactList != other.emergencyContactList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.AssociateProactiveEngagementDetailsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
*
* To enable proactive engagement, the contact list must include at least one phone number.
*
* The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using `DescribeEmergencyContactSettings` and then provide it here.
*/
public var emergencyContactList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.shield.model.AssociateProactiveEngagementDetailsRequest) : this() {
this.emergencyContactList = x.emergencyContactList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.shield.model.AssociateProactiveEngagementDetailsRequest = AssociateProactiveEngagementDetailsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy