commonMain.aws.sdk.kotlin.services.codecatalyst.model.PersistentStorageConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codecatalyst-jvm Show documentation
Show all versions of codecatalyst-jvm Show documentation
The AWS SDK for Kotlin client for CodeCatalyst
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecatalyst.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the configuration of persistent storage for a Dev Environment.
*/
public class PersistentStorageConfiguration private constructor(builder: Builder) {
/**
* The size of the persistent storage in gigabytes (specifically GiB).
*
* Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
*/
public val sizeInGib: kotlin.Int = requireNotNull(builder.sizeInGib) { "A non-null value must be provided for sizeInGib" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecatalyst.model.PersistentStorageConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PersistentStorageConfiguration(")
append("sizeInGib=$sizeInGib")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sizeInGib
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 PersistentStorageConfiguration
if (sizeInGib != other.sizeInGib) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecatalyst.model.PersistentStorageConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The size of the persistent storage in gigabytes (specifically GiB).
*
* Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.
*/
public var sizeInGib: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecatalyst.model.PersistentStorageConfiguration) : this() {
this.sizeInGib = x.sizeInGib
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecatalyst.model.PersistentStorageConfiguration = PersistentStorageConfiguration(this)
internal fun correctErrors(): Builder {
if (sizeInGib == null) sizeInGib = 0
return this
}
}
}