commonMain.aws.sdk.kotlin.services.redshift.model.DescribeTableRestoreStatusRequest.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 DescribeTableRestoreStatusRequest private constructor(builder: Builder) {
/**
* The Amazon Redshift cluster that the table is being restored to.
*/
public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
/**
* An optional pagination token provided by a previous `DescribeTableRestoreStatus` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the `MaxRecords` parameter.
*/
public val marker: kotlin.String? = builder.marker
/**
* The maximum number of records to include in the response. If more records exist than the specified `MaxRecords` value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.
*/
public val maxRecords: kotlin.Int? = builder.maxRecords
/**
* The identifier of the table restore request to return status for. If you don't specify a `TableRestoreRequestId` value, then `DescribeTableRestoreStatus` returns the status of all in-progress table restore requests.
*/
public val tableRestoreRequestId: kotlin.String? = builder.tableRestoreRequestId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.DescribeTableRestoreStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeTableRestoreStatusRequest(")
append("clusterIdentifier=$clusterIdentifier,")
append("marker=$marker,")
append("maxRecords=$maxRecords,")
append("tableRestoreRequestId=$tableRestoreRequestId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterIdentifier?.hashCode() ?: 0
result = 31 * result + (marker?.hashCode() ?: 0)
result = 31 * result + (maxRecords ?: 0)
result = 31 * result + (tableRestoreRequestId?.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 DescribeTableRestoreStatusRequest
if (clusterIdentifier != other.clusterIdentifier) return false
if (marker != other.marker) return false
if (maxRecords != other.maxRecords) return false
if (tableRestoreRequestId != other.tableRestoreRequestId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.DescribeTableRestoreStatusRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Redshift cluster that the table is being restored to.
*/
public var clusterIdentifier: kotlin.String? = null
/**
* An optional pagination token provided by a previous `DescribeTableRestoreStatus` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the `MaxRecords` parameter.
*/
public var marker: kotlin.String? = null
/**
* The maximum number of records to include in the response. If more records exist than the specified `MaxRecords` value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.
*/
public var maxRecords: kotlin.Int? = null
/**
* The identifier of the table restore request to return status for. If you don't specify a `TableRestoreRequestId` value, then `DescribeTableRestoreStatus` returns the status of all in-progress table restore requests.
*/
public var tableRestoreRequestId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.DescribeTableRestoreStatusRequest) : this() {
this.clusterIdentifier = x.clusterIdentifier
this.marker = x.marker
this.maxRecords = x.maxRecords
this.tableRestoreRequestId = x.tableRestoreRequestId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.DescribeTableRestoreStatusRequest = DescribeTableRestoreStatusRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}