
commonMain.aws.sdk.kotlin.services.ssm.model.GetMaintenanceWindowExecutionTaskRequest.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
public class GetMaintenanceWindowExecutionTaskRequest private constructor(builder: Builder) {
/**
* The ID of the specific task execution in the maintenance window task that should be retrieved.
*/
public val taskId: kotlin.String? = builder.taskId
/**
* The ID of the maintenance window execution that includes the task.
*/
public val windowExecutionId: kotlin.String? = builder.windowExecutionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetMaintenanceWindowExecutionTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMaintenanceWindowExecutionTaskRequest(")
append("taskId=$taskId,")
append("windowExecutionId=$windowExecutionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = taskId?.hashCode() ?: 0
result = 31 * result + (windowExecutionId?.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 GetMaintenanceWindowExecutionTaskRequest
if (taskId != other.taskId) return false
if (windowExecutionId != other.windowExecutionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetMaintenanceWindowExecutionTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the specific task execution in the maintenance window task that should be retrieved.
*/
public var taskId: kotlin.String? = null
/**
* The ID of the maintenance window execution that includes the task.
*/
public var windowExecutionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetMaintenanceWindowExecutionTaskRequest) : this() {
this.taskId = x.taskId
this.windowExecutionId = x.windowExecutionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetMaintenanceWindowExecutionTaskRequest = GetMaintenanceWindowExecutionTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy