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

commonMain.aws.sdk.kotlin.services.mgn.model.SsmDocument.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mgn.model



/**
 * Source server replication type.
 */
class SsmDocument private constructor(builder: Builder) {
    /**
     * Source server replication type.
     */
    val actionName: kotlin.String? = builder.actionName
    /**
     * Source server replication type.
     */
    val mustSucceedForCutover: kotlin.Boolean? = builder.mustSucceedForCutover
    /**
     * Source server replication type.
     */
    val parameters: Map>? = builder.parameters
    /**
     * Source server replication type.
     */
    val ssmDocumentName: kotlin.String? = builder.ssmDocumentName
    /**
     * Source server replication type.
     */
    val timeoutSeconds: kotlin.Int = builder.timeoutSeconds

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

    override fun toString(): kotlin.String = buildString {
        append("SsmDocument(")
        append("actionName=$actionName,")
        append("mustSucceedForCutover=$mustSucceedForCutover,")
        append("parameters=$parameters,")
        append("ssmDocumentName=$ssmDocumentName,")
        append("timeoutSeconds=$timeoutSeconds)")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionName?.hashCode() ?: 0
        result = 31 * result + (mustSucceedForCutover?.hashCode() ?: 0)
        result = 31 * result + (parameters?.hashCode() ?: 0)
        result = 31 * result + (ssmDocumentName?.hashCode() ?: 0)
        result = 31 * result + (timeoutSeconds)
        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 SsmDocument

        if (actionName != other.actionName) return false
        if (mustSucceedForCutover != other.mustSucceedForCutover) return false
        if (parameters != other.parameters) return false
        if (ssmDocumentName != other.ssmDocumentName) return false
        if (timeoutSeconds != other.timeoutSeconds) return false

        return true
    }

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

    class Builder {
        /**
         * Source server replication type.
         */
        var actionName: kotlin.String? = null
        /**
         * Source server replication type.
         */
        var mustSucceedForCutover: kotlin.Boolean? = null
        /**
         * Source server replication type.
         */
        var parameters: Map>? = null
        /**
         * Source server replication type.
         */
        var ssmDocumentName: kotlin.String? = null
        /**
         * Source server replication type.
         */
        var timeoutSeconds: kotlin.Int = 0

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mgn.model.SsmDocument) : this() {
            this.actionName = x.actionName
            this.mustSucceedForCutover = x.mustSucceedForCutover
            this.parameters = x.parameters
            this.ssmDocumentName = x.ssmDocumentName
            this.timeoutSeconds = x.timeoutSeconds
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mgn.model.SsmDocument = SsmDocument(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy