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

commonMain.aws.sdk.kotlin.services.dynamodb.model.DescribeContributorInsightsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.dynamodb.model

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

public class DescribeContributorInsightsResponse private constructor(builder: Builder) {
    /**
     * List of names of the associated contributor insights rules.
     */
    public val contributorInsightsRuleList: List? = builder.contributorInsightsRuleList
    /**
     * Current status of contributor insights.
     */
    public val contributorInsightsStatus: aws.sdk.kotlin.services.dynamodb.model.ContributorInsightsStatus? = builder.contributorInsightsStatus
    /**
     * Returns information about the last failure that was encountered.
     *
     * The most common exceptions for a FAILED status are:
     * + LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.
     * + AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.
     * + AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.
     * + InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.
     */
    public val failureException: aws.sdk.kotlin.services.dynamodb.model.FailureException? = builder.failureException
    /**
     * The name of the global secondary index being described.
     */
    public val indexName: kotlin.String? = builder.indexName
    /**
     * Timestamp of the last time the status was changed.
     */
    public val lastUpdateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateDateTime
    /**
     * The name of the table being described.
     */
    public val tableName: kotlin.String? = builder.tableName

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeContributorInsightsResponse(")
        append("contributorInsightsRuleList=$contributorInsightsRuleList,")
        append("contributorInsightsStatus=$contributorInsightsStatus,")
        append("failureException=$failureException,")
        append("indexName=$indexName,")
        append("lastUpdateDateTime=$lastUpdateDateTime,")
        append("tableName=$tableName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contributorInsightsRuleList?.hashCode() ?: 0
        result = 31 * result + (contributorInsightsStatus?.hashCode() ?: 0)
        result = 31 * result + (failureException?.hashCode() ?: 0)
        result = 31 * result + (indexName?.hashCode() ?: 0)
        result = 31 * result + (lastUpdateDateTime?.hashCode() ?: 0)
        result = 31 * result + (tableName?.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 DescribeContributorInsightsResponse

        if (contributorInsightsRuleList != other.contributorInsightsRuleList) return false
        if (contributorInsightsStatus != other.contributorInsightsStatus) return false
        if (failureException != other.failureException) return false
        if (indexName != other.indexName) return false
        if (lastUpdateDateTime != other.lastUpdateDateTime) return false
        if (tableName != other.tableName) return false

        return true
    }

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

    public class Builder {
        /**
         * List of names of the associated contributor insights rules.
         */
        public var contributorInsightsRuleList: List? = null
        /**
         * Current status of contributor insights.
         */
        public var contributorInsightsStatus: aws.sdk.kotlin.services.dynamodb.model.ContributorInsightsStatus? = null
        /**
         * Returns information about the last failure that was encountered.
         *
         * The most common exceptions for a FAILED status are:
         * + LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.
         * + AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.
         * + AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.
         * + InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.
         */
        public var failureException: aws.sdk.kotlin.services.dynamodb.model.FailureException? = null
        /**
         * The name of the global secondary index being described.
         */
        public var indexName: kotlin.String? = null
        /**
         * Timestamp of the last time the status was changed.
         */
        public var lastUpdateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the table being described.
         */
        public var tableName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.DescribeContributorInsightsResponse) : this() {
            this.contributorInsightsRuleList = x.contributorInsightsRuleList
            this.contributorInsightsStatus = x.contributorInsightsStatus
            this.failureException = x.failureException
            this.indexName = x.indexName
            this.lastUpdateDateTime = x.lastUpdateDateTime
            this.tableName = x.tableName
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.dynamodb.model.FailureException] inside the given [block]
         */
        public fun failureException(block: aws.sdk.kotlin.services.dynamodb.model.FailureException.Builder.() -> kotlin.Unit) {
            this.failureException = aws.sdk.kotlin.services.dynamodb.model.FailureException.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy