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

commonMain.aws.sdk.kotlin.services.configservice.model.PutEvaluationsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.configservice.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 *
 */
public class PutEvaluationsRequest private constructor(builder: Builder) {
    /**
     * The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and indicates whether it complies with the Config rule that invokes the Lambda function.
     */
    public val evaluations: List? = builder.evaluations
    /**
     * An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that triggered the evaluation.
     */
    public val resultToken: kotlin.String? = builder.resultToken
    /**
     * Use this parameter to specify a test run for `PutEvaluations`. You can verify whether your Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation results are not sent to Config.
     *
     * When `TestMode` is `true`, `PutEvaluations` doesn't require a valid value for the `ResultToken` parameter, but the value cannot be null.
     */
    public val testMode: kotlin.Boolean? = builder.testMode

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

    override fun toString(): kotlin.String = buildString {
        append("PutEvaluationsRequest(")
        append("evaluations=$evaluations,")
        append("resultToken=$resultToken,")
        append("testMode=$testMode")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = evaluations?.hashCode() ?: 0
        result = 31 * result + (resultToken?.hashCode() ?: 0)
        result = 31 * result + (testMode?.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 PutEvaluationsRequest

        if (evaluations != other.evaluations) return false
        if (resultToken != other.resultToken) return false
        if (testMode != other.testMode) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and indicates whether it complies with the Config rule that invokes the Lambda function.
         */
        public var evaluations: List? = null
        /**
         * An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that triggered the evaluation.
         */
        public var resultToken: kotlin.String? = null
        /**
         * Use this parameter to specify a test run for `PutEvaluations`. You can verify whether your Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation results are not sent to Config.
         *
         * When `TestMode` is `true`, `PutEvaluations` doesn't require a valid value for the `ResultToken` parameter, but the value cannot be null.
         */
        public var testMode: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.PutEvaluationsRequest) : this() {
            this.evaluations = x.evaluations
            this.resultToken = x.resultToken
            this.testMode = x.testMode
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy