
commonMain.aws.sdk.kotlin.services.chatbot.model.UpdateSlackChannelConfigurationRequest.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 UpdateSlackChannelConfigurationRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Number (ARN) of the SlackChannelConfiguration to update.
*/
public val chatConfigurationArn: kotlin.String? = builder.chatConfigurationArn
/**
* The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed `AdministratorAccess` policy is applied by default if this is not set.
*/
public val guardrailPolicyArns: List? = builder.guardrailPolicyArns
/**
* 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 ID of the Slack channel.
*
* To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
*/
public val slackChannelId: kotlin.String? = builder.slackChannelId
/**
* The name of the Slack channel.
*/
public val slackChannelName: kotlin.String? = builder.slackChannelName
/**
* The Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.
*/
public val snsTopicArns: List? = builder.snsTopicArns
/**
* Enables use of a user role requirement in your chat configuration.
*/
public val userAuthorizationRequired: kotlin.Boolean? = builder.userAuthorizationRequired
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chatbot.model.UpdateSlackChannelConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSlackChannelConfigurationRequest(")
append("chatConfigurationArn=$chatConfigurationArn,")
append("guardrailPolicyArns=$guardrailPolicyArns,")
append("iamRoleArn=$iamRoleArn,")
append("loggingLevel=$loggingLevel,")
append("slackChannelId=$slackChannelId,")
append("slackChannelName=*** Sensitive Data Redacted ***,")
append("snsTopicArns=$snsTopicArns,")
append("userAuthorizationRequired=$userAuthorizationRequired")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = chatConfigurationArn?.hashCode() ?: 0
result = 31 * result + (guardrailPolicyArns?.hashCode() ?: 0)
result = 31 * result + (iamRoleArn?.hashCode() ?: 0)
result = 31 * result + (loggingLevel?.hashCode() ?: 0)
result = 31 * result + (slackChannelId?.hashCode() ?: 0)
result = 31 * result + (slackChannelName?.hashCode() ?: 0)
result = 31 * result + (snsTopicArns?.hashCode() ?: 0)
result = 31 * result + (userAuthorizationRequired?.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 UpdateSlackChannelConfigurationRequest
if (chatConfigurationArn != other.chatConfigurationArn) return false
if (guardrailPolicyArns != other.guardrailPolicyArns) return false
if (iamRoleArn != other.iamRoleArn) return false
if (loggingLevel != other.loggingLevel) return false
if (slackChannelId != other.slackChannelId) return false
if (slackChannelName != other.slackChannelName) return false
if (snsTopicArns != other.snsTopicArns) return false
if (userAuthorizationRequired != other.userAuthorizationRequired) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chatbot.model.UpdateSlackChannelConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Number (ARN) of the SlackChannelConfiguration to update.
*/
public var chatConfigurationArn: kotlin.String? = null
/**
* The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed `AdministratorAccess` policy is applied by default if this is not set.
*/
public var guardrailPolicyArns: List? = 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 ID of the Slack channel.
*
* To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
*/
public var slackChannelId: kotlin.String? = null
/**
* The name of the Slack channel.
*/
public var slackChannelName: kotlin.String? = null
/**
* The Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.
*/
public var snsTopicArns: List? = null
/**
* Enables use of a user role requirement in your chat configuration.
*/
public var userAuthorizationRequired: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chatbot.model.UpdateSlackChannelConfigurationRequest) : this() {
this.chatConfigurationArn = x.chatConfigurationArn
this.guardrailPolicyArns = x.guardrailPolicyArns
this.iamRoleArn = x.iamRoleArn
this.loggingLevel = x.loggingLevel
this.slackChannelId = x.slackChannelId
this.slackChannelName = x.slackChannelName
this.snsTopicArns = x.snsTopicArns
this.userAuthorizationRequired = x.userAuthorizationRequired
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chatbot.model.UpdateSlackChannelConfigurationRequest = UpdateSlackChannelConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy