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

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

The 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 details about the configuration aggregator, including information about source accounts, regions, and metadata of the aggregator.
 */
public class ConfigurationAggregator private constructor(builder: Builder) {
    /**
     * Provides a list of source accounts and regions to be aggregated.
     */
    public val accountAggregationSources: List? = builder.accountAggregationSources
    /**
     * The Amazon Resource Name (ARN) of the aggregator.
     */
    public val configurationAggregatorArn: kotlin.String? = builder.configurationAggregatorArn
    /**
     * The name of the aggregator.
     */
    public val configurationAggregatorName: kotlin.String? = builder.configurationAggregatorName
    /**
     * Amazon Web Services service that created the configuration aggregator.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The time stamp when the configuration aggregator was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The time of the last update.
     */
    public val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * Provides an organization and list of regions to be aggregated.
     */
    public val organizationAggregationSource: aws.sdk.kotlin.services.configservice.model.OrganizationAggregationSource? = builder.organizationAggregationSource

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

    override fun toString(): kotlin.String = buildString {
        append("ConfigurationAggregator(")
        append("accountAggregationSources=$accountAggregationSources,")
        append("configurationAggregatorArn=$configurationAggregatorArn,")
        append("configurationAggregatorName=$configurationAggregatorName,")
        append("createdBy=$createdBy,")
        append("creationTime=$creationTime,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("organizationAggregationSource=$organizationAggregationSource")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountAggregationSources?.hashCode() ?: 0
        result = 31 * result + (configurationAggregatorArn?.hashCode() ?: 0)
        result = 31 * result + (configurationAggregatorName?.hashCode() ?: 0)
        result = 31 * result + (createdBy?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (organizationAggregationSource?.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 ConfigurationAggregator

        if (accountAggregationSources != other.accountAggregationSources) return false
        if (configurationAggregatorArn != other.configurationAggregatorArn) return false
        if (configurationAggregatorName != other.configurationAggregatorName) return false
        if (createdBy != other.createdBy) return false
        if (creationTime != other.creationTime) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (organizationAggregationSource != other.organizationAggregationSource) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Provides a list of source accounts and regions to be aggregated.
         */
        public var accountAggregationSources: List? = null
        /**
         * The Amazon Resource Name (ARN) of the aggregator.
         */
        public var configurationAggregatorArn: kotlin.String? = null
        /**
         * The name of the aggregator.
         */
        public var configurationAggregatorName: kotlin.String? = null
        /**
         * Amazon Web Services service that created the configuration aggregator.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The time stamp when the configuration aggregator was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The time of the last update.
         */
        public var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Provides an organization and list of regions to be aggregated.
         */
        public var organizationAggregationSource: aws.sdk.kotlin.services.configservice.model.OrganizationAggregationSource? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.ConfigurationAggregator) : this() {
            this.accountAggregationSources = x.accountAggregationSources
            this.configurationAggregatorArn = x.configurationAggregatorArn
            this.configurationAggregatorName = x.configurationAggregatorName
            this.createdBy = x.createdBy
            this.creationTime = x.creationTime
            this.lastUpdatedTime = x.lastUpdatedTime
            this.organizationAggregationSource = x.organizationAggregationSource
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy