
commonMain.aws.sdk.kotlin.services.ssm.model.ScheduledWindowExecution.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
/**
* Information about a scheduled execution for a maintenance window.
*/
public class ScheduledWindowExecution private constructor(builder: Builder) {
/**
* The time, in ISO-8601 Extended format, that the maintenance window is scheduled to be run.
*/
public val executionTime: kotlin.String? = builder.executionTime
/**
* The name of the maintenance window to be run.
*/
public val name: kotlin.String? = builder.name
/**
* The ID of the maintenance window to be run.
*/
public val windowId: kotlin.String? = builder.windowId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ScheduledWindowExecution = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ScheduledWindowExecution(")
append("executionTime=$executionTime,")
append("name=$name,")
append("windowId=$windowId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = executionTime?.hashCode() ?: 0
result = 31 * result + (name?.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 ScheduledWindowExecution
if (executionTime != other.executionTime) return false
if (name != other.name) return false
if (windowId != other.windowId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ScheduledWindowExecution = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time, in ISO-8601 Extended format, that the maintenance window is scheduled to be run.
*/
public var executionTime: kotlin.String? = null
/**
* The name of the maintenance window to be run.
*/
public var name: kotlin.String? = null
/**
* The ID of the maintenance window to be run.
*/
public var windowId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ScheduledWindowExecution) : this() {
this.executionTime = x.executionTime
this.name = x.name
this.windowId = x.windowId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ScheduledWindowExecution = ScheduledWindowExecution(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy