commonMain.aws.sdk.kotlin.services.redshift.model.NodeConfigurationOption.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A list of node configurations.
*/
public class NodeConfigurationOption private constructor(builder: Builder) {
/**
* The estimated disk utilizaton percentage.
*/
public val estimatedDiskUtilizationPercent: kotlin.Double? = builder.estimatedDiskUtilizationPercent
/**
* The category of the node configuration recommendation.
*/
public val mode: aws.sdk.kotlin.services.redshift.model.Mode? = builder.mode
/**
* The node type, such as, "ra3.4xlarge".
*/
public val nodeType: kotlin.String? = builder.nodeType
/**
* The number of nodes.
*/
public val numberOfNodes: kotlin.Int? = builder.numberOfNodes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.NodeConfigurationOption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NodeConfigurationOption(")
append("estimatedDiskUtilizationPercent=$estimatedDiskUtilizationPercent,")
append("mode=$mode,")
append("nodeType=$nodeType,")
append("numberOfNodes=$numberOfNodes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = estimatedDiskUtilizationPercent?.hashCode() ?: 0
result = 31 * result + (mode?.hashCode() ?: 0)
result = 31 * result + (nodeType?.hashCode() ?: 0)
result = 31 * result + (numberOfNodes ?: 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 NodeConfigurationOption
if (!(estimatedDiskUtilizationPercent?.equals(other.estimatedDiskUtilizationPercent) ?: (other.estimatedDiskUtilizationPercent == null))) return false
if (mode != other.mode) return false
if (nodeType != other.nodeType) return false
if (numberOfNodes != other.numberOfNodes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.NodeConfigurationOption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The estimated disk utilizaton percentage.
*/
public var estimatedDiskUtilizationPercent: kotlin.Double? = null
/**
* The category of the node configuration recommendation.
*/
public var mode: aws.sdk.kotlin.services.redshift.model.Mode? = null
/**
* The node type, such as, "ra3.4xlarge".
*/
public var nodeType: kotlin.String? = null
/**
* The number of nodes.
*/
public var numberOfNodes: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.NodeConfigurationOption) : this() {
this.estimatedDiskUtilizationPercent = x.estimatedDiskUtilizationPercent
this.mode = x.mode
this.nodeType = x.nodeType
this.numberOfNodes = x.numberOfNodes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.NodeConfigurationOption = NodeConfigurationOption(this)
internal fun correctErrors(): Builder {
return this
}
}
}