
commonMain.aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* The number of conformance packs that are compliant and noncompliant.
*/
class AggregateConformancePackComplianceCount private constructor(builder: Builder) {
/**
* Number of compliant conformance packs.
*/
val compliantConformancePackCount: kotlin.Int = builder.compliantConformancePackCount
/**
* Number of noncompliant conformance packs.
*/
val nonCompliantConformancePackCount: kotlin.Int = builder.nonCompliantConformancePackCount
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AggregateConformancePackComplianceCount(")
append("compliantConformancePackCount=$compliantConformancePackCount,")
append("nonCompliantConformancePackCount=$nonCompliantConformancePackCount)")
}
override fun hashCode(): kotlin.Int {
var result = compliantConformancePackCount
result = 31 * result + (nonCompliantConformancePackCount)
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 AggregateConformancePackComplianceCount
if (compliantConformancePackCount != other.compliantConformancePackCount) return false
if (nonCompliantConformancePackCount != other.nonCompliantConformancePackCount) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount = Builder(this).apply(block).build()
class Builder {
/**
* Number of compliant conformance packs.
*/
var compliantConformancePackCount: kotlin.Int = 0
/**
* Number of noncompliant conformance packs.
*/
var nonCompliantConformancePackCount: kotlin.Int = 0
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount) : this() {
this.compliantConformancePackCount = x.compliantConformancePackCount
this.nonCompliantConformancePackCount = x.nonCompliantConformancePackCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount = AggregateConformancePackComplianceCount(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy