
commonMain.aws.sdk.kotlin.services.ssm.model.OpsItemDataValue.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object that defines the value of the key and its type in the OperationalData map.
*/
public class OpsItemDataValue private constructor(builder: Builder) {
/**
* The type of key-value pair. Valid types include `SearchableString` and `String`.
*/
public val type: aws.sdk.kotlin.services.ssm.model.OpsItemDataType? = builder.type
/**
* The value of the OperationalData key.
*/
public val value: kotlin.String? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.OpsItemDataValue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OpsItemDataValue(")
append("type=$type,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = type?.hashCode() ?: 0
result = 31 * result + (value?.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 OpsItemDataValue
if (type != other.type) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.OpsItemDataValue = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of key-value pair. Valid types include `SearchableString` and `String`.
*/
public var type: aws.sdk.kotlin.services.ssm.model.OpsItemDataType? = null
/**
* The value of the OperationalData key.
*/
public var value: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.OpsItemDataValue) : this() {
this.type = x.type
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.OpsItemDataValue = OpsItemDataValue(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy