
commonMain.aws.sdk.kotlin.services.ssm.model.AssociationExecution.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.
*/
public class AssociationExecution private constructor(builder: Builder) {
/**
* The details for the CloudWatch alarm you want to apply to an automation or command.
*/
public val alarmConfiguration: aws.sdk.kotlin.services.ssm.model.AlarmConfiguration? = builder.alarmConfiguration
/**
* The association ID.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The association version.
*/
public val associationVersion: kotlin.String? = builder.associationVersion
/**
* The time the execution started.
*/
public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* Detailed status information about the execution.
*/
public val detailedStatus: kotlin.String? = builder.detailedStatus
/**
* The execution ID for the association.
*/
public val executionId: kotlin.String? = builder.executionId
/**
* The date of the last execution.
*/
public val lastExecutionDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastExecutionDate
/**
* An aggregate status of the resources in the execution based on the status type.
*/
public val resourceCountByStatus: kotlin.String? = builder.resourceCountByStatus
/**
* The status of the association execution.
*/
public val status: kotlin.String? = builder.status
/**
* The CloudWatch alarms that were invoked by the association.
*/
public val triggeredAlarms: List? = builder.triggeredAlarms
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.AssociationExecution = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociationExecution(")
append("alarmConfiguration=$alarmConfiguration,")
append("associationId=$associationId,")
append("associationVersion=$associationVersion,")
append("createdTime=$createdTime,")
append("detailedStatus=$detailedStatus,")
append("executionId=$executionId,")
append("lastExecutionDate=$lastExecutionDate,")
append("resourceCountByStatus=$resourceCountByStatus,")
append("status=$status,")
append("triggeredAlarms=$triggeredAlarms")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = alarmConfiguration?.hashCode() ?: 0
result = 31 * result + (associationId?.hashCode() ?: 0)
result = 31 * result + (associationVersion?.hashCode() ?: 0)
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (detailedStatus?.hashCode() ?: 0)
result = 31 * result + (executionId?.hashCode() ?: 0)
result = 31 * result + (lastExecutionDate?.hashCode() ?: 0)
result = 31 * result + (resourceCountByStatus?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (triggeredAlarms?.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 AssociationExecution
if (alarmConfiguration != other.alarmConfiguration) return false
if (associationId != other.associationId) return false
if (associationVersion != other.associationVersion) return false
if (createdTime != other.createdTime) return false
if (detailedStatus != other.detailedStatus) return false
if (executionId != other.executionId) return false
if (lastExecutionDate != other.lastExecutionDate) return false
if (resourceCountByStatus != other.resourceCountByStatus) return false
if (status != other.status) return false
if (triggeredAlarms != other.triggeredAlarms) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.AssociationExecution = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The details for the CloudWatch alarm you want to apply to an automation or command.
*/
public var alarmConfiguration: aws.sdk.kotlin.services.ssm.model.AlarmConfiguration? = null
/**
* The association ID.
*/
public var associationId: kotlin.String? = null
/**
* The association version.
*/
public var associationVersion: kotlin.String? = null
/**
* The time the execution started.
*/
public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Detailed status information about the execution.
*/
public var detailedStatus: kotlin.String? = null
/**
* The execution ID for the association.
*/
public var executionId: kotlin.String? = null
/**
* The date of the last execution.
*/
public var lastExecutionDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An aggregate status of the resources in the execution based on the status type.
*/
public var resourceCountByStatus: kotlin.String? = null
/**
* The status of the association execution.
*/
public var status: kotlin.String? = null
/**
* The CloudWatch alarms that were invoked by the association.
*/
public var triggeredAlarms: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.AssociationExecution) : this() {
this.alarmConfiguration = x.alarmConfiguration
this.associationId = x.associationId
this.associationVersion = x.associationVersion
this.createdTime = x.createdTime
this.detailedStatus = x.detailedStatus
this.executionId = x.executionId
this.lastExecutionDate = x.lastExecutionDate
this.resourceCountByStatus = x.resourceCountByStatus
this.status = x.status
this.triggeredAlarms = x.triggeredAlarms
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.AssociationExecution = AssociationExecution(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.AlarmConfiguration] inside the given [block]
*/
public fun alarmConfiguration(block: aws.sdk.kotlin.services.ssm.model.AlarmConfiguration.Builder.() -> kotlin.Unit) {
this.alarmConfiguration = aws.sdk.kotlin.services.ssm.model.AlarmConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy