commonMain.aws.sdk.kotlin.services.finspace.model.UpdateKxVolumeRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
public class UpdateKxVolumeRequest private constructor(builder: Builder) {
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A description of the volume.
*/
public val description: kotlin.String? = builder.description
/**
* A unique identifier for the kdb environment where you created the storage volume.
*/
public val environmentId: kotlin.String? = builder.environmentId
/**
* Specifies the configuration for the Network attached storage (NAS_1) file system volume.
*/
public val nas1Configuration: aws.sdk.kotlin.services.finspace.model.KxNas1Configuration? = builder.nas1Configuration
/**
* A unique identifier for the volume.
*/
public val volumeName: kotlin.String? = builder.volumeName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.UpdateKxVolumeRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateKxVolumeRequest(")
append("clientToken=$clientToken,")
append("description=$description,")
append("environmentId=$environmentId,")
append("nas1Configuration=$nas1Configuration,")
append("volumeName=$volumeName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (environmentId?.hashCode() ?: 0)
result = 31 * result + (nas1Configuration?.hashCode() ?: 0)
result = 31 * result + (volumeName?.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 UpdateKxVolumeRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (environmentId != other.environmentId) return false
if (nas1Configuration != other.nas1Configuration) return false
if (volumeName != other.volumeName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.UpdateKxVolumeRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public var clientToken: kotlin.String? = null
/**
* A description of the volume.
*/
public var description: kotlin.String? = null
/**
* A unique identifier for the kdb environment where you created the storage volume.
*/
public var environmentId: kotlin.String? = null
/**
* Specifies the configuration for the Network attached storage (NAS_1) file system volume.
*/
public var nas1Configuration: aws.sdk.kotlin.services.finspace.model.KxNas1Configuration? = null
/**
* A unique identifier for the volume.
*/
public var volumeName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.UpdateKxVolumeRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.environmentId = x.environmentId
this.nas1Configuration = x.nas1Configuration
this.volumeName = x.volumeName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.UpdateKxVolumeRequest = UpdateKxVolumeRequest(this)
/**
* construct an [aws.sdk.kotlin.services.finspace.model.KxNas1Configuration] inside the given [block]
*/
public fun nas1Configuration(block: aws.sdk.kotlin.services.finspace.model.KxNas1Configuration.Builder.() -> kotlin.Unit) {
this.nas1Configuration = aws.sdk.kotlin.services.finspace.model.KxNas1Configuration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy