commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.DescribeReservedElasticsearchInstanceOfferingsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearchservice Show documentation
Show all versions of elasticsearchservice Show documentation
Amazon Elasticsearch Service
// 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