commonMain.aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetReservedNodeExchangeConfigurationOptionsResponse private constructor(builder: Builder) {
/**
* A pagination token provided by a previous `GetReservedNodeExchangeConfigurationOptions` request.
*/
public val marker: kotlin.String? = builder.marker
/**
* the configuration options for the reserved-node exchange. These options include information about the source reserved node and target reserved node. Details include the node type, the price, the node count, and the offering type.
*/
public val reservedNodeConfigurationOptionList: List? = builder.reservedNodeConfigurationOptionList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReservedNodeExchangeConfigurationOptionsResponse(")
append("marker=$marker,")
append("reservedNodeConfigurationOptionList=$reservedNodeConfigurationOptionList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = marker?.hashCode() ?: 0
result = 31 * result + (reservedNodeConfigurationOptionList?.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 GetReservedNodeExchangeConfigurationOptionsResponse
if (marker != other.marker) return false
if (reservedNodeConfigurationOptionList != other.reservedNodeConfigurationOptionList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A pagination token provided by a previous `GetReservedNodeExchangeConfigurationOptions` request.
*/
public var marker: kotlin.String? = null
/**
* the configuration options for the reserved-node exchange. These options include information about the source reserved node and target reserved node. Details include the node type, the price, the node count, and the offering type.
*/
public var reservedNodeConfigurationOptionList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsResponse) : this() {
this.marker = x.marker
this.reservedNodeConfigurationOptionList = x.reservedNodeConfigurationOptionList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsResponse = GetReservedNodeExchangeConfigurationOptionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}