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

commonMain.aws.sdk.kotlin.services.configservice.model.DescribeOrganizationConfigRulesRequest.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 DescribeOrganizationConfigRulesRequest private constructor(builder: Builder) {
    /**
     * The maximum number of organization Config rules returned on each page. If you do no specify a number, Config uses the default. The default is 100.
     */
    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
    /**
     * The names of organization Config rules for which you want details. If you do not specify any names, Config returns details for all your organization Config rules.
     */
    public val organizationConfigRuleNames: List? = builder.organizationConfigRuleNames

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

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

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

        if (limit != other.limit) return false
        if (nextToken != other.nextToken) return false
        if (organizationConfigRuleNames != other.organizationConfigRuleNames) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum number of organization Config rules returned on each page. If you do no specify a number, Config uses the default. The default is 100.
         */
        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
        /**
         * The names of organization Config rules for which you want details. If you do not specify any names, Config returns details for all your organization Config rules.
         */
        public var organizationConfigRuleNames: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.DescribeOrganizationConfigRulesRequest) : this() {
            this.limit = x.limit
            this.nextToken = x.nextToken
            this.organizationConfigRuleNames = x.organizationConfigRuleNames
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy