
commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.CognitoUserPoolConfigurationDetail.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.verifiedpermissions.model
/**
* The configuration for an identity source that represents a connection to an Amazon Cognito user pool used as an identity provider for Verified Permissions.
*
* This data type is used as a field that is part of an [ConfigurationDetail](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationDetail.html) structure that is part of the response to [GetIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html).
*
* Example:`"CognitoUserPoolConfiguration":{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"]}`
*/
public class CognitoUserPoolConfigurationDetail private constructor(builder: Builder) {
/**
* The unique application client IDs that are associated with the specified Amazon Cognito user pool.
*
* Example: `"clientIds": ["&ExampleCogClientId;"]`
*/
public val clientIds: List = requireNotNull(builder.clientIds) { "A non-null value must be provided for clientIds" }
/**
* The OpenID Connect (OIDC) `issuer` ID of the Amazon Cognito user pool that contains the identities to be authorized.
*
* Example: `"issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"`
*/
public val issuer: kotlin.String = requireNotNull(builder.issuer) { "A non-null value must be provided for issuer" }
/**
* The [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the Amazon Cognito user pool that contains the identities to be authorized.
*
* Example: `"userPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"`
*/
public val userPoolArn: kotlin.String = requireNotNull(builder.userPoolArn) { "A non-null value must be provided for userPoolArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.verifiedpermissions.model.CognitoUserPoolConfigurationDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CognitoUserPoolConfigurationDetail(")
append("clientIds=$clientIds,")
append("issuer=$issuer,")
append("userPoolArn=$userPoolArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientIds.hashCode()
result = 31 * result + (issuer.hashCode())
result = 31 * result + (userPoolArn.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 CognitoUserPoolConfigurationDetail
if (clientIds != other.clientIds) return false
if (issuer != other.issuer) return false
if (userPoolArn != other.userPoolArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.verifiedpermissions.model.CognitoUserPoolConfigurationDetail = Builder(this).apply(block).build()
public class Builder {
/**
* The unique application client IDs that are associated with the specified Amazon Cognito user pool.
*
* Example: `"clientIds": ["&ExampleCogClientId;"]`
*/
public var clientIds: List? = null
/**
* The OpenID Connect (OIDC) `issuer` ID of the Amazon Cognito user pool that contains the identities to be authorized.
*
* Example: `"issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"`
*/
public var issuer: kotlin.String? = null
/**
* The [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the Amazon Cognito user pool that contains the identities to be authorized.
*
* Example: `"userPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"`
*/
public var userPoolArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.verifiedpermissions.model.CognitoUserPoolConfigurationDetail) : this() {
this.clientIds = x.clientIds
this.issuer = x.issuer
this.userPoolArn = x.userPoolArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.verifiedpermissions.model.CognitoUserPoolConfigurationDetail = CognitoUserPoolConfigurationDetail(this)
internal fun correctErrors(): Builder {
if (clientIds == null) clientIds = emptyList()
if (issuer == null) issuer = ""
if (userPoolArn == null) userPoolArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy