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

commonMain.aws.sdk.kotlin.services.iam.model.GetOpenIdConnectProviderResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iam.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Contains the response to a successful GetOpenIDConnectProvider request.
 */
public class GetOpenIdConnectProviderResponse private constructor(builder: Builder) {
    /**
     * A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
     */
    public val clientIdList: List? = builder.clientIdList
    /**
     * The date and time when the IAM OIDC provider resource object was created in the Amazon Web Services account.
     */
    public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
    /**
     * A list of tags that are attached to the specified IAM OIDC provider. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.
     */
    public val tags: List? = builder.tags
    /**
     * A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
     */
    public val thumbprintList: List? = builder.thumbprintList
    /**
     * The URL that the IAM OIDC provider resource object is associated with. For more information, see CreateOpenIDConnectProvider.
     */
    public val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("GetOpenIdConnectProviderResponse(")
        append("clientIdList=$clientIdList,")
        append("createDate=$createDate,")
        append("tags=$tags,")
        append("thumbprintList=$thumbprintList,")
        append("url=$url")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientIdList?.hashCode() ?: 0
        result = 31 * result + (createDate?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (thumbprintList?.hashCode() ?: 0)
        result = 31 * result + (url?.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 GetOpenIdConnectProviderResponse

        if (clientIdList != other.clientIdList) return false
        if (createDate != other.createDate) return false
        if (tags != other.tags) return false
        if (thumbprintList != other.thumbprintList) return false
        if (url != other.url) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
         */
        public var clientIdList: List? = null
        /**
         * The date and time when the IAM OIDC provider resource object was created in the Amazon Web Services account.
         */
        public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A list of tags that are attached to the specified IAM OIDC provider. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.
         */
        public var tags: List? = null
        /**
         * A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
         */
        public var thumbprintList: List? = null
        /**
         * The URL that the IAM OIDC provider resource object is associated with. For more information, see CreateOpenIDConnectProvider.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iam.model.GetOpenIdConnectProviderResponse) : this() {
            this.clientIdList = x.clientIdList
            this.createDate = x.createDate
            this.tags = x.tags
            this.thumbprintList = x.thumbprintList
            this.url = x.url
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy