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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



/**
 *
 */
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.
     */
    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.
     */
    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.
     */
    val testMode: kotlin.Boolean = builder.testMode

    companion object {
        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)")
    }

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

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

    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.
         */
        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.
         */
        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.
         */
        var testMode: kotlin.Boolean = false

        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)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy