
commonMain.aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chatbot.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateChimeWebhookConfigurationRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Number (ARN) of the ChimeWebhookConfiguration to update.
*/
public val chatConfigurationArn: kotlin.String? = builder.chatConfigurationArn
/**
* A user-defined role that AWS Chatbot assumes. This is not the service-linked role.
*
* For more information, see [IAM policies for AWS Chatbot](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) in the * AWS Chatbot Administrator Guide*.
*/
public val iamRoleArn: kotlin.String? = builder.iamRoleArn
/**
* Logging levels include `ERROR`, `INFO`, or `NONE`.
*/
public val loggingLevel: kotlin.String? = builder.loggingLevel
/**
* The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
*/
public val snsTopicArns: List? = builder.snsTopicArns
/**
* A description of the webhook. We recommend using the convention `RoomName/WebhookName`.
*
* For more information, see [Tutorial: Get started with Amazon Chime](https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html) in the * AWS Chatbot Administrator Guide*.
*/
public val webhookDescription: kotlin.String? = builder.webhookDescription
/**
* The URL for the Amazon Chime webhook.
*/
public val webhookUrl: kotlin.String? = builder.webhookUrl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateChimeWebhookConfigurationRequest(")
append("chatConfigurationArn=$chatConfigurationArn,")
append("iamRoleArn=$iamRoleArn,")
append("loggingLevel=$loggingLevel,")
append("snsTopicArns=$snsTopicArns,")
append("webhookDescription=*** Sensitive Data Redacted ***,")
append("webhookUrl=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = chatConfigurationArn?.hashCode() ?: 0
result = 31 * result + (iamRoleArn?.hashCode() ?: 0)
result = 31 * result + (loggingLevel?.hashCode() ?: 0)
result = 31 * result + (snsTopicArns?.hashCode() ?: 0)
result = 31 * result + (webhookDescription?.hashCode() ?: 0)
result = 31 * result + (webhookUrl?.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 UpdateChimeWebhookConfigurationRequest
if (chatConfigurationArn != other.chatConfigurationArn) return false
if (iamRoleArn != other.iamRoleArn) return false
if (loggingLevel != other.loggingLevel) return false
if (snsTopicArns != other.snsTopicArns) return false
if (webhookDescription != other.webhookDescription) return false
if (webhookUrl != other.webhookUrl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Number (ARN) of the ChimeWebhookConfiguration to update.
*/
public var chatConfigurationArn: kotlin.String? = null
/**
* A user-defined role that AWS Chatbot assumes. This is not the service-linked role.
*
* For more information, see [IAM policies for AWS Chatbot](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) in the * AWS Chatbot Administrator Guide*.
*/
public var iamRoleArn: kotlin.String? = null
/**
* Logging levels include `ERROR`, `INFO`, or `NONE`.
*/
public var loggingLevel: kotlin.String? = null
/**
* The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
*/
public var snsTopicArns: List? = null
/**
* A description of the webhook. We recommend using the convention `RoomName/WebhookName`.
*
* For more information, see [Tutorial: Get started with Amazon Chime](https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html) in the * AWS Chatbot Administrator Guide*.
*/
public var webhookDescription: kotlin.String? = null
/**
* The URL for the Amazon Chime webhook.
*/
public var webhookUrl: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationRequest) : this() {
this.chatConfigurationArn = x.chatConfigurationArn
this.iamRoleArn = x.iamRoleArn
this.loggingLevel = x.loggingLevel
this.snsTopicArns = x.snsTopicArns
this.webhookDescription = x.webhookDescription
this.webhookUrl = x.webhookUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationRequest = UpdateChimeWebhookConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy