
commonMain.aws.sdk.kotlin.services.ssm.model.InstanceAssociation.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
/**
* One or more association documents on the managed node.
*/
public class InstanceAssociation private constructor(builder: Builder) {
/**
* The association ID.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* Version information for the association on the managed node.
*/
public val associationVersion: kotlin.String? = builder.associationVersion
/**
* The content of the association document for the managed nodes.
*/
public val content: kotlin.String? = builder.content
/**
* The managed node ID.
*/
public val instanceId: kotlin.String? = builder.instanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.InstanceAssociation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstanceAssociation(")
append("associationId=$associationId,")
append("associationVersion=$associationVersion,")
append("content=$content,")
append("instanceId=$instanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (associationVersion?.hashCode() ?: 0)
result = 31 * result + (content?.hashCode() ?: 0)
result = 31 * result + (instanceId?.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 InstanceAssociation
if (associationId != other.associationId) return false
if (associationVersion != other.associationVersion) return false
if (content != other.content) return false
if (instanceId != other.instanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.InstanceAssociation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The association ID.
*/
public var associationId: kotlin.String? = null
/**
* Version information for the association on the managed node.
*/
public var associationVersion: kotlin.String? = null
/**
* The content of the association document for the managed nodes.
*/
public var content: kotlin.String? = null
/**
* The managed node ID.
*/
public var instanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.InstanceAssociation) : this() {
this.associationId = x.associationId
this.associationVersion = x.associationVersion
this.content = x.content
this.instanceId = x.instanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.InstanceAssociation = InstanceAssociation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy