
commonMain.aws.sdk.kotlin.services.opensearch.model.PurchaseReservedInstanceOfferingResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Represents the output of a `PurchaseReservedInstanceOffering` operation.
*/
public class PurchaseReservedInstanceOfferingResponse private constructor(builder: Builder) {
/**
* The customer-specified identifier used to track this reservation.
*/
public val reservationName: kotlin.String? = builder.reservationName
/**
* The ID of the Reserved Instance offering that was purchased.
*/
public val reservedInstanceId: kotlin.String? = builder.reservedInstanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.PurchaseReservedInstanceOfferingResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PurchaseReservedInstanceOfferingResponse(")
append("reservationName=$reservationName,")
append("reservedInstanceId=$reservedInstanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reservationName?.hashCode() ?: 0
result = 31 * result + (reservedInstanceId?.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 PurchaseReservedInstanceOfferingResponse
if (reservationName != other.reservationName) return false
if (reservedInstanceId != other.reservedInstanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.PurchaseReservedInstanceOfferingResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The customer-specified identifier used to track this reservation.
*/
public var reservationName: kotlin.String? = null
/**
* The ID of the Reserved Instance offering that was purchased.
*/
public var reservedInstanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.PurchaseReservedInstanceOfferingResponse) : this() {
this.reservationName = x.reservationName
this.reservedInstanceId = x.reservedInstanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.PurchaseReservedInstanceOfferingResponse = PurchaseReservedInstanceOfferingResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy