
commonMain.aws.sdk.kotlin.services.wellarchitected.model.MilestoneSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A milestone summary return object.
*/
public class MilestoneSummary private constructor(builder: Builder) {
/**
* The name of the milestone in a workload.
*
* Milestone names must be unique within a workload.
*/
public val milestoneName: kotlin.String? = builder.milestoneName
/**
* The milestone number.
*
* A workload can have a maximum of 100 milestones.
*/
public val milestoneNumber: kotlin.Int = builder.milestoneNumber
/**
* The date and time recorded.
*/
public val recordedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.recordedAt
/**
* A workload summary return object.
*/
public val workloadSummary: aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary? = builder.workloadSummary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.MilestoneSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MilestoneSummary(")
append("milestoneName=$milestoneName,")
append("milestoneNumber=$milestoneNumber,")
append("recordedAt=$recordedAt,")
append("workloadSummary=$workloadSummary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = milestoneName?.hashCode() ?: 0
result = 31 * result + (milestoneNumber)
result = 31 * result + (recordedAt?.hashCode() ?: 0)
result = 31 * result + (workloadSummary?.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 MilestoneSummary
if (milestoneName != other.milestoneName) return false
if (milestoneNumber != other.milestoneNumber) return false
if (recordedAt != other.recordedAt) return false
if (workloadSummary != other.workloadSummary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.MilestoneSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the milestone in a workload.
*
* Milestone names must be unique within a workload.
*/
public var milestoneName: kotlin.String? = null
/**
* The milestone number.
*
* A workload can have a maximum of 100 milestones.
*/
public var milestoneNumber: kotlin.Int = 0
/**
* The date and time recorded.
*/
public var recordedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A workload summary return object.
*/
public var workloadSummary: aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.MilestoneSummary) : this() {
this.milestoneName = x.milestoneName
this.milestoneNumber = x.milestoneNumber
this.recordedAt = x.recordedAt
this.workloadSummary = x.workloadSummary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.MilestoneSummary = MilestoneSummary(this)
/**
* construct an [aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary] inside the given [block]
*/
public fun workloadSummary(block: aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary.Builder.() -> kotlin.Unit) {
this.workloadSummary = aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy