commonMain.aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsRequest.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetReservedNodeExchangeConfigurationOptionsRequest private constructor(builder: Builder) {
/**
* The action type of the reserved-node configuration. The action type can be an exchange initiated from either a snapshot or a resize.
*/
public val actionType: aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeActionType? = builder.actionType
/**
* The identifier for the cluster that is the source for a reserved-node exchange.
*/
public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
/**
* An optional pagination token provided by a previous `GetReservedNodeExchangeConfigurationOptions` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the `MaxRecords` parameter. You can retrieve the next set of response records by providing the returned marker value in the `Marker` parameter and retrying the request.
*/
public val marker: kotlin.String? = builder.marker
/**
* The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified `MaxRecords` value, a value is returned in a `Marker` field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.
*/
public val maxRecords: kotlin.Int? = builder.maxRecords
/**
* The identifier for the snapshot that is the source for the reserved-node exchange.
*/
public val snapshotIdentifier: kotlin.String? = builder.snapshotIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReservedNodeExchangeConfigurationOptionsRequest(")
append("actionType=$actionType,")
append("clusterIdentifier=$clusterIdentifier,")
append("marker=$marker,")
append("maxRecords=$maxRecords,")
append("snapshotIdentifier=$snapshotIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionType?.hashCode() ?: 0
result = 31 * result + (clusterIdentifier?.hashCode() ?: 0)
result = 31 * result + (marker?.hashCode() ?: 0)
result = 31 * result + (maxRecords ?: 0)
result = 31 * result + (snapshotIdentifier?.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 GetReservedNodeExchangeConfigurationOptionsRequest
if (actionType != other.actionType) return false
if (clusterIdentifier != other.clusterIdentifier) return false
if (marker != other.marker) return false
if (maxRecords != other.maxRecords) return false
if (snapshotIdentifier != other.snapshotIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The action type of the reserved-node configuration. The action type can be an exchange initiated from either a snapshot or a resize.
*/
public var actionType: aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeActionType? = null
/**
* The identifier for the cluster that is the source for a reserved-node exchange.
*/
public var clusterIdentifier: kotlin.String? = null
/**
* An optional pagination token provided by a previous `GetReservedNodeExchangeConfigurationOptions` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the `MaxRecords` parameter. You can retrieve the next set of response records by providing the returned marker value in the `Marker` parameter and retrying the request.
*/
public var marker: kotlin.String? = null
/**
* The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified `MaxRecords` value, a value is returned in a `Marker` field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.
*/
public var maxRecords: kotlin.Int? = null
/**
* The identifier for the snapshot that is the source for the reserved-node exchange.
*/
public var snapshotIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsRequest) : this() {
this.actionType = x.actionType
this.clusterIdentifier = x.clusterIdentifier
this.marker = x.marker
this.maxRecords = x.maxRecords
this.snapshotIdentifier = x.snapshotIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.GetReservedNodeExchangeConfigurationOptionsRequest = GetReservedNodeExchangeConfigurationOptionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}