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

commonMain.aws.sdk.kotlin.services.sms.model.DeleteAppRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sms.model



public class DeleteAppRequest private constructor(builder: Builder) {
    /**
     * The ID of the application.
     */
    public val appId: kotlin.String? = builder.appId
    /**
     * Indicates whether to stop all replication jobs corresponding to the servers in the application while deleting the application.
     */
    public val forceStopAppReplication: kotlin.Boolean? = builder.forceStopAppReplication
    /**
     * Indicates whether to terminate the stack corresponding to the application while deleting the application.
     */
    public val forceTerminateApp: kotlin.Boolean? = builder.forceTerminateApp

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteAppRequest(")
        append("appId=$appId,")
        append("forceStopAppReplication=$forceStopAppReplication,")
        append("forceTerminateApp=$forceTerminateApp")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appId?.hashCode() ?: 0
        result = 31 * result + (forceStopAppReplication?.hashCode() ?: 0)
        result = 31 * result + (forceTerminateApp?.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 DeleteAppRequest

        if (appId != other.appId) return false
        if (forceStopAppReplication != other.forceStopAppReplication) return false
        if (forceTerminateApp != other.forceTerminateApp) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the application.
         */
        public var appId: kotlin.String? = null
        /**
         * Indicates whether to stop all replication jobs corresponding to the servers in the application while deleting the application.
         */
        public var forceStopAppReplication: kotlin.Boolean? = null
        /**
         * Indicates whether to terminate the stack corresponding to the application while deleting the application.
         */
        public var forceTerminateApp: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sms.model.DeleteAppRequest) : this() {
            this.appId = x.appId
            this.forceStopAppReplication = x.forceStopAppReplication
            this.forceTerminateApp = x.forceTerminateApp
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy