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

commonMain.aws.sdk.kotlin.services.secretsmanager.model.ValidationErrorsEntry.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.secretsmanager.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Displays errors that occurred during validation of the resource policy.
 */
public class ValidationErrorsEntry private constructor(builder: Builder) {
    /**
     * Checks the name of the policy.
     */
    public val checkName: kotlin.String? = builder.checkName
    /**
     * Displays error messages if validation encounters problems during validation of the resource policy.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage

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

    override fun toString(): kotlin.String = buildString {
        append("ValidationErrorsEntry(")
        append("checkName=$checkName,")
        append("errorMessage=$errorMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = checkName?.hashCode() ?: 0
        result = 31 * result + (errorMessage?.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 ValidationErrorsEntry

        if (checkName != other.checkName) return false
        if (errorMessage != other.errorMessage) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Checks the name of the policy.
         */
        public var checkName: kotlin.String? = null
        /**
         * Displays error messages if validation encounters problems during validation of the resource policy.
         */
        public var errorMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.secretsmanager.model.ValidationErrorsEntry) : this() {
            this.checkName = x.checkName
            this.errorMessage = x.errorMessage
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy