commonMain.aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS SDK for Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class DescribeConfigRulesRequest private constructor(builder: Builder) {
/**
* The names of the Config rules for which you want details. If you do not specify any names, Config returns details for all your rules.
*/
public val configRuleNames: List? = builder.configRuleNames
/**
* Returns a list of Detective or Proactive Config rules. By default, this API returns an unfiltered list. For more information on Detective or Proactive Config rules, see **Evaluation Mode**[](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config-rules.html) in the *Config Developer Guide*.
*/
public val filters: aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesFilters? = builder.filters
/**
* 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.DescribeConfigRulesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeConfigRulesRequest(")
append("configRuleNames=$configRuleNames,")
append("filters=$filters,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configRuleNames?.hashCode() ?: 0
result = 31 * result + (filters?.hashCode() ?: 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 DescribeConfigRulesRequest
if (configRuleNames != other.configRuleNames) return false
if (filters != other.filters) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The names of the Config rules for which you want details. If you do not specify any names, Config returns details for all your rules.
*/
public var configRuleNames: List? = null
/**
* Returns a list of Detective or Proactive Config rules. By default, this API returns an unfiltered list. For more information on Detective or Proactive Config rules, see **Evaluation Mode**[](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config-rules.html) in the *Config Developer Guide*.
*/
public var filters: aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesFilters? = 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.DescribeConfigRulesRequest) : this() {
this.configRuleNames = x.configRuleNames
this.filters = x.filters
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesRequest = DescribeConfigRulesRequest(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesFilters] inside the given [block]
*/
public fun filters(block: aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesFilters.Builder.() -> kotlin.Unit) {
this.filters = aws.sdk.kotlin.services.configservice.model.DescribeConfigRulesFilters.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}