
commonMain.aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* Summary includes the name and status of the conformance pack.
*/
class ConformancePackComplianceSummary private constructor(builder: Builder) {
/**
* The status of the conformance pack. The allowed values are `COMPLIANT`, `NON_COMPLIANT` and `INSUFFICIENT_DATA`.
*/
val conformancePackComplianceStatus: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceType? = builder.conformancePackComplianceStatus
/**
* The name of the conformance pack name.
*/
val conformancePackName: kotlin.String? = builder.conformancePackName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConformancePackComplianceSummary(")
append("conformancePackComplianceStatus=$conformancePackComplianceStatus,")
append("conformancePackName=$conformancePackName)")
}
override fun hashCode(): kotlin.Int {
var result = conformancePackComplianceStatus?.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 ConformancePackComplianceSummary
if (conformancePackComplianceStatus != other.conformancePackComplianceStatus) return false
if (conformancePackName != other.conformancePackName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceSummary = Builder(this).apply(block).build()
class Builder {
/**
* The status of the conformance pack. The allowed values are `COMPLIANT`, `NON_COMPLIANT` and `INSUFFICIENT_DATA`.
*/
var conformancePackComplianceStatus: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceType? = null
/**
* The name of the conformance pack name.
*/
var conformancePackName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceSummary) : this() {
this.conformancePackComplianceStatus = x.conformancePackComplianceStatus
this.conformancePackName = x.conformancePackName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceSummary = ConformancePackComplianceSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy