
commonMain.aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The progress details of a specific domain configuration change.
*/
public class ChangeProgressStatusDetails private constructor(builder: Builder) {
/**
* The unique change identifier associated with a specific domain configuration change.
*/
public val changeId: kotlin.String? = builder.changeId
/**
* The specific stages that the domain is going through to perform the configuration change.
*/
public val changeProgressStages: List? = builder.changeProgressStages
/**
* The list of properties in the domain configuration change that have completed.
*/
public val completedProperties: List? = builder.completedProperties
/**
* The list of properties in the domain configuration change that are still pending.
*/
public val pendingProperties: List? = builder.pendingProperties
/**
* The time at which the configuration change is made on the domain.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The overall status of the domain configuration change.
*/
public val status: aws.sdk.kotlin.services.opensearch.model.OverallChangeStatus? = builder.status
/**
* The total number of stages required for the configuration change.
*/
public val totalNumberOfStages: kotlin.Int = builder.totalNumberOfStages
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChangeProgressStatusDetails(")
append("changeId=$changeId,")
append("changeProgressStages=$changeProgressStages,")
append("completedProperties=$completedProperties,")
append("pendingProperties=$pendingProperties,")
append("startTime=$startTime,")
append("status=$status,")
append("totalNumberOfStages=$totalNumberOfStages")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeId?.hashCode() ?: 0
result = 31 * result + (changeProgressStages?.hashCode() ?: 0)
result = 31 * result + (completedProperties?.hashCode() ?: 0)
result = 31 * result + (pendingProperties?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (totalNumberOfStages)
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 ChangeProgressStatusDetails
if (changeId != other.changeId) return false
if (changeProgressStages != other.changeProgressStages) return false
if (completedProperties != other.completedProperties) return false
if (pendingProperties != other.pendingProperties) return false
if (startTime != other.startTime) return false
if (status != other.status) return false
if (totalNumberOfStages != other.totalNumberOfStages) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The unique change identifier associated with a specific domain configuration change.
*/
public var changeId: kotlin.String? = null
/**
* The specific stages that the domain is going through to perform the configuration change.
*/
public var changeProgressStages: List? = null
/**
* The list of properties in the domain configuration change that have completed.
*/
public var completedProperties: List? = null
/**
* The list of properties in the domain configuration change that are still pending.
*/
public var pendingProperties: List? = null
/**
* The time at which the configuration change is made on the domain.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The overall status of the domain configuration change.
*/
public var status: aws.sdk.kotlin.services.opensearch.model.OverallChangeStatus? = null
/**
* The total number of stages required for the configuration change.
*/
public var totalNumberOfStages: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails) : this() {
this.changeId = x.changeId
this.changeProgressStages = x.changeProgressStages
this.completedProperties = x.completedProperties
this.pendingProperties = x.pendingProperties
this.startTime = x.startTime
this.status = x.status
this.totalNumberOfStages = x.totalNumberOfStages
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails = ChangeProgressStatusDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy