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

commonMain.aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceSummary.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



/**
 * Summary includes the name and status of the conformance pack.
 */
public class ConformancePackComplianceSummary private constructor(builder: Builder) {
    /**
     * The status of the conformance pack.
     */
    public val conformancePackComplianceStatus: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceType = requireNotNull(builder.conformancePackComplianceStatus) { "A non-null value must be provided for conformancePackComplianceStatus" }
    /**
     * The name of the conformance pack name.
     */
    public val conformancePackName: kotlin.String = requireNotNull(builder.conformancePackName) { "A non-null value must be provided for conformancePackName" }

    public companion object {
        public 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")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = conformancePackComplianceStatus.hashCode()
        result = 31 * result + (conformancePackName.hashCode())
        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
    }

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

    public class Builder {
        /**
         * The status of the conformance pack.
         */
        public var conformancePackComplianceStatus: aws.sdk.kotlin.services.configservice.model.ConformancePackComplianceType? = null
        /**
         * The name of the conformance pack name.
         */
        public var conformancePackName: kotlin.String? = null

        @PublishedApi
        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)

        internal fun correctErrors(): Builder {
            if (conformancePackComplianceStatus == null) conformancePackComplianceStatus = ConformancePackComplianceType.SdkUnknown("no value provided")
            if (conformancePackName == null) conformancePackName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy