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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DescribeRecommendationsResponse.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 DescribeRecommendationsResponse private constructor(builder: Builder) {
    /**
     * The unique pagination token returned for you to pass to a subsequent request. Fleet Advisor returns this token when the number of records in the response is greater than the `MaxRecords` value. To retrieve the next page, make the call again using the returned token and keeping all other arguments unchanged.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The list of recommendations of target engines that Fleet Advisor created for the source database.
     */
    public val recommendations: List? = builder.recommendations

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeRecommendationsResponse(")
        append("nextToken=$nextToken,")
        append("recommendations=$recommendations")
        append(")")
    }

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

        if (nextToken != other.nextToken) return false
        if (recommendations != other.recommendations) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique pagination token returned for you to pass to a subsequent request. Fleet Advisor returns this token when the number of records in the response is greater than the `MaxRecords` value. To retrieve the next page, make the call again using the returned token and keeping all other arguments unchanged.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The list of recommendations of target engines that Fleet Advisor created for the source database.
         */
        public var recommendations: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy