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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



/**
 *
 */
class ListDiscoveredResourcesRequest private constructor(builder: Builder) {
    /**
     * Specifies whether Config includes deleted resources in the
     * results. By default, deleted resources are not included.
     */
    val includeDeletedResources: kotlin.Boolean = builder.includeDeletedResources
    /**
     * The maximum number of resource identifiers returned on each
     * page. The default is 100. You cannot specify a number greater than
     * 100. If you specify 0, Config uses the default.
     */
    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.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The IDs of only those resources that you want Config to
     * list in the response. If you do not specify this parameter, Config lists all resources of the specified type that it has
     * discovered.
     */
    val resourceIds: List? = builder.resourceIds
    /**
     * The custom name of only those resources that you want Config to list in the response. If you do not specify this
     * parameter, Config lists all resources of the specified type that
     * it has discovered.
     */
    val resourceName: kotlin.String? = builder.resourceName
    /**
     * The type of resources that you want Config to list in the
     * response.
     */
    val resourceType: aws.sdk.kotlin.services.configservice.model.ResourceType? = builder.resourceType

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

    override fun toString(): kotlin.String = buildString {
        append("ListDiscoveredResourcesRequest(")
        append("includeDeletedResources=$includeDeletedResources,")
        append("limit=$limit,")
        append("nextToken=$nextToken,")
        append("resourceIds=$resourceIds,")
        append("resourceName=$resourceName,")
        append("resourceType=$resourceType)")
    }

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

        if (includeDeletedResources != other.includeDeletedResources) return false
        if (limit != other.limit) return false
        if (nextToken != other.nextToken) return false
        if (resourceIds != other.resourceIds) return false
        if (resourceName != other.resourceName) return false
        if (resourceType != other.resourceType) return false

        return true
    }

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

    class Builder {
        /**
         * Specifies whether Config includes deleted resources in the
         * results. By default, deleted resources are not included.
         */
        var includeDeletedResources: kotlin.Boolean = false
        /**
         * The maximum number of resource identifiers returned on each
         * page. The default is 100. You cannot specify a number greater than
         * 100. If you specify 0, Config uses the default.
         */
        var limit: kotlin.Int = 0
        /**
         * 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
        /**
         * The IDs of only those resources that you want Config to
         * list in the response. If you do not specify this parameter, Config lists all resources of the specified type that it has
         * discovered.
         */
        var resourceIds: List? = null
        /**
         * The custom name of only those resources that you want Config to list in the response. If you do not specify this
         * parameter, Config lists all resources of the specified type that
         * it has discovered.
         */
        var resourceName: kotlin.String? = null
        /**
         * The type of resources that you want Config to list in the
         * response.
         */
        var resourceType: aws.sdk.kotlin.services.configservice.model.ResourceType? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.ListDiscoveredResourcesRequest) : this() {
            this.includeDeletedResources = x.includeDeletedResources
            this.limit = x.limit
            this.nextToken = x.nextToken
            this.resourceIds = x.resourceIds
            this.resourceName = x.resourceName
            this.resourceType = x.resourceType
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy