commonMain.aws.sdk.kotlin.services.deadline.model.Ec2EbsVolume.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the EBS volume.
*/
public class Ec2EbsVolume private constructor(builder: Builder) {
/**
* The IOPS per volume.
*/
public val iops: kotlin.Int = builder.iops
/**
* The EBS volume size in GiB.
*/
public val sizeGib: kotlin.Int = builder.sizeGib
/**
* The throughput per volume in MiB.
*/
public val throughputMib: kotlin.Int = builder.throughputMib
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.Ec2EbsVolume = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Ec2EbsVolume(")
append("iops=$iops,")
append("sizeGib=$sizeGib,")
append("throughputMib=$throughputMib")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = iops
result = 31 * result + (sizeGib)
result = 31 * result + (throughputMib)
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 Ec2EbsVolume
if (iops != other.iops) return false
if (sizeGib != other.sizeGib) return false
if (throughputMib != other.throughputMib) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.Ec2EbsVolume = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The IOPS per volume.
*/
public var iops: kotlin.Int = 3000
/**
* The EBS volume size in GiB.
*/
public var sizeGib: kotlin.Int = 250
/**
* The throughput per volume in MiB.
*/
public var throughputMib: kotlin.Int = 125
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.Ec2EbsVolume) : this() {
this.iops = x.iops
this.sizeGib = x.sizeGib
this.throughputMib = x.throughputMib
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.Ec2EbsVolume = Ec2EbsVolume(this)
internal fun correctErrors(): Builder {
return this
}
}
}