
commonMain.aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Information about the progress of a pre-upgrade dry run analysis.
*/
public class DryRunProgressStatus private constructor(builder: Builder) {
/**
* The timestamp when the dry run was initiated.
*/
public val creationDate: kotlin.String = requireNotNull(builder.creationDate) { "A non-null value must be provided for creationDate" }
/**
* The unique identifier of the dry run.
*/
public val dryRunId: kotlin.String = requireNotNull(builder.dryRunId) { "A non-null value must be provided for dryRunId" }
/**
* The current status of the dry run.
*/
public val dryRunStatus: kotlin.String = requireNotNull(builder.dryRunStatus) { "A non-null value must be provided for dryRunStatus" }
/**
* The timestamp when the dry run was last updated.
*/
public val updateDate: kotlin.String = requireNotNull(builder.updateDate) { "A non-null value must be provided for updateDate" }
/**
* Any validation failures that occurred as a result of the dry run.
*/
public val validationFailures: List? = builder.validationFailures
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DryRunProgressStatus(")
append("creationDate=$creationDate,")
append("dryRunId=$dryRunId,")
append("dryRunStatus=$dryRunStatus,")
append("updateDate=$updateDate,")
append("validationFailures=$validationFailures")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate.hashCode()
result = 31 * result + (dryRunId.hashCode())
result = 31 * result + (dryRunStatus.hashCode())
result = 31 * result + (updateDate.hashCode())
result = 31 * result + (validationFailures?.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 DryRunProgressStatus
if (creationDate != other.creationDate) return false
if (dryRunId != other.dryRunId) return false
if (dryRunStatus != other.dryRunStatus) return false
if (updateDate != other.updateDate) return false
if (validationFailures != other.validationFailures) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus = Builder(this).apply(block).build()
public class Builder {
/**
* The timestamp when the dry run was initiated.
*/
public var creationDate: kotlin.String? = null
/**
* The unique identifier of the dry run.
*/
public var dryRunId: kotlin.String? = null
/**
* The current status of the dry run.
*/
public var dryRunStatus: kotlin.String? = null
/**
* The timestamp when the dry run was last updated.
*/
public var updateDate: kotlin.String? = null
/**
* Any validation failures that occurred as a result of the dry run.
*/
public var validationFailures: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus) : this() {
this.creationDate = x.creationDate
this.dryRunId = x.dryRunId
this.dryRunStatus = x.dryRunStatus
this.updateDate = x.updateDate
this.validationFailures = x.validationFailures
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus = DryRunProgressStatus(this)
internal fun correctErrors(): Builder {
if (creationDate == null) creationDate = ""
if (dryRunId == null) dryRunId = ""
if (dryRunStatus == null) dryRunStatus = ""
if (updateDate == null) updateDate = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy