commonMain.aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceSummary.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 a summary of compliance based on either account ID or region.
*/
public class AggregateConformancePackComplianceSummary private constructor(builder: Builder) {
/**
* Returns an `AggregateConformancePackComplianceCount` object.
*/
public val complianceSummary: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount? = builder.complianceSummary
/**
* Groups the result based on Amazon Web Services account ID or Amazon Web Services Region.
*/
public val groupName: kotlin.String? = builder.groupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AggregateConformancePackComplianceSummary(")
append("complianceSummary=$complianceSummary,")
append("groupName=$groupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = complianceSummary?.hashCode() ?: 0
result = 31 * result + (groupName?.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 AggregateConformancePackComplianceSummary
if (complianceSummary != other.complianceSummary) return false
if (groupName != other.groupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Returns an `AggregateConformancePackComplianceCount` object.
*/
public var complianceSummary: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount? = null
/**
* Groups the result based on Amazon Web Services account ID or Amazon Web Services Region.
*/
public var groupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceSummary) : this() {
this.complianceSummary = x.complianceSummary
this.groupName = x.groupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceSummary = AggregateConformancePackComplianceSummary(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount] inside the given [block]
*/
public fun complianceSummary(block: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount.Builder.() -> kotlin.Unit) {
this.complianceSummary = aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy