
commonMain.aws.sdk.kotlin.services.ssm.model.ResultAttribute.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
/**
* The inventory item result attribute.
*/
public class ResultAttribute private constructor(builder: Builder) {
/**
* Name of the inventory item type. Valid value: `AWS:InstanceInformation`. Default Value: `AWS:InstanceInformation`.
*/
public val typeName: kotlin.String = requireNotNull(builder.typeName) { "A non-null value must be provided for typeName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ResultAttribute = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResultAttribute(")
append("typeName=$typeName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = typeName.hashCode()
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 ResultAttribute
if (typeName != other.typeName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ResultAttribute = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Name of the inventory item type. Valid value: `AWS:InstanceInformation`. Default Value: `AWS:InstanceInformation`.
*/
public var typeName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ResultAttribute) : this() {
this.typeName = x.typeName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ResultAttribute = ResultAttribute(this)
internal fun correctErrors(): Builder {
if (typeName == null) typeName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy