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

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



public class DescribeAggregateComplianceByConformancePacksRequest private constructor(builder: Builder) {
    /**
     * The name of the configuration aggregator.
     */
    public val configurationAggregatorName: kotlin.String? = builder.configurationAggregatorName
    /**
     * Filters the result by `AggregateConformancePackComplianceFilters` object.
     */
    public val filters: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceFilters? = builder.filters
    /**
     * The maximum number of conformance packs compliance details returned on each page. The default is maximum. If you specify 0, Config uses the default.
     */
    public val limit: kotlin.Int? = builder.limit
    /**
     * The `nextToken` string returned on a previous page that you use to get 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.DescribeAggregateComplianceByConformancePacksRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeAggregateComplianceByConformancePacksRequest(")
        append("configurationAggregatorName=$configurationAggregatorName,")
        append("filters=$filters,")
        append("limit=$limit,")
        append("nextToken=$nextToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configurationAggregatorName?.hashCode() ?: 0
        result = 31 * result + (filters?.hashCode() ?: 0)
        result = 31 * result + (limit ?: 0)
        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 DescribeAggregateComplianceByConformancePacksRequest

        if (configurationAggregatorName != other.configurationAggregatorName) return false
        if (filters != other.filters) return false
        if (limit != other.limit) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the configuration aggregator.
         */
        public var configurationAggregatorName: kotlin.String? = null
        /**
         * Filters the result by `AggregateConformancePackComplianceFilters` object.
         */
        public var filters: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceFilters? = null
        /**
         * The maximum number of conformance packs compliance details returned on each page. The default is maximum. If you specify 0, Config uses the default.
         */
        public var limit: kotlin.Int? = null
        /**
         * The `nextToken` string returned on a previous page that you use to get 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.DescribeAggregateComplianceByConformancePacksRequest) : this() {
            this.configurationAggregatorName = x.configurationAggregatorName
            this.filters = x.filters
            this.limit = x.limit
            this.nextToken = x.nextToken
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceFilters] inside the given [block]
         */
        public fun filters(block: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceFilters.Builder.() -> kotlin.Unit) {
            this.filters = aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceFilters.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy