commonMain.aws.sdk.kotlin.services.redshift.model.DescribeSnapshotSchedulesRequest.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 DescribeSnapshotSchedulesRequest private constructor(builder: Builder) {
/**
* The unique identifier for the cluster whose snapshot schedules you want to view.
*/
public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
/**
* A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the `marker` parameter and retrying the command. If the `marker` field is empty, all response records have been retrieved for the request.
*/
public val marker: kotlin.String? = builder.marker
/**
* The maximum number or 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
/**
* A unique identifier for a snapshot schedule.
*/
public val scheduleIdentifier: kotlin.String? = builder.scheduleIdentifier
/**
* The key value for a snapshot schedule tag.
*/
public val tagKeys: List? = builder.tagKeys
/**
* The value corresponding to the key of the snapshot schedule tag.
*/
public val tagValues: List? = builder.tagValues
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.DescribeSnapshotSchedulesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeSnapshotSchedulesRequest(")
append("clusterIdentifier=$clusterIdentifier,")
append("marker=$marker,")
append("maxRecords=$maxRecords,")
append("scheduleIdentifier=$scheduleIdentifier,")
append("tagKeys=$tagKeys,")
append("tagValues=$tagValues")
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 + (scheduleIdentifier?.hashCode() ?: 0)
result = 31 * result + (tagKeys?.hashCode() ?: 0)
result = 31 * result + (tagValues?.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 DescribeSnapshotSchedulesRequest
if (clusterIdentifier != other.clusterIdentifier) return false
if (marker != other.marker) return false
if (maxRecords != other.maxRecords) return false
if (scheduleIdentifier != other.scheduleIdentifier) return false
if (tagKeys != other.tagKeys) return false
if (tagValues != other.tagValues) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.DescribeSnapshotSchedulesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier for the cluster whose snapshot schedules you want to view.
*/
public var clusterIdentifier: kotlin.String? = null
/**
* A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the `marker` parameter and retrying the command. If the `marker` field is empty, all response records have been retrieved for the request.
*/
public var marker: kotlin.String? = null
/**
* The maximum number or 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
/**
* A unique identifier for a snapshot schedule.
*/
public var scheduleIdentifier: kotlin.String? = null
/**
* The key value for a snapshot schedule tag.
*/
public var tagKeys: List? = null
/**
* The value corresponding to the key of the snapshot schedule tag.
*/
public var tagValues: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.DescribeSnapshotSchedulesRequest) : this() {
this.clusterIdentifier = x.clusterIdentifier
this.marker = x.marker
this.maxRecords = x.maxRecords
this.scheduleIdentifier = x.scheduleIdentifier
this.tagKeys = x.tagKeys
this.tagValues = x.tagValues
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.DescribeSnapshotSchedulesRequest = DescribeSnapshotSchedulesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}