All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.IdentitySourceDetails.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.verifiedpermissions.model



/**
 * A structure that contains configuration of the identity source.
 *
 * This data type was a response parameter for the [GetIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html) operation. Replaced by [ConfigurationDetail](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationDetail.html).
 */
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public class IdentitySourceDetails private constructor(builder: Builder) {
    /**
     * The application client IDs associated with the specified Amazon Cognito user pool that are enabled for this identity source.
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public val clientIds: List? = builder.clientIds
    /**
     * The well-known URL that points to this user pool's OIDC discovery endpoint. This is a URL string in the following format. This URL replaces the placeholders for both the Amazon Web Services Region and the user pool identifier with those appropriate for this user pool.
     *
     * `https://cognito-idp.<region>.amazonaws.com/<user-pool-id>/.well-known/openid-configuration`
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public val discoveryUrl: kotlin.String? = builder.discoveryUrl
    /**
     * A string that identifies the type of OIDC service represented by this identity source.
     *
     * At this time, the only valid value is `cognito`.
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public val openIdIssuer: aws.sdk.kotlin.services.verifiedpermissions.model.OpenIdIssuer? = builder.openIdIssuer
    /**
     * The [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the Amazon Cognito user pool whose identities are accessible to this Verified Permissions policy store.
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public val userPoolArn: kotlin.String? = builder.userPoolArn

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.verifiedpermissions.model.IdentitySourceDetails = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("IdentitySourceDetails(")
        append("clientIds=$clientIds,")
        append("discoveryUrl=$discoveryUrl,")
        append("openIdIssuer=$openIdIssuer,")
        append("userPoolArn=$userPoolArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientIds?.hashCode() ?: 0
        result = 31 * result + (discoveryUrl?.hashCode() ?: 0)
        result = 31 * result + (openIdIssuer?.hashCode() ?: 0)
        result = 31 * result + (userPoolArn?.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 IdentitySourceDetails

        if (clientIds != other.clientIds) return false
        if (discoveryUrl != other.discoveryUrl) return false
        if (openIdIssuer != other.openIdIssuer) return false
        if (userPoolArn != other.userPoolArn) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.verifiedpermissions.model.IdentitySourceDetails = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The application client IDs associated with the specified Amazon Cognito user pool that are enabled for this identity source.
         */
        @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
        public var clientIds: List? = null
        /**
         * The well-known URL that points to this user pool's OIDC discovery endpoint. This is a URL string in the following format. This URL replaces the placeholders for both the Amazon Web Services Region and the user pool identifier with those appropriate for this user pool.
         *
         * `https://cognito-idp.<region>.amazonaws.com/<user-pool-id>/.well-known/openid-configuration`
         */
        @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
        public var discoveryUrl: kotlin.String? = null
        /**
         * A string that identifies the type of OIDC service represented by this identity source.
         *
         * At this time, the only valid value is `cognito`.
         */
        @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
        public var openIdIssuer: aws.sdk.kotlin.services.verifiedpermissions.model.OpenIdIssuer? = 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 whose identities are accessible to this Verified Permissions policy store.
         */
        @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
        public var userPoolArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.verifiedpermissions.model.IdentitySourceDetails) : this() {
            this.clientIds = x.clientIds
            this.discoveryUrl = x.discoveryUrl
            this.openIdIssuer = x.openIdIssuer
            this.userPoolArn = x.userPoolArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.verifiedpermissions.model.IdentitySourceDetails = IdentitySourceDetails(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy