commonMain.aws.sdk.kotlin.services.securityhub.model.AwsSecurityFindingIdentifier.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
/**
* Identifies which finding to get the finding history for.
*/
public class AwsSecurityFindingIdentifier private constructor(builder: Builder) {
/**
* The identifier of the finding that was specified by the finding provider.
*/
public val id: kotlin.String? = builder.id
/**
* The ARN generated by Security Hub that uniquely identifies a product that generates findings. This can be the ARN for a third-party product that is integrated with Security Hub, or the ARN for a custom integration.
*/
public val productArn: kotlin.String? = builder.productArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.securityhub.model.AwsSecurityFindingIdentifier = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsSecurityFindingIdentifier(")
append("id=$id,")
append("productArn=$productArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id?.hashCode() ?: 0
result = 31 * result + (productArn?.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 AwsSecurityFindingIdentifier
if (id != other.id) return false
if (productArn != other.productArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.securityhub.model.AwsSecurityFindingIdentifier = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the finding that was specified by the finding provider.
*/
public var id: kotlin.String? = null
/**
* The ARN generated by Security Hub that uniquely identifies a product that generates findings. This can be the ARN for a third-party product that is integrated with Security Hub, or the ARN for a custom integration.
*/
public var productArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.securityhub.model.AwsSecurityFindingIdentifier) : this() {
this.id = x.id
this.productArn = x.productArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.securityhub.model.AwsSecurityFindingIdentifier = AwsSecurityFindingIdentifier(this)
internal fun correctErrors(): Builder {
return this
}
}
}