
commonMain.aws.sdk.kotlin.services.ssm.model.ComplianceExecutionSummary.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.time.Instant
/**
* A summary of the call execution that includes an execution ID, the type of execution (for example, `Command`), and the date/time of the execution using a datetime object that is saved in the following format: `yyyy-MM-dd'T'HH:mm:ss'Z'`
*/
public class ComplianceExecutionSummary private constructor(builder: Builder) {
/**
* An ID created by the system when `PutComplianceItems` was called. For example, `CommandID` is a valid execution ID. You can use this ID in subsequent calls.
*/
public val executionId: kotlin.String? = builder.executionId
/**
* The time the execution ran as a datetime object that is saved in the following format: `yyyy-MM-dd'T'HH:mm:ss'Z'`
*/
public val executionTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.executionTime) { "A non-null value must be provided for executionTime" }
/**
* The type of execution. For example, `Command` is a valid execution type.
*/
public val executionType: kotlin.String? = builder.executionType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ComplianceExecutionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComplianceExecutionSummary(")
append("executionId=$executionId,")
append("executionTime=$executionTime,")
append("executionType=$executionType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = executionId?.hashCode() ?: 0
result = 31 * result + (executionTime.hashCode())
result = 31 * result + (executionType?.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 ComplianceExecutionSummary
if (executionId != other.executionId) return false
if (executionTime != other.executionTime) return false
if (executionType != other.executionType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ComplianceExecutionSummary = Builder(this).apply(block).build()
public class Builder {
/**
* An ID created by the system when `PutComplianceItems` was called. For example, `CommandID` is a valid execution ID. You can use this ID in subsequent calls.
*/
public var executionId: kotlin.String? = null
/**
* The time the execution ran as a datetime object that is saved in the following format: `yyyy-MM-dd'T'HH:mm:ss'Z'`
*/
public var executionTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The type of execution. For example, `Command` is a valid execution type.
*/
public var executionType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ComplianceExecutionSummary) : this() {
this.executionId = x.executionId
this.executionTime = x.executionTime
this.executionType = x.executionType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ComplianceExecutionSummary = ComplianceExecutionSummary(this)
internal fun correctErrors(): Builder {
if (executionTime == null) executionTime = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy