commonMain.aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of computeoptimizer-jvm Show documentation
Show all versions of computeoptimizer-jvm Show documentation
The AWS SDK for Kotlin client for Compute Optimizer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.computeoptimizer.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes Compute Optimizer's integration status with your chosen external metric provider. For example, Datadog.
*/
public class ExternalMetricStatus private constructor(builder: Builder) {
/**
* The status code for Compute Optimizer's integration with an external metrics provider.
*/
public val statusCode: aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatusCode? = builder.statusCode
/**
* The reason for Compute Optimizer's integration status with your external metric provider.
*/
public val statusReason: kotlin.String? = builder.statusReason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExternalMetricStatus(")
append("statusCode=$statusCode,")
append("statusReason=$statusReason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = statusCode?.hashCode() ?: 0
result = 31 * result + (statusReason?.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 ExternalMetricStatus
if (statusCode != other.statusCode) return false
if (statusReason != other.statusReason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status code for Compute Optimizer's integration with an external metrics provider.
*/
public var statusCode: aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatusCode? = null
/**
* The reason for Compute Optimizer's integration status with your external metric provider.
*/
public var statusReason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatus) : this() {
this.statusCode = x.statusCode
this.statusReason = x.statusReason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatus = ExternalMetricStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}