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

commonMain.aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

public class QuerySchemaVersionMetadataRequest private constructor(builder: Builder) {
    /**
     * Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.
     */
    public val metadataList: List? = builder.metadataList
    /**
     * A continuation token, if this is a continuation call.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
     */
    public val schemaId: aws.sdk.kotlin.services.glue.model.SchemaId? = builder.schemaId
    /**
     * The unique version ID of the schema version.
     */
    public val schemaVersionId: kotlin.String? = builder.schemaVersionId
    /**
     * The version number of the schema.
     */
    public val schemaVersionNumber: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber? = builder.schemaVersionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("QuerySchemaVersionMetadataRequest(")
        append("maxResults=$maxResults,")
        append("metadataList=$metadataList,")
        append("nextToken=$nextToken,")
        append("schemaId=$schemaId,")
        append("schemaVersionId=$schemaVersionId,")
        append("schemaVersionNumber=$schemaVersionNumber")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxResults ?: 0
        result = 31 * result + (metadataList?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (schemaId?.hashCode() ?: 0)
        result = 31 * result + (schemaVersionId?.hashCode() ?: 0)
        result = 31 * result + (schemaVersionNumber?.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 QuerySchemaVersionMetadataRequest

        if (maxResults != other.maxResults) return false
        if (metadataList != other.metadataList) return false
        if (nextToken != other.nextToken) return false
        if (schemaId != other.schemaId) return false
        if (schemaVersionId != other.schemaVersionId) return false
        if (schemaVersionNumber != other.schemaVersionNumber) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.
         */
        public var metadataList: List? = null
        /**
         * A continuation token, if this is a continuation call.
         */
        public var nextToken: kotlin.String? = null
        /**
         * A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
         */
        public var schemaId: aws.sdk.kotlin.services.glue.model.SchemaId? = null
        /**
         * The unique version ID of the schema version.
         */
        public var schemaVersionId: kotlin.String? = null
        /**
         * The version number of the schema.
         */
        public var schemaVersionNumber: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataRequest) : this() {
            this.maxResults = x.maxResults
            this.metadataList = x.metadataList
            this.nextToken = x.nextToken
            this.schemaId = x.schemaId
            this.schemaVersionId = x.schemaVersionId
            this.schemaVersionNumber = x.schemaVersionNumber
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.glue.model.SchemaId] inside the given [block]
         */
        public fun schemaId(block: aws.sdk.kotlin.services.glue.model.SchemaId.Builder.() -> kotlin.Unit) {
            this.schemaId = aws.sdk.kotlin.services.glue.model.SchemaId.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.glue.model.SchemaVersionNumber] inside the given [block]
         */
        public fun schemaVersionNumber(block: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber.Builder.() -> kotlin.Unit) {
            this.schemaVersionNumber = aws.sdk.kotlin.services.glue.model.SchemaVersionNumber.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy