
commonMain.aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecution.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
/**
* Describes the information about an execution of a maintenance window.
*/
public class MaintenanceWindowExecution private constructor(builder: Builder) {
/**
* The time the execution finished.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* The time the execution started.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The status of the execution.
*/
public val status: aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecutionStatus? = builder.status
/**
* The details explaining the status. Not available for all status values.
*/
public val statusDetails: kotlin.String? = builder.statusDetails
/**
* The ID of the maintenance window execution.
*/
public val windowExecutionId: kotlin.String? = builder.windowExecutionId
/**
* The ID of the maintenance window.
*/
public val windowId: kotlin.String? = builder.windowId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecution = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MaintenanceWindowExecution(")
append("endTime=$endTime,")
append("startTime=$startTime,")
append("status=$status,")
append("statusDetails=$statusDetails,")
append("windowExecutionId=$windowExecutionId,")
append("windowId=$windowId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusDetails?.hashCode() ?: 0)
result = 31 * result + (windowExecutionId?.hashCode() ?: 0)
result = 31 * result + (windowId?.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 MaintenanceWindowExecution
if (endTime != other.endTime) return false
if (startTime != other.startTime) return false
if (status != other.status) return false
if (statusDetails != other.statusDetails) return false
if (windowExecutionId != other.windowExecutionId) return false
if (windowId != other.windowId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecution = Builder(this).apply(block).build()
public class Builder {
/**
* The time the execution finished.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time the execution started.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the execution.
*/
public var status: aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecutionStatus? = null
/**
* The details explaining the status. Not available for all status values.
*/
public var statusDetails: kotlin.String? = null
/**
* The ID of the maintenance window execution.
*/
public var windowExecutionId: kotlin.String? = null
/**
* The ID of the maintenance window.
*/
public var windowId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecution) : this() {
this.endTime = x.endTime
this.startTime = x.startTime
this.status = x.status
this.statusDetails = x.statusDetails
this.windowExecutionId = x.windowExecutionId
this.windowId = x.windowId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.MaintenanceWindowExecution = MaintenanceWindowExecution(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy