commonMain.aws.sdk.kotlin.services.fsx.model.CreateAggregateConfiguration.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
/**
* Used to specify the configuration options for an FSx for ONTAP volume's storage aggregate or aggregates.
*/
public class CreateAggregateConfiguration private constructor(builder: Builder) {
/**
* Used to specify the names of aggregates on which the volume will be created.
*/
public val aggregates: List? = builder.aggregates
/**
* Used to explicitly set the number of constituents within the FlexGroup per storage aggregate. This field is optional when creating a FlexGroup volume. If unspecified, the default value will be 8. This field cannot be provided when creating a FlexVol volume.
*/
public val constituentsPerAggregate: kotlin.Int? = builder.constituentsPerAggregate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.CreateAggregateConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAggregateConfiguration(")
append("aggregates=$aggregates,")
append("constituentsPerAggregate=$constituentsPerAggregate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregates?.hashCode() ?: 0
result = 31 * result + (constituentsPerAggregate ?: 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 CreateAggregateConfiguration
if (aggregates != other.aggregates) return false
if (constituentsPerAggregate != other.constituentsPerAggregate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.CreateAggregateConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Used to specify the names of aggregates on which the volume will be created.
*/
public var aggregates: List? = null
/**
* Used to explicitly set the number of constituents within the FlexGroup per storage aggregate. This field is optional when creating a FlexGroup volume. If unspecified, the default value will be 8. This field cannot be provided when creating a FlexVol volume.
*/
public var constituentsPerAggregate: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.CreateAggregateConfiguration) : this() {
this.aggregates = x.aggregates
this.constituentsPerAggregate = x.constituentsPerAggregate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.CreateAggregateConfiguration = CreateAggregateConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}