
commonMain.aws.sdk.kotlin.services.opensearch.model.StartServiceSoftwareUpdateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Represents the output of a `StartServiceSoftwareUpdate` operation. Contains the status of the update.
*/
public class StartServiceSoftwareUpdateResponse private constructor(builder: Builder) {
/**
* The current status of the OpenSearch Service software update.
*/
public val serviceSoftwareOptions: aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions? = builder.serviceSoftwareOptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.StartServiceSoftwareUpdateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartServiceSoftwareUpdateResponse(")
append("serviceSoftwareOptions=$serviceSoftwareOptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = serviceSoftwareOptions?.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 StartServiceSoftwareUpdateResponse
if (serviceSoftwareOptions != other.serviceSoftwareOptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.StartServiceSoftwareUpdateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The current status of the OpenSearch Service software update.
*/
public var serviceSoftwareOptions: aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.StartServiceSoftwareUpdateResponse) : this() {
this.serviceSoftwareOptions = x.serviceSoftwareOptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.StartServiceSoftwareUpdateResponse = StartServiceSoftwareUpdateResponse(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions] inside the given [block]
*/
public fun serviceSoftwareOptions(block: aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions.Builder.() -> kotlin.Unit) {
this.serviceSoftwareOptions = aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy