commonMain.aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatus.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Reserved-node status details, such as the source reserved-node identifier, the target reserved-node identifier, the node type, the node count, and other details.
*/
public class ReservedNodeExchangeStatus private constructor(builder: Builder) {
/**
* A date and time that indicate when the reserved-node exchange was requested.
*/
public val requestTime: aws.smithy.kotlin.runtime.time.Instant? = builder.requestTime
/**
* The identifier of the reserved-node exchange request.
*/
public val reservedNodeExchangeRequestId: kotlin.String? = builder.reservedNodeExchangeRequestId
/**
* The source reserved-node count in the cluster.
*/
public val sourceReservedNodeCount: kotlin.Int? = builder.sourceReservedNodeCount
/**
* The identifier of the source reserved node.
*/
public val sourceReservedNodeId: kotlin.String? = builder.sourceReservedNodeId
/**
* The source reserved-node type, for example ra3.4xlarge.
*/
public val sourceReservedNodeType: kotlin.String? = builder.sourceReservedNodeType
/**
* The status of the reserved-node exchange request. Statuses include in-progress and requested.
*/
public val status: aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatusType? = builder.status
/**
* The count of target reserved nodes in the cluster.
*/
public val targetReservedNodeCount: kotlin.Int? = builder.targetReservedNodeCount
/**
* The identifier of the target reserved node offering.
*/
public val targetReservedNodeOfferingId: kotlin.String? = builder.targetReservedNodeOfferingId
/**
* The node type of the target reserved node, for example ra3.4xlarge.
*/
public val targetReservedNodeType: kotlin.String? = builder.targetReservedNodeType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReservedNodeExchangeStatus(")
append("requestTime=$requestTime,")
append("reservedNodeExchangeRequestId=$reservedNodeExchangeRequestId,")
append("sourceReservedNodeCount=$sourceReservedNodeCount,")
append("sourceReservedNodeId=$sourceReservedNodeId,")
append("sourceReservedNodeType=$sourceReservedNodeType,")
append("status=$status,")
append("targetReservedNodeCount=$targetReservedNodeCount,")
append("targetReservedNodeOfferingId=$targetReservedNodeOfferingId,")
append("targetReservedNodeType=$targetReservedNodeType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requestTime?.hashCode() ?: 0
result = 31 * result + (reservedNodeExchangeRequestId?.hashCode() ?: 0)
result = 31 * result + (sourceReservedNodeCount ?: 0)
result = 31 * result + (sourceReservedNodeId?.hashCode() ?: 0)
result = 31 * result + (sourceReservedNodeType?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (targetReservedNodeCount ?: 0)
result = 31 * result + (targetReservedNodeOfferingId?.hashCode() ?: 0)
result = 31 * result + (targetReservedNodeType?.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 ReservedNodeExchangeStatus
if (requestTime != other.requestTime) return false
if (reservedNodeExchangeRequestId != other.reservedNodeExchangeRequestId) return false
if (sourceReservedNodeCount != other.sourceReservedNodeCount) return false
if (sourceReservedNodeId != other.sourceReservedNodeId) return false
if (sourceReservedNodeType != other.sourceReservedNodeType) return false
if (status != other.status) return false
if (targetReservedNodeCount != other.targetReservedNodeCount) return false
if (targetReservedNodeOfferingId != other.targetReservedNodeOfferingId) return false
if (targetReservedNodeType != other.targetReservedNodeType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A date and time that indicate when the reserved-node exchange was requested.
*/
public var requestTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier of the reserved-node exchange request.
*/
public var reservedNodeExchangeRequestId: kotlin.String? = null
/**
* The source reserved-node count in the cluster.
*/
public var sourceReservedNodeCount: kotlin.Int? = null
/**
* The identifier of the source reserved node.
*/
public var sourceReservedNodeId: kotlin.String? = null
/**
* The source reserved-node type, for example ra3.4xlarge.
*/
public var sourceReservedNodeType: kotlin.String? = null
/**
* The status of the reserved-node exchange request. Statuses include in-progress and requested.
*/
public var status: aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatusType? = null
/**
* The count of target reserved nodes in the cluster.
*/
public var targetReservedNodeCount: kotlin.Int? = null
/**
* The identifier of the target reserved node offering.
*/
public var targetReservedNodeOfferingId: kotlin.String? = null
/**
* The node type of the target reserved node, for example ra3.4xlarge.
*/
public var targetReservedNodeType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatus) : this() {
this.requestTime = x.requestTime
this.reservedNodeExchangeRequestId = x.reservedNodeExchangeRequestId
this.sourceReservedNodeCount = x.sourceReservedNodeCount
this.sourceReservedNodeId = x.sourceReservedNodeId
this.sourceReservedNodeType = x.sourceReservedNodeType
this.status = x.status
this.targetReservedNodeCount = x.targetReservedNodeCount
this.targetReservedNodeOfferingId = x.targetReservedNodeOfferingId
this.targetReservedNodeType = x.targetReservedNodeType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ReservedNodeExchangeStatus = ReservedNodeExchangeStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}