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

commonMain.aws.sdk.kotlin.services.migrationhub.model.NotifyApplicationStateRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.migrationhub.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class NotifyApplicationStateRequest private constructor(builder: Builder) {
    /**
     * The configurationId in Application Discovery Service that uniquely identifies the grouped application.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
     */
    public val dryRun: kotlin.Boolean? = builder.dryRun
    /**
     * Status of the application - Not Started, In-Progress, Complete.
     */
    public val status: aws.sdk.kotlin.services.migrationhub.model.ApplicationStatus? = builder.status
    /**
     * The timestamp when the application state changed.
     */
    public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.updateDateTime

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

    override fun toString(): kotlin.String = buildString {
        append("NotifyApplicationStateRequest(")
        append("applicationId=$applicationId,")
        append("dryRun=$dryRun,")
        append("status=$status,")
        append("updateDateTime=$updateDateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (dryRun?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updateDateTime?.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 NotifyApplicationStateRequest

        if (applicationId != other.applicationId) return false
        if (dryRun != other.dryRun) return false
        if (status != other.status) return false
        if (updateDateTime != other.updateDateTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The configurationId in Application Discovery Service that uniquely identifies the grouped application.
         */
        public var applicationId: kotlin.String? = null
        /**
         * Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
         */
        public var dryRun: kotlin.Boolean? = null
        /**
         * Status of the application - Not Started, In-Progress, Complete.
         */
        public var status: aws.sdk.kotlin.services.migrationhub.model.ApplicationStatus? = null
        /**
         * The timestamp when the application state changed.
         */
        public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.migrationhub.model.NotifyApplicationStateRequest) : this() {
            this.applicationId = x.applicationId
            this.dryRun = x.dryRun
            this.status = x.status
            this.updateDateTime = x.updateDateTime
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy