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

commonMain.aws.sdk.kotlin.services.configservice.model.AggregatedSourceStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.configservice.model

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

/**
 * The current sync status between the source and the aggregator account.
 */
public class AggregatedSourceStatus private constructor(builder: Builder) {
    /**
     * The region authorized to collect aggregated data.
     */
    public val awsRegion: kotlin.String? = builder.awsRegion
    /**
     * The error code that Config returned when the source account aggregation last failed.
     */
    public val lastErrorCode: kotlin.String? = builder.lastErrorCode
    /**
     * The message indicating that the source account aggregation failed due to an error.
     */
    public val lastErrorMessage: kotlin.String? = builder.lastErrorMessage
    /**
     * Filters the last updated status type.
     * + Valid value FAILED indicates errors while moving data.
     * + Valid value SUCCEEDED indicates the data was successfully moved.
     * + Valid value OUTDATED indicates the data is not the most recent.
     */
    public val lastUpdateStatus: aws.sdk.kotlin.services.configservice.model.AggregatedSourceStatusType? = builder.lastUpdateStatus
    /**
     * The time of the last update.
     */
    public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime
    /**
     * The source account ID or an organization.
     */
    public val sourceId: kotlin.String? = builder.sourceId
    /**
     * The source account or an organization.
     */
    public val sourceType: aws.sdk.kotlin.services.configservice.model.AggregatedSourceType? = builder.sourceType

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

    override fun toString(): kotlin.String = buildString {
        append("AggregatedSourceStatus(")
        append("awsRegion=$awsRegion,")
        append("lastErrorCode=$lastErrorCode,")
        append("lastErrorMessage=$lastErrorMessage,")
        append("lastUpdateStatus=$lastUpdateStatus,")
        append("lastUpdateTime=$lastUpdateTime,")
        append("sourceId=$sourceId,")
        append("sourceType=$sourceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsRegion?.hashCode() ?: 0
        result = 31 * result + (lastErrorCode?.hashCode() ?: 0)
        result = 31 * result + (lastErrorMessage?.hashCode() ?: 0)
        result = 31 * result + (lastUpdateStatus?.hashCode() ?: 0)
        result = 31 * result + (lastUpdateTime?.hashCode() ?: 0)
        result = 31 * result + (sourceId?.hashCode() ?: 0)
        result = 31 * result + (sourceType?.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 AggregatedSourceStatus

        if (awsRegion != other.awsRegion) return false
        if (lastErrorCode != other.lastErrorCode) return false
        if (lastErrorMessage != other.lastErrorMessage) return false
        if (lastUpdateStatus != other.lastUpdateStatus) return false
        if (lastUpdateTime != other.lastUpdateTime) return false
        if (sourceId != other.sourceId) return false
        if (sourceType != other.sourceType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The region authorized to collect aggregated data.
         */
        public var awsRegion: kotlin.String? = null
        /**
         * The error code that Config returned when the source account aggregation last failed.
         */
        public var lastErrorCode: kotlin.String? = null
        /**
         * The message indicating that the source account aggregation failed due to an error.
         */
        public var lastErrorMessage: kotlin.String? = null
        /**
         * Filters the last updated status type.
         * + Valid value FAILED indicates errors while moving data.
         * + Valid value SUCCEEDED indicates the data was successfully moved.
         * + Valid value OUTDATED indicates the data is not the most recent.
         */
        public var lastUpdateStatus: aws.sdk.kotlin.services.configservice.model.AggregatedSourceStatusType? = null
        /**
         * The time of the last update.
         */
        public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The source account ID or an organization.
         */
        public var sourceId: kotlin.String? = null
        /**
         * The source account or an organization.
         */
        public var sourceType: aws.sdk.kotlin.services.configservice.model.AggregatedSourceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.AggregatedSourceStatus) : this() {
            this.awsRegion = x.awsRegion
            this.lastErrorCode = x.lastErrorCode
            this.lastErrorMessage = x.lastErrorMessage
            this.lastUpdateStatus = x.lastUpdateStatus
            this.lastUpdateTime = x.lastUpdateTime
            this.sourceId = x.sourceId
            this.sourceType = x.sourceType
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy