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

commonMain.aws.sdk.kotlin.services.resourcegroups.model.SearchResourcesResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.resourcegroups.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SearchResourcesResponse private constructor(builder: Builder) {
    /**
     * If present, indicates that more output is available than is included in the current response. Use this value in the `NextToken` request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the `NextToken` response element comes back as `null`.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * A list of `QueryError` objects. Each error contains an `ErrorCode` and `Message`.
     *
     * Possible values for `ErrorCode`:
     * + `CLOUDFORMATION_STACK_INACTIVE`
     * + `CLOUDFORMATION_STACK_NOT_EXISTING`
     * + `CLOUDFORMATION_STACK_UNASSUMABLE_ROLE `
     */
    public val queryErrors: List? = builder.queryErrors
    /**
     * The ARNs and resource types of resources that are members of the group that you specified.
     */
    public val resourceIdentifiers: List? = builder.resourceIdentifiers

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

    override fun toString(): kotlin.String = buildString {
        append("SearchResourcesResponse(")
        append("nextToken=$nextToken,")
        append("queryErrors=$queryErrors,")
        append("resourceIdentifiers=$resourceIdentifiers")
        append(")")
    }

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

        if (nextToken != other.nextToken) return false
        if (queryErrors != other.queryErrors) return false
        if (resourceIdentifiers != other.resourceIdentifiers) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * If present, indicates that more output is available than is included in the current response. Use this value in the `NextToken` request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the `NextToken` response element comes back as `null`.
         */
        public var nextToken: kotlin.String? = null
        /**
         * A list of `QueryError` objects. Each error contains an `ErrorCode` and `Message`.
         *
         * Possible values for `ErrorCode`:
         * + `CLOUDFORMATION_STACK_INACTIVE`
         * + `CLOUDFORMATION_STACK_NOT_EXISTING`
         * + `CLOUDFORMATION_STACK_UNASSUMABLE_ROLE `
         */
        public var queryErrors: List? = null
        /**
         * The ARNs and resource types of resources that are members of the group that you specified.
         */
        public var resourceIdentifiers: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.SearchResourcesResponse) : this() {
            this.nextToken = x.nextToken
            this.queryErrors = x.queryErrors
            this.resourceIdentifiers = x.resourceIdentifiers
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy