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

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

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

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



class DescribeRetentionConfigurationsRequest private constructor(builder: Builder) {
    /**
     * The nextToken string returned on a previous page
     * that you use to get the next page of results in a paginated
     * response.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * A list of names of retention configurations for which you want
     * details. If you do not specify a name, Config returns details
     * for all the retention configurations for that account.
     *
     * Currently, Config supports only one retention
     * configuration per region in your account.
     */
    val retentionConfigurationNames: List? = builder.retentionConfigurationNames

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeRetentionConfigurationsRequest(")
        append("nextToken=$nextToken,")
        append("retentionConfigurationNames=$retentionConfigurationNames)")
    }

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

        if (nextToken != other.nextToken) return false
        if (retentionConfigurationNames != other.retentionConfigurationNames) return false

        return true
    }

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

    class Builder {
        /**
         * The nextToken string returned on a previous page
         * that you use to get the next page of results in a paginated
         * response.
         */
        var nextToken: kotlin.String? = null
        /**
         * A list of names of retention configurations for which you want
         * details. If you do not specify a name, Config returns details
         * for all the retention configurations for that account.
         *
         * Currently, Config supports only one retention
         * configuration per region in your account.
         */
        var retentionConfigurationNames: List? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy