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

commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.DescribeReservedElasticsearchInstanceOfferingsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticsearchservice.model



/**
 * Container for results from `DescribeReservedElasticsearchInstanceOfferings`
 */
public class DescribeReservedElasticsearchInstanceOfferingsResponse private constructor(builder: Builder) {
    /**
     * Provides an identifier to allow retrieval of paginated results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * List of reserved Elasticsearch instance offerings
     */
    public val reservedElasticsearchInstanceOfferings: List? = builder.reservedElasticsearchInstanceOfferings

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * Provides an identifier to allow retrieval of paginated results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * List of reserved Elasticsearch instance offerings
         */
        public var reservedElasticsearchInstanceOfferings: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticsearchservice.model.DescribeReservedElasticsearchInstanceOfferingsResponse) : this() {
            this.nextToken = x.nextToken
            this.reservedElasticsearchInstanceOfferings = x.reservedElasticsearchInstanceOfferings
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy