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

commonMain.aws.sdk.kotlin.services.opensearch.model.DescribeReservedInstanceOfferingsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearch.model



/**
 * Container for the request parameters to a `DescribeReservedInstanceOfferings` operation.
 */
public class DescribeReservedInstanceOfferingsRequest private constructor(builder: Builder) {
    /**
     * An optional parameter that specifies the maximum number of results to return. You can use `nextToken` to get the next page of results.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * If your initial `DescribeReservedInstanceOfferings` operation returns a `nextToken`, you can include the returned `nextToken` in subsequent `DescribeReservedInstanceOfferings` operations, which returns results in the next page.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The Reserved Instance identifier filter value. Use this parameter to show only the available instance types that match the specified reservation identifier.
     */
    public val reservedInstanceOfferingId: kotlin.String? = builder.reservedInstanceOfferingId

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeReservedInstanceOfferingsRequest(")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("reservedInstanceOfferingId=$reservedInstanceOfferingId")
        append(")")
    }

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

        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (reservedInstanceOfferingId != other.reservedInstanceOfferingId) return false

        return true
    }

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

    public class Builder {
        /**
         * An optional parameter that specifies the maximum number of results to return. You can use `nextToken` to get the next page of results.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * If your initial `DescribeReservedInstanceOfferings` operation returns a `nextToken`, you can include the returned `nextToken` in subsequent `DescribeReservedInstanceOfferings` operations, which returns results in the next page.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The Reserved Instance identifier filter value. Use this parameter to show only the available instance types that match the specified reservation identifier.
         */
        public var reservedInstanceOfferingId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DescribeReservedInstanceOfferingsRequest) : this() {
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.reservedInstanceOfferingId = x.reservedInstanceOfferingId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy