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

commonMain.aws.sdk.kotlin.services.launchwizard.model.WorkloadDeploymentPatternDataSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.launchwizard.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes a workload deployment pattern.
 */
public class WorkloadDeploymentPatternDataSummary private constructor(builder: Builder) {
    /**
     * The name of a workload deployment pattern.
     */
    public val deploymentPatternName: kotlin.String? = builder.deploymentPatternName
    /**
     * The description of a workload deployment pattern.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The display name of a workload deployment pattern.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The status of a workload deployment pattern.
     */
    public val status: aws.sdk.kotlin.services.launchwizard.model.WorkloadDeploymentPatternStatus? = builder.status
    /**
     * A message about a workload deployment pattern's status.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The name of the workload.
     */
    public val workloadName: kotlin.String? = builder.workloadName
    /**
     * The name of the workload deployment pattern version.
     */
    public val workloadVersionName: kotlin.String? = builder.workloadVersionName

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

    override fun toString(): kotlin.String = buildString {
        append("WorkloadDeploymentPatternDataSummary(")
        append("deploymentPatternName=$deploymentPatternName,")
        append("description=$description,")
        append("displayName=$displayName,")
        append("status=$status,")
        append("statusMessage=$statusMessage,")
        append("workloadName=$workloadName,")
        append("workloadVersionName=$workloadVersionName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deploymentPatternName?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (workloadName?.hashCode() ?: 0)
        result = 31 * result + (workloadVersionName?.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 WorkloadDeploymentPatternDataSummary

        if (deploymentPatternName != other.deploymentPatternName) return false
        if (description != other.description) return false
        if (displayName != other.displayName) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false
        if (workloadName != other.workloadName) return false
        if (workloadVersionName != other.workloadVersionName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of a workload deployment pattern.
         */
        public var deploymentPatternName: kotlin.String? = null
        /**
         * The description of a workload deployment pattern.
         */
        public var description: kotlin.String? = null
        /**
         * The display name of a workload deployment pattern.
         */
        public var displayName: kotlin.String? = null
        /**
         * The status of a workload deployment pattern.
         */
        public var status: aws.sdk.kotlin.services.launchwizard.model.WorkloadDeploymentPatternStatus? = null
        /**
         * A message about a workload deployment pattern's status.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The name of the workload.
         */
        public var workloadName: kotlin.String? = null
        /**
         * The name of the workload deployment pattern version.
         */
        public var workloadVersionName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.launchwizard.model.WorkloadDeploymentPatternDataSummary) : this() {
            this.deploymentPatternName = x.deploymentPatternName
            this.description = x.description
            this.displayName = x.displayName
            this.status = x.status
            this.statusMessage = x.statusMessage
            this.workloadName = x.workloadName
            this.workloadVersionName = x.workloadVersionName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy