
commonMain.aws.sdk.kotlin.services.ssm.model.AssociationExecutionTarget.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
/**
* Includes information about the specified association execution.
*/
public class AssociationExecutionTarget private constructor(builder: Builder) {
/**
* The association ID.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The association version.
*/
public val associationVersion: kotlin.String? = builder.associationVersion
/**
* Detailed information about the execution status.
*/
public val detailedStatus: kotlin.String? = builder.detailedStatus
/**
* The execution ID.
*/
public val executionId: kotlin.String? = builder.executionId
/**
* The date of the last execution.
*/
public val lastExecutionDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastExecutionDate
/**
* The location where the association details are saved.
*/
public val outputSource: aws.sdk.kotlin.services.ssm.model.OutputSource? = builder.outputSource
/**
* The resource ID, for example, the managed node ID where the association ran.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* The resource type, for example, EC2.
*/
public val resourceType: kotlin.String? = builder.resourceType
/**
* The association execution status.
*/
public val status: kotlin.String? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.AssociationExecutionTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociationExecutionTarget(")
append("associationId=$associationId,")
append("associationVersion=$associationVersion,")
append("detailedStatus=$detailedStatus,")
append("executionId=$executionId,")
append("lastExecutionDate=$lastExecutionDate,")
append("outputSource=$outputSource,")
append("resourceId=$resourceId,")
append("resourceType=$resourceType,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (associationVersion?.hashCode() ?: 0)
result = 31 * result + (detailedStatus?.hashCode() ?: 0)
result = 31 * result + (executionId?.hashCode() ?: 0)
result = 31 * result + (lastExecutionDate?.hashCode() ?: 0)
result = 31 * result + (outputSource?.hashCode() ?: 0)
result = 31 * result + (resourceId?.hashCode() ?: 0)
result = 31 * result + (resourceType?.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 AssociationExecutionTarget
if (associationId != other.associationId) return false
if (associationVersion != other.associationVersion) return false
if (detailedStatus != other.detailedStatus) return false
if (executionId != other.executionId) return false
if (lastExecutionDate != other.lastExecutionDate) return false
if (outputSource != other.outputSource) return false
if (resourceId != other.resourceId) return false
if (resourceType != other.resourceType) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.AssociationExecutionTarget = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The association ID.
*/
public var associationId: kotlin.String? = null
/**
* The association version.
*/
public var associationVersion: kotlin.String? = null
/**
* Detailed information about the execution status.
*/
public var detailedStatus: kotlin.String? = null
/**
* The execution ID.
*/
public var executionId: kotlin.String? = null
/**
* The date of the last execution.
*/
public var lastExecutionDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The location where the association details are saved.
*/
public var outputSource: aws.sdk.kotlin.services.ssm.model.OutputSource? = null
/**
* The resource ID, for example, the managed node ID where the association ran.
*/
public var resourceId: kotlin.String? = null
/**
* The resource type, for example, EC2.
*/
public var resourceType: kotlin.String? = null
/**
* The association execution status.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.AssociationExecutionTarget) : this() {
this.associationId = x.associationId
this.associationVersion = x.associationVersion
this.detailedStatus = x.detailedStatus
this.executionId = x.executionId
this.lastExecutionDate = x.lastExecutionDate
this.outputSource = x.outputSource
this.resourceId = x.resourceId
this.resourceType = x.resourceType
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.AssociationExecutionTarget = AssociationExecutionTarget(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.OutputSource] inside the given [block]
*/
public fun outputSource(block: aws.sdk.kotlin.services.ssm.model.OutputSource.Builder.() -> kotlin.Unit) {
this.outputSource = aws.sdk.kotlin.services.ssm.model.OutputSource.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy