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

commonMain.aws.sdk.kotlin.services.datapipeline.model.QueryObjectsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datapipeline.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Contains the output of QueryObjects.
 */
public class QueryObjectsResponse private constructor(builder: Builder) {
    /**
     * Indicates whether there are more results that can be obtained by a subsequent call.
     */
    public val hasMoreResults: kotlin.Boolean = builder.hasMoreResults
    /**
     * The identifiers that match the query selectors.
     */
    public val ids: List? = builder.ids
    /**
     * The starting point for the next page of results. To view the next page of results, call `QueryObjects` again with this marker value. If the value is null, there are no more results.
     */
    public val marker: kotlin.String? = builder.marker

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

    override fun toString(): kotlin.String = buildString {
        append("QueryObjectsResponse(")
        append("hasMoreResults=$hasMoreResults,")
        append("ids=$ids,")
        append("marker=$marker")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = hasMoreResults.hashCode()
        result = 31 * result + (ids?.hashCode() ?: 0)
        result = 31 * result + (marker?.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 QueryObjectsResponse

        if (hasMoreResults != other.hasMoreResults) return false
        if (ids != other.ids) return false
        if (marker != other.marker) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Indicates whether there are more results that can be obtained by a subsequent call.
         */
        public var hasMoreResults: kotlin.Boolean = false
        /**
         * The identifiers that match the query selectors.
         */
        public var ids: List? = null
        /**
         * The starting point for the next page of results. To view the next page of results, call `QueryObjects` again with this marker value. If the value is null, there are no more results.
         */
        public var marker: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.QueryObjectsResponse) : this() {
            this.hasMoreResults = x.hasMoreResults
            this.ids = x.ids
            this.marker = x.marker
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy