commonMain.aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationOverviewResponse.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 DescribeOrganizationOverviewResponse private constructor(builder: Builder) {
/**
* An integer that specifies the number of open proactive insights in your Amazon Web Services account.
*/
public val proactiveInsights: kotlin.Int = builder.proactiveInsights
/**
* An integer that specifies the number of open reactive insights in your Amazon Web Services account.
*/
public val reactiveInsights: kotlin.Int = builder.reactiveInsights
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationOverviewResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeOrganizationOverviewResponse(")
append("proactiveInsights=$proactiveInsights,")
append("reactiveInsights=$reactiveInsights")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 DescribeOrganizationOverviewResponse
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.DescribeOrganizationOverviewResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An integer that specifies the number of open proactive insights in your Amazon Web Services account.
*/
public var proactiveInsights: kotlin.Int = 0
/**
* An integer that specifies the number of open reactive insights in your Amazon Web Services account.
*/
public var reactiveInsights: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationOverviewResponse) : this() {
this.proactiveInsights = x.proactiveInsights
this.reactiveInsights = x.reactiveInsights
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationOverviewResponse = DescribeOrganizationOverviewResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}