
commonMain.aws.sdk.kotlin.services.opensearch.model.DescribeDomainChangeProgressResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* The result of a `DescribeDomainChangeProgress` request. Contains progress information for the requested domain change.
*/
public class DescribeDomainChangeProgressResponse private constructor(builder: Builder) {
/**
* Container for information about the stages of a configuration change happening on a domain.
*/
public val changeProgressStatus: aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails? = builder.changeProgressStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.DescribeDomainChangeProgressResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDomainChangeProgressResponse(")
append("changeProgressStatus=$changeProgressStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeProgressStatus?.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 DescribeDomainChangeProgressResponse
if (changeProgressStatus != other.changeProgressStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.DescribeDomainChangeProgressResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Container for information about the stages of a configuration change happening on a domain.
*/
public var changeProgressStatus: aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DescribeDomainChangeProgressResponse) : this() {
this.changeProgressStatus = x.changeProgressStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.DescribeDomainChangeProgressResponse = DescribeDomainChangeProgressResponse(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails] inside the given [block]
*/
public fun changeProgressStatus(block: aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails.Builder.() -> kotlin.Unit) {
this.changeProgressStatus = aws.sdk.kotlin.services.opensearch.model.ChangeProgressStatusDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy