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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

public class GetResourceEvaluationSummaryResponse private constructor(builder: Builder) {
    /**
     * The compliance status of the resource evaluation summary.
     */
    public val compliance: aws.sdk.kotlin.services.configservice.model.ComplianceType? = builder.compliance
    /**
     * Returns an `EvaluationContext` object.
     */
    public val evaluationContext: aws.sdk.kotlin.services.configservice.model.EvaluationContext? = builder.evaluationContext
    /**
     * Lists results of the mode that you requested to retrieve the resource evaluation summary. The valid values are Detective or Proactive.
     */
    public val evaluationMode: aws.sdk.kotlin.services.configservice.model.EvaluationMode? = builder.evaluationMode
    /**
     * The start timestamp when Config rule starts evaluating compliance for the provided resource details.
     */
    public val evaluationStartTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.evaluationStartTimestamp
    /**
     * Returns an `EvaluationStatus` object.
     */
    public val evaluationStatus: aws.sdk.kotlin.services.configservice.model.EvaluationStatus? = builder.evaluationStatus
    /**
     * Returns a `ResourceDetails` object.
     */
    public val resourceDetails: aws.sdk.kotlin.services.configservice.model.ResourceDetails? = builder.resourceDetails
    /**
     * The unique `ResourceEvaluationId` of Amazon Web Services resource execution for which you want to retrieve the evaluation summary.
     */
    public val resourceEvaluationId: kotlin.String? = builder.resourceEvaluationId

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

    override fun toString(): kotlin.String = buildString {
        append("GetResourceEvaluationSummaryResponse(")
        append("compliance=$compliance,")
        append("evaluationContext=$evaluationContext,")
        append("evaluationMode=$evaluationMode,")
        append("evaluationStartTimestamp=$evaluationStartTimestamp,")
        append("evaluationStatus=$evaluationStatus,")
        append("resourceDetails=$resourceDetails,")
        append("resourceEvaluationId=$resourceEvaluationId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = compliance?.hashCode() ?: 0
        result = 31 * result + (evaluationContext?.hashCode() ?: 0)
        result = 31 * result + (evaluationMode?.hashCode() ?: 0)
        result = 31 * result + (evaluationStartTimestamp?.hashCode() ?: 0)
        result = 31 * result + (evaluationStatus?.hashCode() ?: 0)
        result = 31 * result + (resourceDetails?.hashCode() ?: 0)
        result = 31 * result + (resourceEvaluationId?.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 GetResourceEvaluationSummaryResponse

        if (compliance != other.compliance) return false
        if (evaluationContext != other.evaluationContext) return false
        if (evaluationMode != other.evaluationMode) return false
        if (evaluationStartTimestamp != other.evaluationStartTimestamp) return false
        if (evaluationStatus != other.evaluationStatus) return false
        if (resourceDetails != other.resourceDetails) return false
        if (resourceEvaluationId != other.resourceEvaluationId) return false

        return true
    }

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

    public class Builder {
        /**
         * The compliance status of the resource evaluation summary.
         */
        public var compliance: aws.sdk.kotlin.services.configservice.model.ComplianceType? = null
        /**
         * Returns an `EvaluationContext` object.
         */
        public var evaluationContext: aws.sdk.kotlin.services.configservice.model.EvaluationContext? = null
        /**
         * Lists results of the mode that you requested to retrieve the resource evaluation summary. The valid values are Detective or Proactive.
         */
        public var evaluationMode: aws.sdk.kotlin.services.configservice.model.EvaluationMode? = null
        /**
         * The start timestamp when Config rule starts evaluating compliance for the provided resource details.
         */
        public var evaluationStartTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Returns an `EvaluationStatus` object.
         */
        public var evaluationStatus: aws.sdk.kotlin.services.configservice.model.EvaluationStatus? = null
        /**
         * Returns a `ResourceDetails` object.
         */
        public var resourceDetails: aws.sdk.kotlin.services.configservice.model.ResourceDetails? = null
        /**
         * The unique `ResourceEvaluationId` of Amazon Web Services resource execution for which you want to retrieve the evaluation summary.
         */
        public var resourceEvaluationId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.GetResourceEvaluationSummaryResponse) : this() {
            this.compliance = x.compliance
            this.evaluationContext = x.evaluationContext
            this.evaluationMode = x.evaluationMode
            this.evaluationStartTimestamp = x.evaluationStartTimestamp
            this.evaluationStatus = x.evaluationStatus
            this.resourceDetails = x.resourceDetails
            this.resourceEvaluationId = x.resourceEvaluationId
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.configservice.model.EvaluationContext] inside the given [block]
         */
        public fun evaluationContext(block: aws.sdk.kotlin.services.configservice.model.EvaluationContext.Builder.() -> kotlin.Unit) {
            this.evaluationContext = aws.sdk.kotlin.services.configservice.model.EvaluationContext.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.configservice.model.EvaluationStatus] inside the given [block]
         */
        public fun evaluationStatus(block: aws.sdk.kotlin.services.configservice.model.EvaluationStatus.Builder.() -> kotlin.Unit) {
            this.evaluationStatus = aws.sdk.kotlin.services.configservice.model.EvaluationStatus.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.configservice.model.ResourceDetails] inside the given [block]
         */
        public fun resourceDetails(block: aws.sdk.kotlin.services.configservice.model.ResourceDetails.Builder.() -> kotlin.Unit) {
            this.resourceDetails = aws.sdk.kotlin.services.configservice.model.ResourceDetails.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy