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 ARN of the ChimeWebhookConfiguration to update.
*/
public val chatConfigurationArn: kotlin.String? = builder.chatConfigurationArn
/**
* The ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot.
*/
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
/**
* Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup tutorial for more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
*/
public val webhookDescription: kotlin.String? = builder.webhookDescription
/**
* URL for the 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=$webhookDescription,")
append("webhookUrl=$webhookUrl")
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 ARN of the ChimeWebhookConfiguration to update.
*/
public var chatConfigurationArn: kotlin.String? = null
/**
* The ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot.
*/
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
/**
* Description of the webhook. Recommend using the convention `RoomName/WebhookName`. See Chime setup tutorial for more details: https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html.
*/
public var webhookDescription: kotlin.String? = null
/**
* URL for the 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