commonMain.aws.sdk.kotlin.services.outposts.model.CapacityTaskSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of outposts-jvm Show documentation
Show all versions of outposts-jvm Show documentation
The AWS SDK for Kotlin client for Outposts
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The summary of the capacity task.
*/
public class CapacityTaskSummary private constructor(builder: Builder) {
/**
* The ID of the specified capacity task.
*/
public val capacityTaskId: kotlin.String? = builder.capacityTaskId
/**
* The status of the capacity task.
*/
public val capacityTaskStatus: aws.sdk.kotlin.services.outposts.model.CapacityTaskStatus? = builder.capacityTaskStatus
/**
* The date that the specified capacity task successfully ran.
*/
public val completionDate: aws.smithy.kotlin.runtime.time.Instant? = builder.completionDate
/**
* The date that the specified capacity task was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The date that the specified capacity was last modified.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The ID of the Amazon Web Services Outposts order of the host associated with the capacity task.
*/
public val orderId: kotlin.String? = builder.orderId
/**
* The ID of the Outpost associated with the specified capacity task.
*/
public val outpostId: kotlin.String? = builder.outpostId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.CapacityTaskSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CapacityTaskSummary(")
append("capacityTaskId=$capacityTaskId,")
append("capacityTaskStatus=$capacityTaskStatus,")
append("completionDate=$completionDate,")
append("creationDate=$creationDate,")
append("lastModifiedDate=$lastModifiedDate,")
append("orderId=$orderId,")
append("outpostId=$outpostId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = capacityTaskId?.hashCode() ?: 0
result = 31 * result + (capacityTaskStatus?.hashCode() ?: 0)
result = 31 * result + (completionDate?.hashCode() ?: 0)
result = 31 * result + (creationDate?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (orderId?.hashCode() ?: 0)
result = 31 * result + (outpostId?.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 CapacityTaskSummary
if (capacityTaskId != other.capacityTaskId) return false
if (capacityTaskStatus != other.capacityTaskStatus) return false
if (completionDate != other.completionDate) return false
if (creationDate != other.creationDate) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (orderId != other.orderId) return false
if (outpostId != other.outpostId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.CapacityTaskSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the specified capacity task.
*/
public var capacityTaskId: kotlin.String? = null
/**
* The status of the capacity task.
*/
public var capacityTaskStatus: aws.sdk.kotlin.services.outposts.model.CapacityTaskStatus? = null
/**
* The date that the specified capacity task successfully ran.
*/
public var completionDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date that the specified capacity task was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date that the specified capacity was last modified.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the Amazon Web Services Outposts order of the host associated with the capacity task.
*/
public var orderId: kotlin.String? = null
/**
* The ID of the Outpost associated with the specified capacity task.
*/
public var outpostId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.CapacityTaskSummary) : this() {
this.capacityTaskId = x.capacityTaskId
this.capacityTaskStatus = x.capacityTaskStatus
this.completionDate = x.completionDate
this.creationDate = x.creationDate
this.lastModifiedDate = x.lastModifiedDate
this.orderId = x.orderId
this.outpostId = x.outpostId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.CapacityTaskSummary = CapacityTaskSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy