commonMain.aws.sdk.kotlin.services.securityhub.model.Result.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
/**
* Details about the account that was not processed.
*/
public class Result private constructor(builder: Builder) {
/**
* An Amazon Web Services account ID of the account that was not processed.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The reason that the account was not processed.
*/
public val processingResult: kotlin.String? = builder.processingResult
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.securityhub.model.Result = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Result(")
append("accountId=$accountId,")
append("processingResult=$processingResult")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (processingResult?.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 Result
if (accountId != other.accountId) return false
if (processingResult != other.processingResult) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.securityhub.model.Result = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An Amazon Web Services account ID of the account that was not processed.
*/
public var accountId: kotlin.String? = null
/**
* The reason that the account was not processed.
*/
public var processingResult: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.securityhub.model.Result) : this() {
this.accountId = x.accountId
this.processingResult = x.processingResult
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.securityhub.model.Result = Result(this)
internal fun correctErrors(): Builder {
return this
}
}
}