commonMain.aws.sdk.kotlin.services.configservice.model.GetDiscoveredResourceCountsRequest.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 Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
public class GetDiscoveredResourceCountsRequest private constructor(builder: Builder) {
/**
* The maximum number of ResourceCount objects returned on each page. The default is 100. You cannot specify a number greater than 100. 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
/**
* The comma-separated list that specifies the resource types that you want Config to return (for example, `"AWS::EC2::Instance"`, `"AWS::IAM::User"`).
*
* If a value for `resourceTypes` is not specified, Config returns all resource types that Config is recording in the region for your account.
*
* If the configuration recorder is turned off, Config returns an empty list of ResourceCount objects. If the configuration recorder is not recording a specific resource type (for example, S3 buckets), that resource type is not returned in the list of ResourceCount objects.
*/
public val resourceTypes: List? = builder.resourceTypes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.GetDiscoveredResourceCountsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDiscoveredResourceCountsRequest(")
append("limit=$limit,")
append("nextToken=$nextToken,")
append("resourceTypes=$resourceTypes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = limit ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (resourceTypes?.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 GetDiscoveredResourceCountsRequest
if (limit != other.limit) return false
if (nextToken != other.nextToken) return false
if (resourceTypes != other.resourceTypes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.GetDiscoveredResourceCountsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum number of ResourceCount objects returned on each page. The default is 100. You cannot specify a number greater than 100. 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
/**
* The comma-separated list that specifies the resource types that you want Config to return (for example, `"AWS::EC2::Instance"`, `"AWS::IAM::User"`).
*
* If a value for `resourceTypes` is not specified, Config returns all resource types that Config is recording in the region for your account.
*
* If the configuration recorder is turned off, Config returns an empty list of ResourceCount objects. If the configuration recorder is not recording a specific resource type (for example, S3 buckets), that resource type is not returned in the list of ResourceCount objects.
*/
public var resourceTypes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.GetDiscoveredResourceCountsRequest) : this() {
this.limit = x.limit
this.nextToken = x.nextToken
this.resourceTypes = x.resourceTypes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.GetDiscoveredResourceCountsRequest = GetDiscoveredResourceCountsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy