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

commonMain.aws.sdk.kotlin.services.proton.model.NotifyResourceDeploymentStatusChangeRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.proton.model



public class NotifyResourceDeploymentStatusChangeRequest private constructor(builder: Builder) {
    /**
     * The deployment ID for your provisioned resource.
     */
    public val deploymentId: kotlin.String? = builder.deploymentId
    /**
     * The provisioned resource state change detail data that's returned by Proton.
     */
    public val outputs: List? = builder.outputs
    /**
     * The provisioned resource Amazon Resource Name (ARN).
     */
    public val resourceArn: kotlin.String = requireNotNull(builder.resourceArn) { "A non-null value must be provided for resourceArn" }
    /**
     * The status of your provisioned resource.
     */
    public val status: aws.sdk.kotlin.services.proton.model.ResourceDeploymentStatus? = builder.status
    /**
     * The deployment status message for your provisioned resource.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage

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

    override fun toString(): kotlin.String = buildString {
        append("NotifyResourceDeploymentStatusChangeRequest(")
        append("deploymentId=$deploymentId,")
        append("outputs=$outputs,")
        append("resourceArn=$resourceArn,")
        append("status=$status,")
        append("statusMessage=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deploymentId?.hashCode() ?: 0
        result = 31 * result + (outputs?.hashCode() ?: 0)
        result = 31 * result + (resourceArn.hashCode())
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.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 NotifyResourceDeploymentStatusChangeRequest

        if (deploymentId != other.deploymentId) return false
        if (outputs != other.outputs) return false
        if (resourceArn != other.resourceArn) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The deployment ID for your provisioned resource.
         */
        public var deploymentId: kotlin.String? = null
        /**
         * The provisioned resource state change detail data that's returned by Proton.
         */
        public var outputs: List? = null
        /**
         * The provisioned resource Amazon Resource Name (ARN).
         */
        public var resourceArn: kotlin.String? = null
        /**
         * The status of your provisioned resource.
         */
        public var status: aws.sdk.kotlin.services.proton.model.ResourceDeploymentStatus? = null
        /**
         * The deployment status message for your provisioned resource.
         */
        public var statusMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.NotifyResourceDeploymentStatusChangeRequest) : this() {
            this.deploymentId = x.deploymentId
            this.outputs = x.outputs
            this.resourceArn = x.resourceArn
            this.status = x.status
            this.statusMessage = x.statusMessage
        }

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

        internal fun correctErrors(): Builder {
            if (resourceArn == null) resourceArn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy