
commonMain.aws.sdk.kotlin.services.opensearch.model.CancelledChangeProperty.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A property change that was cancelled for an Amazon OpenSearch Service domain.
*/
public class CancelledChangeProperty private constructor(builder: Builder) {
/**
* The current value of the property, after the change was cancelled.
*/
public val activeValue: kotlin.String? = builder.activeValue
/**
* The pending value of the property that was cancelled. This would have been the eventual value of the property if the chance had not been cancelled.
*/
public val cancelledValue: kotlin.String? = builder.cancelledValue
/**
* The name of the property whose change was cancelled.
*/
public val propertyName: kotlin.String? = builder.propertyName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.CancelledChangeProperty = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CancelledChangeProperty(")
append("activeValue=$activeValue,")
append("cancelledValue=$cancelledValue,")
append("propertyName=$propertyName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = activeValue?.hashCode() ?: 0
result = 31 * result + (cancelledValue?.hashCode() ?: 0)
result = 31 * result + (propertyName?.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 CancelledChangeProperty
if (activeValue != other.activeValue) return false
if (cancelledValue != other.cancelledValue) return false
if (propertyName != other.propertyName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.CancelledChangeProperty = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current value of the property, after the change was cancelled.
*/
public var activeValue: kotlin.String? = null
/**
* The pending value of the property that was cancelled. This would have been the eventual value of the property if the chance had not been cancelled.
*/
public var cancelledValue: kotlin.String? = null
/**
* The name of the property whose change was cancelled.
*/
public var propertyName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.CancelledChangeProperty) : this() {
this.activeValue = x.activeValue
this.cancelledValue = x.cancelledValue
this.propertyName = x.propertyName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.CancelledChangeProperty = CancelledChangeProperty(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy