
commonMain.aws.sdk.kotlin.services.opensearch.model.UpdateDomainConfigResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* The results of an `UpdateDomain` request. Contains the status of the domain being updated.
*/
public class UpdateDomainConfigResponse private constructor(builder: Builder) {
/**
* The status of the updated domain.
*/
public val domainConfig: aws.sdk.kotlin.services.opensearch.model.DomainConfig? = builder.domainConfig
/**
* The status of the dry run being performed on the domain, if any.
*/
public val dryRunProgressStatus: aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus? = builder.dryRunProgressStatus
/**
* Results of the dry run performed in the update domain request.
*/
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.UpdateDomainConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDomainConfigResponse(")
append("domainConfig=$domainConfig,")
append("dryRunProgressStatus=$dryRunProgressStatus,")
append("dryRunResults=$dryRunResults")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainConfig?.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 UpdateDomainConfigResponse
if (domainConfig != other.domainConfig) 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.UpdateDomainConfigResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The status of the updated domain.
*/
public var domainConfig: aws.sdk.kotlin.services.opensearch.model.DomainConfig? = null
/**
* The status of the dry run being performed on the domain, if any.
*/
public var dryRunProgressStatus: aws.sdk.kotlin.services.opensearch.model.DryRunProgressStatus? = null
/**
* Results of the dry run performed in the update domain request.
*/
public var dryRunResults: aws.sdk.kotlin.services.opensearch.model.DryRunResults? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.UpdateDomainConfigResponse) : this() {
this.domainConfig = x.domainConfig
this.dryRunProgressStatus = x.dryRunProgressStatus
this.dryRunResults = x.dryRunResults
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.UpdateDomainConfigResponse = UpdateDomainConfigResponse(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.DomainConfig] inside the given [block]
*/
public fun domainConfig(block: aws.sdk.kotlin.services.opensearch.model.DomainConfig.Builder.() -> kotlin.Unit) {
this.domainConfig = aws.sdk.kotlin.services.opensearch.model.DomainConfig.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