
commonMain.aws.sdk.kotlin.services.opensearch.model.DescribeDryRunProgressResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
public class DescribeDryRunProgressResponse private constructor(builder: Builder) {
/**
* Details about the changes you're planning to make on the domain.
*/
public val dryRunConfig: aws.sdk.kotlin.services.opensearch.model.DomainStatus? = builder.dryRunConfig
/**
* The current status of the dry run, including any validation errors.
*/
public val dryRunProgressStatus: aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus? = builder.dryRunProgressStatus
/**
* The results of the dry run.
*/
public val dryRunResults: aws.sdk.kotlin.services.opensearch.model.DryRunResults? = builder.dryRunResults
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.DescribeDryRunProgressResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDryRunProgressResponse(")
append("dryRunConfig=$dryRunConfig,")
append("dryRunProgressStatus=$dryRunProgressStatus,")
append("dryRunResults=$dryRunResults")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dryRunConfig?.hashCode() ?: 0
result = 31 * result + (dryRunProgressStatus?.hashCode() ?: 0)
result = 31 * result + (dryRunResults?.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 DescribeDryRunProgressResponse
if (dryRunConfig != other.dryRunConfig) return false
if (dryRunProgressStatus != other.dryRunProgressStatus) return false
if (dryRunResults != other.dryRunResults) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.DescribeDryRunProgressResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Details about the changes you're planning to make on the domain.
*/
public var dryRunConfig: aws.sdk.kotlin.services.opensearch.model.DomainStatus? = null
/**
* The current status of the dry run, including any validation errors.
*/
public var dryRunProgressStatus: aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus? = null
/**
* The results of the dry run.
*/
public var dryRunResults: aws.sdk.kotlin.services.opensearch.model.DryRunResults? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DescribeDryRunProgressResponse) : this() {
this.dryRunConfig = x.dryRunConfig
this.dryRunProgressStatus = x.dryRunProgressStatus
this.dryRunResults = x.dryRunResults
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.DescribeDryRunProgressResponse = DescribeDryRunProgressResponse(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.DomainStatus] inside the given [block]
*/
public fun dryRunConfig(block: aws.sdk.kotlin.services.opensearch.model.DomainStatus.Builder.() -> kotlin.Unit) {
this.dryRunConfig = aws.sdk.kotlin.services.opensearch.model.DomainStatus.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus] inside the given [block]
*/
public fun dryRunProgressStatus(block: aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus.Builder.() -> kotlin.Unit) {
this.dryRunProgressStatus = aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.DryRunResults] inside the given [block]
*/
public fun dryRunResults(block: aws.sdk.kotlin.services.opensearch.model.DryRunResults.Builder.() -> kotlin.Unit) {
this.dryRunResults = aws.sdk.kotlin.services.opensearch.model.DryRunResults.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy