
commonMain.aws.sdk.kotlin.services.ssm.model.InstanceAssociationStatusInfo.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Status information about the association.
*/
public class InstanceAssociationStatusInfo private constructor(builder: Builder) {
/**
* The association ID.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The name of the association applied to the managed node.
*/
public val associationName: kotlin.String? = builder.associationName
/**
* The version of the association applied to the managed node.
*/
public val associationVersion: kotlin.String? = builder.associationVersion
/**
* Detailed status information about the association.
*/
public val detailedStatus: kotlin.String? = builder.detailedStatus
/**
* The association document versions.
*/
public val documentVersion: kotlin.String? = builder.documentVersion
/**
* An error code returned by the request to create the association.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* The date the association ran.
*/
public val executionDate: aws.smithy.kotlin.runtime.time.Instant? = builder.executionDate
/**
* Summary information about association execution.
*/
public val executionSummary: kotlin.String? = builder.executionSummary
/**
* The managed node ID where the association was created.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The name of the association.
*/
public val name: kotlin.String? = builder.name
/**
* A URL for an S3 bucket where you want to store the results of this request.
*/
public val outputUrl: aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputUrl? = builder.outputUrl
/**
* Status information about the association.
*/
public val status: kotlin.String? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.InstanceAssociationStatusInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstanceAssociationStatusInfo(")
append("associationId=$associationId,")
append("associationName=$associationName,")
append("associationVersion=$associationVersion,")
append("detailedStatus=$detailedStatus,")
append("documentVersion=$documentVersion,")
append("errorCode=$errorCode,")
append("executionDate=$executionDate,")
append("executionSummary=$executionSummary,")
append("instanceId=$instanceId,")
append("name=$name,")
append("outputUrl=$outputUrl,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (associationName?.hashCode() ?: 0)
result = 31 * result + (associationVersion?.hashCode() ?: 0)
result = 31 * result + (detailedStatus?.hashCode() ?: 0)
result = 31 * result + (documentVersion?.hashCode() ?: 0)
result = 31 * result + (errorCode?.hashCode() ?: 0)
result = 31 * result + (executionDate?.hashCode() ?: 0)
result = 31 * result + (executionSummary?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (outputUrl?.hashCode() ?: 0)
result = 31 * result + (status?.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 InstanceAssociationStatusInfo
if (associationId != other.associationId) return false
if (associationName != other.associationName) return false
if (associationVersion != other.associationVersion) return false
if (detailedStatus != other.detailedStatus) return false
if (documentVersion != other.documentVersion) return false
if (errorCode != other.errorCode) return false
if (executionDate != other.executionDate) return false
if (executionSummary != other.executionSummary) return false
if (instanceId != other.instanceId) return false
if (name != other.name) return false
if (outputUrl != other.outputUrl) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.InstanceAssociationStatusInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The association ID.
*/
public var associationId: kotlin.String? = null
/**
* The name of the association applied to the managed node.
*/
public var associationName: kotlin.String? = null
/**
* The version of the association applied to the managed node.
*/
public var associationVersion: kotlin.String? = null
/**
* Detailed status information about the association.
*/
public var detailedStatus: kotlin.String? = null
/**
* The association document versions.
*/
public var documentVersion: kotlin.String? = null
/**
* An error code returned by the request to create the association.
*/
public var errorCode: kotlin.String? = null
/**
* The date the association ran.
*/
public var executionDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Summary information about association execution.
*/
public var executionSummary: kotlin.String? = null
/**
* The managed node ID where the association was created.
*/
public var instanceId: kotlin.String? = null
/**
* The name of the association.
*/
public var name: kotlin.String? = null
/**
* A URL for an S3 bucket where you want to store the results of this request.
*/
public var outputUrl: aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputUrl? = null
/**
* Status information about the association.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.InstanceAssociationStatusInfo) : this() {
this.associationId = x.associationId
this.associationName = x.associationName
this.associationVersion = x.associationVersion
this.detailedStatus = x.detailedStatus
this.documentVersion = x.documentVersion
this.errorCode = x.errorCode
this.executionDate = x.executionDate
this.executionSummary = x.executionSummary
this.instanceId = x.instanceId
this.name = x.name
this.outputUrl = x.outputUrl
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.InstanceAssociationStatusInfo = InstanceAssociationStatusInfo(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputUrl] inside the given [block]
*/
public fun outputUrl(block: aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputUrl.Builder.() -> kotlin.Unit) {
this.outputUrl = aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputUrl.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy