All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.configservice.model.ConformancePackRuleCompliance.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.configservice.model



/**
 * Compliance information of one or more Config rules within a conformance pack. You can filter using Config rule names and compliance types.
 */
public class ConformancePackRuleCompliance private constructor(builder: Builder) {
    /**
     * Compliance of the Config rule.
     */
    public val complianceType: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceType? = builder.complianceType
    /**
     * Name of the Config rule.
     */
    public val configRuleName: kotlin.String? = builder.configRuleName
    /**
     * Controls for the conformance pack. A control is a process to prevent or detect problems while meeting objectives. A control can align with a specific compliance regime or map to internal controls defined by an organization.
     */
    public val controls: List? = builder.controls

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.ConformancePackRuleCompliance = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ConformancePackRuleCompliance(")
        append("complianceType=$complianceType,")
        append("configRuleName=$configRuleName,")
        append("controls=$controls")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = complianceType?.hashCode() ?: 0
        result = 31 * result + (configRuleName?.hashCode() ?: 0)
        result = 31 * result + (controls?.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 ConformancePackRuleCompliance

        if (complianceType != other.complianceType) return false
        if (configRuleName != other.configRuleName) return false
        if (controls != other.controls) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.ConformancePackRuleCompliance = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Compliance of the Config rule.
         */
        public var complianceType: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceType? = null
        /**
         * Name of the Config rule.
         */
        public var configRuleName: kotlin.String? = null
        /**
         * Controls for the conformance pack. A control is a process to prevent or detect problems while meeting objectives. A control can align with a specific compliance regime or map to internal controls defined by an organization.
         */
        public var controls: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.ConformancePackRuleCompliance) : this() {
            this.complianceType = x.complianceType
            this.configRuleName = x.configRuleName
            this.controls = x.controls
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.configservice.model.ConformancePackRuleCompliance = ConformancePackRuleCompliance(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy