commonMain.aws.sdk.kotlin.services.configservice.model.AggregateComplianceByConformancePack.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 Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* Provides aggregate compliance of the conformance pack. Indicates whether a conformance pack is compliant based on the name of the conformance pack, account ID, and region.
*
* A conformance pack is compliant if all of the rules in a conformance packs are compliant. It is noncompliant if any of the rules are not compliant. The compliance status of a conformance pack is INSUFFICIENT_DATA only if all rules within a conformance pack cannot be evaluated due to insufficient data. If some of the rules in a conformance pack are compliant but the compliance status of other rules in that same conformance pack is INSUFFICIENT_DATA, the conformance pack shows compliant.
*/
public class AggregateComplianceByConformancePack private constructor(builder: Builder) {
/**
* The 12-digit Amazon Web Services account ID of the source account.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The source Amazon Web Services Region from where the data is aggregated.
*/
public val awsRegion: kotlin.String? = builder.awsRegion
/**
* The compliance status of the conformance pack.
*/
public val compliance: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackCompliance? = builder.compliance
/**
* The name of the conformance pack.
*/
public val conformancePackName: kotlin.String? = builder.conformancePackName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.AggregateComplianceByConformancePack = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AggregateComplianceByConformancePack(")
append("accountId=$accountId,")
append("awsRegion=$awsRegion,")
append("compliance=$compliance,")
append("conformancePackName=$conformancePackName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (awsRegion?.hashCode() ?: 0)
result = 31 * result + (compliance?.hashCode() ?: 0)
result = 31 * result + (conformancePackName?.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 AggregateComplianceByConformancePack
if (accountId != other.accountId) return false
if (awsRegion != other.awsRegion) return false
if (compliance != other.compliance) return false
if (conformancePackName != other.conformancePackName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.AggregateComplianceByConformancePack = Builder(this).apply(block).build()
public class Builder {
/**
* The 12-digit Amazon Web Services account ID of the source account.
*/
public var accountId: kotlin.String? = null
/**
* The source Amazon Web Services Region from where the data is aggregated.
*/
public var awsRegion: kotlin.String? = null
/**
* The compliance status of the conformance pack.
*/
public var compliance: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackCompliance? = null
/**
* The name of the conformance pack.
*/
public var conformancePackName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.AggregateComplianceByConformancePack) : this() {
this.accountId = x.accountId
this.awsRegion = x.awsRegion
this.compliance = x.compliance
this.conformancePackName = x.conformancePackName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.AggregateComplianceByConformancePack = AggregateComplianceByConformancePack(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.AggregateConformancePackCompliance] inside the given [block]
*/
public fun compliance(block: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackCompliance.Builder.() -> kotlin.Unit) {
this.compliance = aws.sdk.kotlin.services.configservice.model.AggregateConformancePackCompliance.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy