commonMain.aws.sdk.kotlin.services.fsx.model.UpdateSnapshotRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsx-jvm Show documentation
Show all versions of fsx-jvm Show documentation
The AWS SDK for Kotlin client for FSx
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fsx.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateSnapshotRequest private constructor(builder: Builder) {
/**
* (Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The name of the snapshot to update.
*/
public val name: kotlin.String? = builder.name
/**
* The ID of the snapshot that you want to update, in the format `fsvolsnap-0123456789abcdef0`.
*/
public val snapshotId: kotlin.String? = builder.snapshotId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.UpdateSnapshotRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSnapshotRequest(")
append("clientRequestToken=$clientRequestToken,")
append("name=$name,")
append("snapshotId=$snapshotId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (snapshotId?.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 UpdateSnapshotRequest
if (clientRequestToken != other.clientRequestToken) return false
if (name != other.name) return false
if (snapshotId != other.snapshotId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.UpdateSnapshotRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* (Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The name of the snapshot to update.
*/
public var name: kotlin.String? = null
/**
* The ID of the snapshot that you want to update, in the format `fsvolsnap-0123456789abcdef0`.
*/
public var snapshotId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.UpdateSnapshotRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.name = x.name
this.snapshotId = x.snapshotId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.UpdateSnapshotRequest = UpdateSnapshotRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}