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

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

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

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



/**
 * Contains the response to a successful GenerateCredentialReport request.
 */
public class GenerateCredentialReportResponse private constructor(builder: Builder) {
    /**
     * Information about the credential report.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Information about the state of the credential report.
     */
    public val state: aws.sdk.kotlin.services.iam.model.ReportStateType? = builder.state

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

    override fun toString(): kotlin.String = buildString {
        append("GenerateCredentialReportResponse(")
        append("description=$description,")
        append("state=$state")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (state?.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 GenerateCredentialReportResponse

        if (description != other.description) return false
        if (state != other.state) return false

        return true
    }

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

    public class Builder {
        /**
         * Information about the credential report.
         */
        public var description: kotlin.String? = null
        /**
         * Information about the state of the credential report.
         */
        public var state: aws.sdk.kotlin.services.iam.model.ReportStateType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iam.model.GenerateCredentialReportResponse) : this() {
            this.description = x.description
            this.state = x.state
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy