commonMain.aws.sdk.kotlin.services.nimble.model.VolumeConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Custom volume configuration for the root volumes that are attached to streaming sessions.
*
* This parameter is only allowed when `sessionPersistenceMode` is `ACTIVATED`.
*/
public class VolumeConfiguration private constructor(builder: Builder) {
/**
* The number of I/O operations per second for the root volume that is attached to streaming session.
*/
public val iops: kotlin.Int = builder.iops
/**
* The size of the root volume that is attached to the streaming session. The root volume size is measured in GiBs.
*/
public val size: kotlin.Int = builder.size
/**
* The throughput to provision for the root volume that is attached to the streaming session. The throughput is measured in MiB/s.
*/
public val throughput: kotlin.Int = builder.throughput
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.VolumeConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VolumeConfiguration(")
append("iops=$iops,")
append("size=$size,")
append("throughput=$throughput")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = iops
result = 31 * result + (size)
result = 31 * result + (throughput)
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 VolumeConfiguration
if (iops != other.iops) return false
if (size != other.size) return false
if (throughput != other.throughput) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.VolumeConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of I/O operations per second for the root volume that is attached to streaming session.
*/
public var iops: kotlin.Int = 3000
/**
* The size of the root volume that is attached to the streaming session. The root volume size is measured in GiBs.
*/
public var size: kotlin.Int = 500
/**
* The throughput to provision for the root volume that is attached to the streaming session. The throughput is measured in MiB/s.
*/
public var throughput: kotlin.Int = 125
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.VolumeConfiguration) : this() {
this.iops = x.iops
this.size = x.size
this.throughput = x.throughput
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.VolumeConfiguration = VolumeConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}