commonMain.aws.sdk.kotlin.services.configservice.model.ResourceEvaluation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS SDK for Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Returns details of a resource evaluation.
*/
public class ResourceEvaluation private constructor(builder: Builder) {
/**
* The mode of an evaluation. The valid values are Detective or Proactive.
*/
public val evaluationMode: aws.sdk.kotlin.services.configservice.model.EvaluationMode? = builder.evaluationMode
/**
* The starting time of an execution.
*/
public val evaluationStartTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.evaluationStartTimestamp
/**
* The ResourceEvaluationId of a evaluation.
*/
public val resourceEvaluationId: kotlin.String? = builder.resourceEvaluationId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.ResourceEvaluation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceEvaluation(")
append("evaluationMode=$evaluationMode,")
append("evaluationStartTimestamp=$evaluationStartTimestamp,")
append("resourceEvaluationId=$resourceEvaluationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = evaluationMode?.hashCode() ?: 0
result = 31 * result + (evaluationStartTimestamp?.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 ResourceEvaluation
if (evaluationMode != other.evaluationMode) return false
if (evaluationStartTimestamp != other.evaluationStartTimestamp) return false
if (resourceEvaluationId != other.resourceEvaluationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.ResourceEvaluation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The mode of an evaluation. The valid values are Detective or Proactive.
*/
public var evaluationMode: aws.sdk.kotlin.services.configservice.model.EvaluationMode? = null
/**
* The starting time of an execution.
*/
public var evaluationStartTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ResourceEvaluationId of a evaluation.
*/
public var resourceEvaluationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.ResourceEvaluation) : this() {
this.evaluationMode = x.evaluationMode
this.evaluationStartTimestamp = x.evaluationStartTimestamp
this.resourceEvaluationId = x.resourceEvaluationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.ResourceEvaluation = ResourceEvaluation(this)
internal fun correctErrors(): Builder {
return this
}
}
}