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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemaObjectSummaryRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeFleetAdvisorSchemaObjectSummaryRequest private constructor(builder: Builder) {
    /**
     * If you specify any of the following filters, the output includes information for only those schema objects that meet the filter criteria:
     * + `schema-id` – The ID of the schema, for example `d4610ac5-e323-4ad9-bc50-eaf7249dfe9d`.
     *
     * Example: `describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50"`
     */
    public val filters: List? = builder.filters
    /**
     * Sets the maximum number of records returned in the response.
     */
    public val maxRecords: kotlin.Int? = builder.maxRecords
    /**
     * If `NextToken` is returned by a previous response, there are more results available. The value of `NextToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
     */
    public val nextToken: kotlin.String? = builder.nextToken

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeFleetAdvisorSchemaObjectSummaryRequest(")
        append("filters=$filters,")
        append("maxRecords=$maxRecords,")
        append("nextToken=$nextToken")
        append(")")
    }

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

        if (filters != other.filters) return false
        if (maxRecords != other.maxRecords) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * If you specify any of the following filters, the output includes information for only those schema objects that meet the filter criteria:
         * + `schema-id` – The ID of the schema, for example `d4610ac5-e323-4ad9-bc50-eaf7249dfe9d`.
         *
         * Example: `describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50"`
         */
        public var filters: List? = null
        /**
         * Sets the maximum number of records returned in the response.
         */
        public var maxRecords: kotlin.Int? = null
        /**
         * If `NextToken` is returned by a previous response, there are more results available. The value of `NextToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemaObjectSummaryRequest) : this() {
            this.filters = x.filters
            this.maxRecords = x.maxRecords
            this.nextToken = x.nextToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy