All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary.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 workload summary return object.
 */
public class WorkloadSummary private constructor(builder: Builder) {
    /**
     * The improvement status for a workload.
     */
    public val improvementStatus: aws.sdk.kotlin.services.wellarchitected.model.WorkloadImprovementStatus? = builder.improvementStatus
    /**
     * The list of lenses associated with the workload. Each lens is identified by its LensSummary$LensAlias.
     */
    public val lenses: List? = builder.lenses
    /**
     * An Amazon Web Services account ID.
     */
    public val owner: kotlin.String? = builder.owner
    /**
     * A map from risk names to the count of how many questions have that rating.
     */
    public val prioritizedRiskCounts: Map? = builder.prioritizedRiskCounts
    /**
     * Profile associated with a workload.
     */
    public val profiles: List? = builder.profiles
    /**
     * A map from risk names to the count of how many questions have that rating.
     */
    public val riskCounts: Map? = builder.riskCounts
    /**
     * The date and time recorded.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
    /**
     * The ARN for the workload.
     */
    public val workloadArn: kotlin.String? = builder.workloadArn
    /**
     * The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
     */
    public val workloadId: kotlin.String? = builder.workloadId
    /**
     * The name of the workload.
     *
     * The name must be unique within an account within an Amazon Web Services Region. Spaces and capitalization are ignored when checking for uniqueness.
     */
    public val workloadName: kotlin.String? = builder.workloadName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("WorkloadSummary(")
        append("improvementStatus=$improvementStatus,")
        append("lenses=$lenses,")
        append("owner=$owner,")
        append("prioritizedRiskCounts=$prioritizedRiskCounts,")
        append("profiles=$profiles,")
        append("riskCounts=$riskCounts,")
        append("updatedAt=$updatedAt,")
        append("workloadArn=$workloadArn,")
        append("workloadId=$workloadId,")
        append("workloadName=$workloadName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = improvementStatus?.hashCode() ?: 0
        result = 31 * result + (lenses?.hashCode() ?: 0)
        result = 31 * result + (owner?.hashCode() ?: 0)
        result = 31 * result + (prioritizedRiskCounts?.hashCode() ?: 0)
        result = 31 * result + (profiles?.hashCode() ?: 0)
        result = 31 * result + (riskCounts?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.hashCode() ?: 0)
        result = 31 * result + (workloadArn?.hashCode() ?: 0)
        result = 31 * result + (workloadId?.hashCode() ?: 0)
        result = 31 * result + (workloadName?.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 WorkloadSummary

        if (improvementStatus != other.improvementStatus) return false
        if (lenses != other.lenses) return false
        if (owner != other.owner) return false
        if (prioritizedRiskCounts != other.prioritizedRiskCounts) return false
        if (profiles != other.profiles) return false
        if (riskCounts != other.riskCounts) return false
        if (updatedAt != other.updatedAt) return false
        if (workloadArn != other.workloadArn) return false
        if (workloadId != other.workloadId) return false
        if (workloadName != other.workloadName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The improvement status for a workload.
         */
        public var improvementStatus: aws.sdk.kotlin.services.wellarchitected.model.WorkloadImprovementStatus? = null
        /**
         * The list of lenses associated with the workload. Each lens is identified by its LensSummary$LensAlias.
         */
        public var lenses: List? = null
        /**
         * An Amazon Web Services account ID.
         */
        public var owner: kotlin.String? = null
        /**
         * A map from risk names to the count of how many questions have that rating.
         */
        public var prioritizedRiskCounts: Map? = null
        /**
         * Profile associated with a workload.
         */
        public var profiles: List? = null
        /**
         * A map from risk names to the count of how many questions have that rating.
         */
        public var riskCounts: Map? = null
        /**
         * The date and time recorded.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN for the workload.
         */
        public var workloadArn: kotlin.String? = null
        /**
         * The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
         */
        public var workloadId: kotlin.String? = null
        /**
         * The name of the workload.
         *
         * The name must be unique within an account within an Amazon Web Services Region. Spaces and capitalization are ignored when checking for uniqueness.
         */
        public var workloadName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary) : this() {
            this.improvementStatus = x.improvementStatus
            this.lenses = x.lenses
            this.owner = x.owner
            this.prioritizedRiskCounts = x.prioritizedRiskCounts
            this.profiles = x.profiles
            this.riskCounts = x.riskCounts
            this.updatedAt = x.updatedAt
            this.workloadArn = x.workloadArn
            this.workloadId = x.workloadId
            this.workloadName = x.workloadName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.WorkloadSummary = WorkloadSummary(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy