commonMain.aws.sdk.kotlin.services.chatbot.model.ConfiguredTeam.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
/**
* A Microsoft Teams team that has been authorized with AWS Chatbot.
*/
public class ConfiguredTeam private constructor(builder: Builder) {
/**
* The ID of the Microsoft Team authorized with AWS Chatbot. To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more details, see steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide.
*/
public val teamId: kotlin.String = requireNotNull(builder.teamId) { "A non-null value must be provided for teamId" }
/**
* The name of the Microsoft Teams Team.
*/
public val teamName: kotlin.String? = builder.teamName
/**
* The ID of the Microsoft Teams tenant.
*/
public val tenantId: kotlin.String = requireNotNull(builder.tenantId) { "A non-null value must be provided for tenantId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chatbot.model.ConfiguredTeam = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfiguredTeam(")
append("teamId=$teamId,")
append("teamName=$teamName,")
append("tenantId=$tenantId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = teamId.hashCode()
result = 31 * result + (teamName?.hashCode() ?: 0)
result = 31 * result + (tenantId.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 ConfiguredTeam
if (teamId != other.teamId) return false
if (teamName != other.teamName) return false
if (tenantId != other.tenantId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chatbot.model.ConfiguredTeam = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the Microsoft Team authorized with AWS Chatbot. To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more details, see steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide.
*/
public var teamId: kotlin.String? = null
/**
* The name of the Microsoft Teams Team.
*/
public var teamName: kotlin.String? = null
/**
* The ID of the Microsoft Teams tenant.
*/
public var tenantId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chatbot.model.ConfiguredTeam) : this() {
this.teamId = x.teamId
this.teamName = x.teamName
this.tenantId = x.tenantId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chatbot.model.ConfiguredTeam = ConfiguredTeam(this)
internal fun correctErrors(): Builder {
if (teamId == null) teamId = ""
if (tenantId == null) tenantId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy