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

commonMain.aws.sdk.kotlin.services.configservice.model.DeleteAggregationAuthorizationRequest.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

public class DeleteAggregationAuthorizationRequest private constructor(builder: Builder) {
    /**
     * The 12-digit account ID of the account authorized to aggregate data.
     */
    public val authorizedAccountId: kotlin.String? = builder.authorizedAccountId
    /**
     * The region authorized to collect aggregated data.
     */
    public val authorizedAwsRegion: kotlin.String? = builder.authorizedAwsRegion

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteAggregationAuthorizationRequest(")
        append("authorizedAccountId=$authorizedAccountId,")
        append("authorizedAwsRegion=$authorizedAwsRegion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = authorizedAccountId?.hashCode() ?: 0
        result = 31 * result + (authorizedAwsRegion?.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 DeleteAggregationAuthorizationRequest

        if (authorizedAccountId != other.authorizedAccountId) return false
        if (authorizedAwsRegion != other.authorizedAwsRegion) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The 12-digit account ID of the account authorized to aggregate data.
         */
        public var authorizedAccountId: kotlin.String? = null
        /**
         * The region authorized to collect aggregated data.
         */
        public var authorizedAwsRegion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.DeleteAggregationAuthorizationRequest) : this() {
            this.authorizedAccountId = x.authorizedAccountId
            this.authorizedAwsRegion = x.authorizedAwsRegion
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy