commonMain.aws.sdk.kotlin.services.fsx.model.UpdateVolumeRequest.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 UpdateVolumeRequest 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 OpenZFS volume. OpenZFS root volumes are automatically named `FSX`. Child volume names must be unique among their parent volume's children. The name of the volume is part of the mount string for the OpenZFS volume.
*/
public val name: kotlin.String? = builder.name
/**
* The configuration of the ONTAP volume that you are updating.
*/
public val ontapConfiguration: aws.sdk.kotlin.services.fsx.model.UpdateOntapVolumeConfiguration? = builder.ontapConfiguration
/**
* The configuration of the OpenZFS volume that you are updating.
*/
public val openZfsConfiguration: aws.sdk.kotlin.services.fsx.model.UpdateOpenZfsVolumeConfiguration? = builder.openZfsConfiguration
/**
* The ID of the volume that you want to update, in the format `fsvol-0123456789abcdef0`.
*/
public val volumeId: kotlin.String? = builder.volumeId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.UpdateVolumeRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateVolumeRequest(")
append("clientRequestToken=$clientRequestToken,")
append("name=$name,")
append("ontapConfiguration=$ontapConfiguration,")
append("openZfsConfiguration=$openZfsConfiguration,")
append("volumeId=$volumeId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (ontapConfiguration?.hashCode() ?: 0)
result = 31 * result + (openZfsConfiguration?.hashCode() ?: 0)
result = 31 * result + (volumeId?.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 UpdateVolumeRequest
if (clientRequestToken != other.clientRequestToken) return false
if (name != other.name) return false
if (ontapConfiguration != other.ontapConfiguration) return false
if (openZfsConfiguration != other.openZfsConfiguration) return false
if (volumeId != other.volumeId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.UpdateVolumeRequest = 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 OpenZFS volume. OpenZFS root volumes are automatically named `FSX`. Child volume names must be unique among their parent volume's children. The name of the volume is part of the mount string for the OpenZFS volume.
*/
public var name: kotlin.String? = null
/**
* The configuration of the ONTAP volume that you are updating.
*/
public var ontapConfiguration: aws.sdk.kotlin.services.fsx.model.UpdateOntapVolumeConfiguration? = null
/**
* The configuration of the OpenZFS volume that you are updating.
*/
public var openZfsConfiguration: aws.sdk.kotlin.services.fsx.model.UpdateOpenZfsVolumeConfiguration? = null
/**
* The ID of the volume that you want to update, in the format `fsvol-0123456789abcdef0`.
*/
public var volumeId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.UpdateVolumeRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.name = x.name
this.ontapConfiguration = x.ontapConfiguration
this.openZfsConfiguration = x.openZfsConfiguration
this.volumeId = x.volumeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.UpdateVolumeRequest = UpdateVolumeRequest(this)
/**
* construct an [aws.sdk.kotlin.services.fsx.model.UpdateOntapVolumeConfiguration] inside the given [block]
*/
public fun ontapConfiguration(block: aws.sdk.kotlin.services.fsx.model.UpdateOntapVolumeConfiguration.Builder.() -> kotlin.Unit) {
this.ontapConfiguration = aws.sdk.kotlin.services.fsx.model.UpdateOntapVolumeConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.fsx.model.UpdateOpenZfsVolumeConfiguration] inside the given [block]
*/
public fun openZfsConfiguration(block: aws.sdk.kotlin.services.fsx.model.UpdateOpenZfsVolumeConfiguration.Builder.() -> kotlin.Unit) {
this.openZfsConfiguration = aws.sdk.kotlin.services.fsx.model.UpdateOpenZfsVolumeConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}