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

commonMain.aws.sdk.kotlin.services.securityhub.model.CreateFindingAggregatorResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.securityhub.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateFindingAggregatorResponse private constructor(builder: Builder) {
    /**
     * The aggregation Region.
     */
    public val findingAggregationRegion: kotlin.String? = builder.findingAggregationRegion
    /**
     * The ARN of the finding aggregator. You use the finding aggregator ARN to retrieve details for, update, and stop finding aggregation.
     */
    public val findingAggregatorArn: kotlin.String? = builder.findingAggregatorArn
    /**
     * Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.
     */
    public val regionLinkingMode: kotlin.String? = builder.regionLinkingMode
    /**
     * The list of excluded Regions or included Regions.
     */
    public val regions: List? = builder.regions

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

    override fun toString(): kotlin.String = buildString {
        append("CreateFindingAggregatorResponse(")
        append("findingAggregationRegion=$findingAggregationRegion,")
        append("findingAggregatorArn=$findingAggregatorArn,")
        append("regionLinkingMode=$regionLinkingMode,")
        append("regions=$regions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = findingAggregationRegion?.hashCode() ?: 0
        result = 31 * result + (findingAggregatorArn?.hashCode() ?: 0)
        result = 31 * result + (regionLinkingMode?.hashCode() ?: 0)
        result = 31 * result + (regions?.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 CreateFindingAggregatorResponse

        if (findingAggregationRegion != other.findingAggregationRegion) return false
        if (findingAggregatorArn != other.findingAggregatorArn) return false
        if (regionLinkingMode != other.regionLinkingMode) return false
        if (regions != other.regions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The aggregation Region.
         */
        public var findingAggregationRegion: kotlin.String? = null
        /**
         * The ARN of the finding aggregator. You use the finding aggregator ARN to retrieve details for, update, and stop finding aggregation.
         */
        public var findingAggregatorArn: kotlin.String? = null
        /**
         * Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.
         */
        public var regionLinkingMode: kotlin.String? = null
        /**
         * The list of excluded Regions or included Regions.
         */
        public var regions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.securityhub.model.CreateFindingAggregatorResponse) : this() {
            this.findingAggregationRegion = x.findingAggregationRegion
            this.findingAggregatorArn = x.findingAggregatorArn
            this.regionLinkingMode = x.regionLinkingMode
            this.regions = x.regions
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy