commonMain.aws.sdk.kotlin.services.redshift.model.DataTransferProgress.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
/**
* Describes the status of a cluster while it is in the process of resizing with an incremental resize.
*/
public class DataTransferProgress private constructor(builder: Builder) {
/**
* Describes the data transfer rate in MB's per second.
*/
public val currentRateInMegaBytesPerSecond: kotlin.Double? = builder.currentRateInMegaBytesPerSecond
/**
* Describes the total amount of data that has been transfered in MB's.
*/
public val dataTransferredInMegaBytes: kotlin.Long? = builder.dataTransferredInMegaBytes
/**
* Describes the number of seconds that have elapsed during the data transfer.
*/
public val elapsedTimeInSeconds: kotlin.Long? = builder.elapsedTimeInSeconds
/**
* Describes the estimated number of seconds remaining to complete the transfer.
*/
public val estimatedTimeToCompletionInSeconds: kotlin.Long? = builder.estimatedTimeToCompletionInSeconds
/**
* Describes the status of the cluster. While the transfer is in progress the status is `transferringdata`.
*/
public val status: kotlin.String? = builder.status
/**
* Describes the total amount of data to be transfered in megabytes.
*/
public val totalDataInMegaBytes: kotlin.Long? = builder.totalDataInMegaBytes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.DataTransferProgress = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataTransferProgress(")
append("currentRateInMegaBytesPerSecond=$currentRateInMegaBytesPerSecond,")
append("dataTransferredInMegaBytes=$dataTransferredInMegaBytes,")
append("elapsedTimeInSeconds=$elapsedTimeInSeconds,")
append("estimatedTimeToCompletionInSeconds=$estimatedTimeToCompletionInSeconds,")
append("status=$status,")
append("totalDataInMegaBytes=$totalDataInMegaBytes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = currentRateInMegaBytesPerSecond?.hashCode() ?: 0
result = 31 * result + (dataTransferredInMegaBytes?.hashCode() ?: 0)
result = 31 * result + (elapsedTimeInSeconds?.hashCode() ?: 0)
result = 31 * result + (estimatedTimeToCompletionInSeconds?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (totalDataInMegaBytes?.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 DataTransferProgress
if (!(currentRateInMegaBytesPerSecond?.equals(other.currentRateInMegaBytesPerSecond) ?: (other.currentRateInMegaBytesPerSecond == null))) return false
if (dataTransferredInMegaBytes != other.dataTransferredInMegaBytes) return false
if (elapsedTimeInSeconds != other.elapsedTimeInSeconds) return false
if (estimatedTimeToCompletionInSeconds != other.estimatedTimeToCompletionInSeconds) return false
if (status != other.status) return false
if (totalDataInMegaBytes != other.totalDataInMegaBytes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.DataTransferProgress = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the data transfer rate in MB's per second.
*/
public var currentRateInMegaBytesPerSecond: kotlin.Double? = null
/**
* Describes the total amount of data that has been transfered in MB's.
*/
public var dataTransferredInMegaBytes: kotlin.Long? = null
/**
* Describes the number of seconds that have elapsed during the data transfer.
*/
public var elapsedTimeInSeconds: kotlin.Long? = null
/**
* Describes the estimated number of seconds remaining to complete the transfer.
*/
public var estimatedTimeToCompletionInSeconds: kotlin.Long? = null
/**
* Describes the status of the cluster. While the transfer is in progress the status is `transferringdata`.
*/
public var status: kotlin.String? = null
/**
* Describes the total amount of data to be transfered in megabytes.
*/
public var totalDataInMegaBytes: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.DataTransferProgress) : this() {
this.currentRateInMegaBytesPerSecond = x.currentRateInMegaBytesPerSecond
this.dataTransferredInMegaBytes = x.dataTransferredInMegaBytes
this.elapsedTimeInSeconds = x.elapsedTimeInSeconds
this.estimatedTimeToCompletionInSeconds = x.estimatedTimeToCompletionInSeconds
this.status = x.status
this.totalDataInMegaBytes = x.totalDataInMegaBytes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.DataTransferProgress = DataTransferProgress(this)
internal fun correctErrors(): Builder {
return this
}
}
}