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

commonMain.aws.sdk.kotlin.services.securityhub.model.Result.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

/**
 * 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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy