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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeConformancePackComplianceResponse private constructor(builder: Builder) {
    /**
     * Name of the conformance pack.
     */
    public val conformancePackName: kotlin.String = requireNotNull(builder.conformancePackName) { "A non-null value must be provided for conformancePackName" }
    /**
     * Returns a list of `ConformancePackRuleCompliance` objects.
     */
    public val conformancePackRuleComplianceList: List = requireNotNull(builder.conformancePackRuleComplianceList) { "A non-null value must be provided for conformancePackRuleComplianceList" }
    /**
     * The `nextToken` string returned in a previous request that you use to request the next page of results in a paginated response.
     */
    public val nextToken: kotlin.String? = builder.nextToken

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeConformancePackComplianceResponse(")
        append("conformancePackName=$conformancePackName,")
        append("conformancePackRuleComplianceList=$conformancePackRuleComplianceList,")
        append("nextToken=$nextToken")
        append(")")
    }

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

        if (conformancePackName != other.conformancePackName) return false
        if (conformancePackRuleComplianceList != other.conformancePackRuleComplianceList) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Name of the conformance pack.
         */
        public var conformancePackName: kotlin.String? = null
        /**
         * Returns a list of `ConformancePackRuleCompliance` objects.
         */
        public var conformancePackRuleComplianceList: List? = null
        /**
         * The `nextToken` string returned in a previous request that you use to request the next page of results in a paginated response.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.DescribeConformancePackComplianceResponse) : this() {
            this.conformancePackName = x.conformancePackName
            this.conformancePackRuleComplianceList = x.conformancePackRuleComplianceList
            this.nextToken = x.nextToken
        }

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

        internal fun correctErrors(): Builder {
            if (conformancePackName == null) conformancePackName = ""
            if (conformancePackRuleComplianceList == null) conformancePackRuleComplianceList = emptyList()
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy