commonMain.aws.sdk.kotlin.services.fsx.model.CreateFileCacheLustreConfiguration.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
/**
* The Amazon File Cache configuration for the cache that you are creating.
*/
public class CreateFileCacheLustreConfiguration private constructor(builder: Builder) {
/**
* Specifies the cache deployment type, which must be `CACHE_1`.
*/
public val deploymentType: aws.sdk.kotlin.services.fsx.model.FileCacheLustreDeploymentType? = builder.deploymentType
/**
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*/
public val metadataConfiguration: aws.sdk.kotlin.services.fsx.model.FileCacheLustreMetadataConfiguration? = builder.metadataConfiguration
/**
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in MB/s/TiB. The only supported value is `1000`.
*/
public val perUnitStorageThroughput: kotlin.Int? = builder.perUnitStorageThroughput
/**
* A recurring weekly time, in the format `D:HH:MM`.
*
* `D` is the day of the week, for which 1 represents Monday and 7 represents Sunday. For further details, see [the ISO-8601 spec as described on Wikipedia](https://en.wikipedia.org/wiki/ISO_week_date).
*
* `HH` is the zero-padded hour of the day (0-23), and `MM` is the zero-padded minute of the hour.
*
* For example, `1:05:00` specifies maintenance at 5 AM Monday.
*/
public val weeklyMaintenanceStartTime: kotlin.String? = builder.weeklyMaintenanceStartTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.CreateFileCacheLustreConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateFileCacheLustreConfiguration(")
append("deploymentType=$deploymentType,")
append("metadataConfiguration=$metadataConfiguration,")
append("perUnitStorageThroughput=$perUnitStorageThroughput,")
append("weeklyMaintenanceStartTime=$weeklyMaintenanceStartTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentType?.hashCode() ?: 0
result = 31 * result + (metadataConfiguration?.hashCode() ?: 0)
result = 31 * result + (perUnitStorageThroughput ?: 0)
result = 31 * result + (weeklyMaintenanceStartTime?.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 CreateFileCacheLustreConfiguration
if (deploymentType != other.deploymentType) return false
if (metadataConfiguration != other.metadataConfiguration) return false
if (perUnitStorageThroughput != other.perUnitStorageThroughput) return false
if (weeklyMaintenanceStartTime != other.weeklyMaintenanceStartTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.CreateFileCacheLustreConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the cache deployment type, which must be `CACHE_1`.
*/
public var deploymentType: aws.sdk.kotlin.services.fsx.model.FileCacheLustreDeploymentType? = null
/**
* The configuration for a Lustre MDT (Metadata Target) storage volume.
*/
public var metadataConfiguration: aws.sdk.kotlin.services.fsx.model.FileCacheLustreMetadataConfiguration? = null
/**
* Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in MB/s/TiB. The only supported value is `1000`.
*/
public var perUnitStorageThroughput: kotlin.Int? = null
/**
* A recurring weekly time, in the format `D:HH:MM`.
*
* `D` is the day of the week, for which 1 represents Monday and 7 represents Sunday. For further details, see [the ISO-8601 spec as described on Wikipedia](https://en.wikipedia.org/wiki/ISO_week_date).
*
* `HH` is the zero-padded hour of the day (0-23), and `MM` is the zero-padded minute of the hour.
*
* For example, `1:05:00` specifies maintenance at 5 AM Monday.
*/
public var weeklyMaintenanceStartTime: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.CreateFileCacheLustreConfiguration) : this() {
this.deploymentType = x.deploymentType
this.metadataConfiguration = x.metadataConfiguration
this.perUnitStorageThroughput = x.perUnitStorageThroughput
this.weeklyMaintenanceStartTime = x.weeklyMaintenanceStartTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.CreateFileCacheLustreConfiguration = CreateFileCacheLustreConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.fsx.model.FileCacheLustreMetadataConfiguration] inside the given [block]
*/
public fun metadataConfiguration(block: aws.sdk.kotlin.services.fsx.model.FileCacheLustreMetadataConfiguration.Builder.() -> kotlin.Unit) {
this.metadataConfiguration = aws.sdk.kotlin.services.fsx.model.FileCacheLustreMetadataConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}