commonMain.aws.sdk.kotlin.services.fsx.model.UpdateFileCacheRequest.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 UpdateFileCacheRequest 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 ID of the cache that you are updating.
*/
public val fileCacheId: kotlin.String? = builder.fileCacheId
/**
* The configuration updates for an Amazon File Cache resource.
*/
public val lustreConfiguration: aws.sdk.kotlin.services.fsx.model.UpdateFileCacheLustreConfiguration? = builder.lustreConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.UpdateFileCacheRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFileCacheRequest(")
append("clientRequestToken=$clientRequestToken,")
append("fileCacheId=$fileCacheId,")
append("lustreConfiguration=$lustreConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (fileCacheId?.hashCode() ?: 0)
result = 31 * result + (lustreConfiguration?.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 UpdateFileCacheRequest
if (clientRequestToken != other.clientRequestToken) return false
if (fileCacheId != other.fileCacheId) return false
if (lustreConfiguration != other.lustreConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.UpdateFileCacheRequest = 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 ID of the cache that you are updating.
*/
public var fileCacheId: kotlin.String? = null
/**
* The configuration updates for an Amazon File Cache resource.
*/
public var lustreConfiguration: aws.sdk.kotlin.services.fsx.model.UpdateFileCacheLustreConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.UpdateFileCacheRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.fileCacheId = x.fileCacheId
this.lustreConfiguration = x.lustreConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.UpdateFileCacheRequest = UpdateFileCacheRequest(this)
/**
* construct an [aws.sdk.kotlin.services.fsx.model.UpdateFileCacheLustreConfiguration] inside the given [block]
*/
public fun lustreConfiguration(block: aws.sdk.kotlin.services.fsx.model.UpdateFileCacheLustreConfiguration.Builder.() -> kotlin.Unit) {
this.lustreConfiguration = aws.sdk.kotlin.services.fsx.model.UpdateFileCacheLustreConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}