commonMain.aws.sdk.kotlin.services.configservice.model.ComplianceContributorCount.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The number of Amazon Web Services resources or Config rules responsible for the current compliance of the item, up to a maximum number.
*/
public class ComplianceContributorCount private constructor(builder: Builder) {
/**
* Indicates whether the maximum count is reached.
*/
public val capExceeded: kotlin.Boolean = builder.capExceeded
/**
* The number of Amazon Web Services resources or Config rules responsible for the current compliance of the item.
*/
public val cappedCount: kotlin.Int = builder.cappedCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.ComplianceContributorCount = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComplianceContributorCount(")
append("capExceeded=$capExceeded,")
append("cappedCount=$cappedCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = capExceeded.hashCode()
result = 31 * result + (cappedCount)
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 ComplianceContributorCount
if (capExceeded != other.capExceeded) return false
if (cappedCount != other.cappedCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.ComplianceContributorCount = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether the maximum count is reached.
*/
public var capExceeded: kotlin.Boolean = false
/**
* The number of Amazon Web Services resources or Config rules responsible for the current compliance of the item.
*/
public var cappedCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.ComplianceContributorCount) : this() {
this.capExceeded = x.capExceeded
this.cappedCount = x.cappedCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.ComplianceContributorCount = ComplianceContributorCount(this)
internal fun correctErrors(): Builder {
return this
}
}
}