
commonMain.aws.sdk.kotlin.services.opensearch.model.DomainNodesStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Container for information about nodes on the domain.
*/
public class DomainNodesStatus private constructor(builder: Builder) {
/**
* The Availability Zone of the node.
*/
public val availabilityZone: kotlin.String? = builder.availabilityZone
/**
* The instance type information of the node.
*/
public val instanceType: aws.sdk.kotlin.services.opensearch.model.OpenSearchPartitionInstanceType? = builder.instanceType
/**
* The ID of the node.
*/
public val nodeId: kotlin.String? = builder.nodeId
/**
* Indicates if the node is active or in standby.
*/
public val nodeStatus: aws.sdk.kotlin.services.opensearch.model.NodeStatus? = builder.nodeStatus
/**
* Indicates whether the nodes is a data, master, or ultrawarm node.
*/
public val nodeType: aws.sdk.kotlin.services.opensearch.model.NodeType? = builder.nodeType
/**
* The storage size of the node, in GiB.
*/
public val storageSize: kotlin.String? = builder.storageSize
/**
* Indicates if the node has EBS or instance storage.
*/
public val storageType: kotlin.String? = builder.storageType
/**
* If the nodes has EBS storage, indicates if the volume type is GP2 or GP3. Only applicable for data nodes.
*/
public val storageVolumeType: aws.sdk.kotlin.services.opensearch.model.VolumeType? = builder.storageVolumeType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.DomainNodesStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DomainNodesStatus(")
append("availabilityZone=$availabilityZone,")
append("instanceType=$instanceType,")
append("nodeId=$nodeId,")
append("nodeStatus=$nodeStatus,")
append("nodeType=$nodeType,")
append("storageSize=$storageSize,")
append("storageType=$storageType,")
append("storageVolumeType=$storageVolumeType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZone?.hashCode() ?: 0
result = 31 * result + (instanceType?.hashCode() ?: 0)
result = 31 * result + (nodeId?.hashCode() ?: 0)
result = 31 * result + (nodeStatus?.hashCode() ?: 0)
result = 31 * result + (nodeType?.hashCode() ?: 0)
result = 31 * result + (storageSize?.hashCode() ?: 0)
result = 31 * result + (storageType?.hashCode() ?: 0)
result = 31 * result + (storageVolumeType?.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 DomainNodesStatus
if (availabilityZone != other.availabilityZone) return false
if (instanceType != other.instanceType) return false
if (nodeId != other.nodeId) return false
if (nodeStatus != other.nodeStatus) return false
if (nodeType != other.nodeType) return false
if (storageSize != other.storageSize) return false
if (storageType != other.storageType) return false
if (storageVolumeType != other.storageVolumeType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.DomainNodesStatus = Builder(this).apply(block).build()
public class Builder {
/**
* The Availability Zone of the node.
*/
public var availabilityZone: kotlin.String? = null
/**
* The instance type information of the node.
*/
public var instanceType: aws.sdk.kotlin.services.opensearch.model.OpenSearchPartitionInstanceType? = null
/**
* The ID of the node.
*/
public var nodeId: kotlin.String? = null
/**
* Indicates if the node is active or in standby.
*/
public var nodeStatus: aws.sdk.kotlin.services.opensearch.model.NodeStatus? = null
/**
* Indicates whether the nodes is a data, master, or ultrawarm node.
*/
public var nodeType: aws.sdk.kotlin.services.opensearch.model.NodeType? = null
/**
* The storage size of the node, in GiB.
*/
public var storageSize: kotlin.String? = null
/**
* Indicates if the node has EBS or instance storage.
*/
public var storageType: kotlin.String? = null
/**
* If the nodes has EBS storage, indicates if the volume type is GP2 or GP3. Only applicable for data nodes.
*/
public var storageVolumeType: aws.sdk.kotlin.services.opensearch.model.VolumeType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DomainNodesStatus) : this() {
this.availabilityZone = x.availabilityZone
this.instanceType = x.instanceType
this.nodeId = x.nodeId
this.nodeStatus = x.nodeStatus
this.nodeType = x.nodeType
this.storageSize = x.storageSize
this.storageType = x.storageType
this.storageVolumeType = x.storageVolumeType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.DomainNodesStatus = DomainNodesStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy