commonMain.aws.sdk.kotlin.services.securityhub.model.CreateFindingAggregatorResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securityhub-jvm Show documentation
Show all versions of securityhub-jvm Show documentation
The AWS SDK for Kotlin client for SecurityHub
// 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
}
}
}