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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



/**
 *
 */
public class DescribeConfigRuleEvaluationStatusRequest private constructor(builder: Builder) {
    /**
     * The name of the Config managed rules for which you want status information. If you do not specify any names, Config returns status information for all Config managed rules that you use.
     */
    public val configRuleNames: List? = builder.configRuleNames
    /**
     * The number of rule evaluation results that you want returned.
     *
     * This parameter is required if the rule limit for your account is more than the default of 150 rules.
     *
     * For information about requesting a rule limit increase, see [Config Limits](http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_config) in the *Amazon Web Services General Reference Guide*.
     */
    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.DescribeConfigRuleEvaluationStatusRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeConfigRuleEvaluationStatusRequest(")
        append("configRuleNames=$configRuleNames,")
        append("limit=$limit,")
        append("nextToken=$nextToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configRuleNames?.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 DescribeConfigRuleEvaluationStatusRequest

        if (configRuleNames != other.configRuleNames) 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.DescribeConfigRuleEvaluationStatusRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The name of the Config managed rules for which you want status information. If you do not specify any names, Config returns status information for all Config managed rules that you use.
         */
        public var configRuleNames: List? = null
        /**
         * The number of rule evaluation results that you want returned.
         *
         * This parameter is required if the rule limit for your account is more than the default of 150 rules.
         *
         * For information about requesting a rule limit increase, see [Config Limits](http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_config) in the *Amazon Web Services General Reference Guide*.
         */
        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.DescribeConfigRuleEvaluationStatusRequest) : this() {
            this.configRuleNames = x.configRuleNames
            this.limit = x.limit
            this.nextToken = x.nextToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy