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

commonMain.aws.sdk.kotlin.services.iam.model.GetSamlProviderResponse.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 GetSAMLProvider request.
 */
public class GetSamlProviderResponse private constructor(builder: Builder) {
    /**
     * The date and time when the SAML provider was created.
     */
    public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
    /**
     * The XML metadata document that includes information about an identity provider.
     */
    public val samlMetadataDocument: kotlin.String? = builder.samlMetadataDocument
    /**
     * A list of tags that are attached to the specified IAM SAML 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
    /**
     * The expiration date and time for the SAML provider.
     */
    public val validUntil: aws.smithy.kotlin.runtime.time.Instant? = builder.validUntil

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

    override fun toString(): kotlin.String = buildString {
        append("GetSamlProviderResponse(")
        append("createDate=$createDate,")
        append("samlMetadataDocument=$samlMetadataDocument,")
        append("tags=$tags,")
        append("validUntil=$validUntil")
        append(")")
    }

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

        if (createDate != other.createDate) return false
        if (samlMetadataDocument != other.samlMetadataDocument) return false
        if (tags != other.tags) return false
        if (validUntil != other.validUntil) return false

        return true
    }

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

    public class Builder {
        /**
         * The date and time when the SAML provider was created.
         */
        public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The XML metadata document that includes information about an identity provider.
         */
        public var samlMetadataDocument: kotlin.String? = null
        /**
         * A list of tags that are attached to the specified IAM SAML 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
        /**
         * The expiration date and time for the SAML provider.
         */
        public var validUntil: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iam.model.GetSamlProviderResponse) : this() {
            this.createDate = x.createDate
            this.samlMetadataDocument = x.samlMetadataDocument
            this.tags = x.tags
            this.validUntil = x.validUntil
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy