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

commonMain.aws.sdk.kotlin.services.schemas.model.SearchSchemasRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.schemas.model



public class SearchSchemasRequest private constructor(builder: Builder) {
    /**
     * Specifying this limits the results to only schemas that include the provided keywords.
     */
    public val keywords: kotlin.String? = requireNotNull(builder.keywords) { "A non-null value must be provided for keywords" }
    public val limit: kotlin.Int? = builder.limit
    /**
     * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The name of the registry.
     */
    public val registryName: kotlin.String? = requireNotNull(builder.registryName) { "A non-null value must be provided for registryName" }

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

    override fun toString(): kotlin.String = buildString {
        append("SearchSchemasRequest(")
        append("keywords=$keywords,")
        append("limit=$limit,")
        append("nextToken=$nextToken,")
        append("registryName=$registryName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = keywords?.hashCode() ?: 0
        result = 31 * result + (limit ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (registryName?.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 SearchSchemasRequest

        if (keywords != other.keywords) return false
        if (limit != other.limit) return false
        if (nextToken != other.nextToken) return false
        if (registryName != other.registryName) return false

        return true
    }

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

    public class Builder {
        /**
         * Specifying this limits the results to only schemas that include the provided keywords.
         */
        public var keywords: kotlin.String? = null
        public var limit: kotlin.Int? = null
        /**
         * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The name of the registry.
         */
        public var registryName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.schemas.model.SearchSchemasRequest) : this() {
            this.keywords = x.keywords
            this.limit = x.limit
            this.nextToken = x.nextToken
            this.registryName = x.registryName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy