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

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

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

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



public class PutConfigurationAggregatorRequest private constructor(builder: Builder) {
    /**
     * A list of AccountAggregationSource object.
     */
    public val accountAggregationSources: List? = builder.accountAggregationSources
    /**
     * The name of the configuration aggregator.
     */
    public val configurationAggregatorName: kotlin.String? = builder.configurationAggregatorName
    /**
     * An OrganizationAggregationSource object.
     */
    public val organizationAggregationSource: aws.sdk.kotlin.services.configservice.model.OrganizationAggregationSource? = builder.organizationAggregationSource
    /**
     * An array of tag object.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("PutConfigurationAggregatorRequest(")
        append("accountAggregationSources=$accountAggregationSources,")
        append("configurationAggregatorName=$configurationAggregatorName,")
        append("organizationAggregationSource=$organizationAggregationSource,")
        append("tags=$tags")
        append(")")
    }

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

        if (accountAggregationSources != other.accountAggregationSources) return false
        if (configurationAggregatorName != other.configurationAggregatorName) return false
        if (organizationAggregationSource != other.organizationAggregationSource) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of AccountAggregationSource object.
         */
        public var accountAggregationSources: List? = null
        /**
         * The name of the configuration aggregator.
         */
        public var configurationAggregatorName: kotlin.String? = null
        /**
         * An OrganizationAggregationSource object.
         */
        public var organizationAggregationSource: aws.sdk.kotlin.services.configservice.model.OrganizationAggregationSource? = null
        /**
         * An array of tag object.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.PutConfigurationAggregatorRequest) : this() {
            this.accountAggregationSources = x.accountAggregationSources
            this.configurationAggregatorName = x.configurationAggregatorName
            this.organizationAggregationSource = x.organizationAggregationSource
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.configservice.model.PutConfigurationAggregatorRequest = PutConfigurationAggregatorRequest(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 - 2025 Weber Informatics LLC | Privacy Policy