commonMain.aws.sdk.kotlin.services.neptune.model.DbInstanceStatusInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides a list of status information for a DB instance.
*/
public class DbInstanceStatusInfo private constructor(builder: Builder) {
/**
* Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.
*/
public val message: kotlin.String? = builder.message
/**
* Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.
*/
public val normal: kotlin.Boolean? = builder.normal
/**
* Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.
*/
public val status: kotlin.String? = builder.status
/**
* This value is currently "read replication."
*/
public val statusType: kotlin.String? = builder.statusType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.DbInstanceStatusInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DbInstanceStatusInfo(")
append("message=$message,")
append("normal=$normal,")
append("status=$status,")
append("statusType=$statusType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
result = 31 * result + (normal?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusType?.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 DbInstanceStatusInfo
if (message != other.message) return false
if (normal != other.normal) return false
if (status != other.status) return false
if (statusType != other.statusType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.DbInstanceStatusInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.
*/
public var message: kotlin.String? = null
/**
* Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.
*/
public var normal: kotlin.Boolean? = null
/**
* Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.
*/
public var status: kotlin.String? = null
/**
* This value is currently "read replication."
*/
public var statusType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.DbInstanceStatusInfo) : this() {
this.message = x.message
this.normal = x.normal
this.status = x.status
this.statusType = x.statusType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.DbInstanceStatusInfo = DbInstanceStatusInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}