commonMain.aws.sdk.kotlin.services.devopsguru.model.DescribeAccountOverviewResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeAccountOverviewResponse private constructor(builder: Builder) {
/**
* The Mean Time to Recover (MTTR) for all closed insights that were created during the time range passed in.
*/
public val meanTimeToRecoverInMilliseconds: kotlin.Long = requireNotNull(builder.meanTimeToRecoverInMilliseconds) { "A non-null value must be provided for meanTimeToRecoverInMilliseconds" }
/**
* An integer that specifies the number of open proactive insights in your Amazon Web Services account that were created during the time range passed in.
*/
public val proactiveInsights: kotlin.Int = builder.proactiveInsights
/**
* An integer that specifies the number of open reactive insights in your Amazon Web Services account that were created during the time range passed in.
*/
public val reactiveInsights: kotlin.Int = builder.reactiveInsights
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.DescribeAccountOverviewResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAccountOverviewResponse(")
append("meanTimeToRecoverInMilliseconds=$meanTimeToRecoverInMilliseconds,")
append("proactiveInsights=$proactiveInsights,")
append("reactiveInsights=$reactiveInsights")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = meanTimeToRecoverInMilliseconds.hashCode()
result = 31 * result + (proactiveInsights)
result = 31 * result + (reactiveInsights)
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 DescribeAccountOverviewResponse
if (meanTimeToRecoverInMilliseconds != other.meanTimeToRecoverInMilliseconds) return false
if (proactiveInsights != other.proactiveInsights) return false
if (reactiveInsights != other.reactiveInsights) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.DescribeAccountOverviewResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Mean Time to Recover (MTTR) for all closed insights that were created during the time range passed in.
*/
public var meanTimeToRecoverInMilliseconds: kotlin.Long? = null
/**
* An integer that specifies the number of open proactive insights in your Amazon Web Services account that were created during the time range passed in.
*/
public var proactiveInsights: kotlin.Int = 0
/**
* An integer that specifies the number of open reactive insights in your Amazon Web Services account that were created during the time range passed in.
*/
public var reactiveInsights: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.DescribeAccountOverviewResponse) : this() {
this.meanTimeToRecoverInMilliseconds = x.meanTimeToRecoverInMilliseconds
this.proactiveInsights = x.proactiveInsights
this.reactiveInsights = x.reactiveInsights
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.DescribeAccountOverviewResponse = DescribeAccountOverviewResponse(this)
internal fun correctErrors(): Builder {
if (meanTimeToRecoverInMilliseconds == null) meanTimeToRecoverInMilliseconds = 0L
return this
}
}
}