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

commonMain.aws.sdk.kotlin.services.kendra.model.GroupOrderingIdSummary.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.kendra.model

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

/**
 * Summary information on the processing of `PUT` and `DELETE` actions for mapping users to their groups.
 */
public class GroupOrderingIdSummary private constructor(builder: Builder) {
    /**
     * The reason an action could not be processed. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
     */
    public val failureReason: kotlin.String? = builder.failureReason
    /**
     * The Unix timestamp when an action was last updated. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
     */
    public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
    /**
     * The order in which actions should complete processing. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
     */
    public val orderingId: kotlin.Long? = builder.orderingId
    /**
     * The Unix timestamp when an action was received by Amazon Kendra. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
     */
    public val receivedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.receivedAt
    /**
     * The current processing status of actions for mapping users to their groups. The status can be either `PROCESSING`, `SUCCEEDED`, `DELETING`, `DELETED`, or `FAILED`.
     */
    public val status: aws.sdk.kotlin.services.kendra.model.PrincipalMappingStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("GroupOrderingIdSummary(")
        append("failureReason=$failureReason,")
        append("lastUpdatedAt=$lastUpdatedAt,")
        append("orderingId=$orderingId,")
        append("receivedAt=$receivedAt,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = failureReason?.hashCode() ?: 0
        result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
        result = 31 * result + (orderingId?.hashCode() ?: 0)
        result = 31 * result + (receivedAt?.hashCode() ?: 0)
        result = 31 * result + (status?.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 GroupOrderingIdSummary

        if (failureReason != other.failureReason) return false
        if (lastUpdatedAt != other.lastUpdatedAt) return false
        if (orderingId != other.orderingId) return false
        if (receivedAt != other.receivedAt) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The reason an action could not be processed. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
         */
        public var failureReason: kotlin.String? = null
        /**
         * The Unix timestamp when an action was last updated. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
         */
        public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The order in which actions should complete processing. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
         */
        public var orderingId: kotlin.Long? = null
        /**
         * The Unix timestamp when an action was received by Amazon Kendra. An action can be a `PUT` or `DELETE` action for mapping users to their groups.
         */
        public var receivedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The current processing status of actions for mapping users to their groups. The status can be either `PROCESSING`, `SUCCEEDED`, `DELETING`, `DELETED`, or `FAILED`.
         */
        public var status: aws.sdk.kotlin.services.kendra.model.PrincipalMappingStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kendra.model.GroupOrderingIdSummary) : this() {
            this.failureReason = x.failureReason
            this.lastUpdatedAt = x.lastUpdatedAt
            this.orderingId = x.orderingId
            this.receivedAt = x.receivedAt
            this.status = x.status
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy