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

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

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

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



class CreateLaunchConfigurationTemplateRequest private constructor(builder: Builder) {
    /**
     * Request to associate the default Application Migration Service Security group with the Replication Settings template.
     */
    val postLaunchActions: aws.sdk.kotlin.services.mgn.model.PostLaunchActions? = builder.postLaunchActions
    /**
     * Request to associate the default Application Migration Service Security group with the Replication Settings template.
     */
    val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateLaunchConfigurationTemplateRequest(")
        append("postLaunchActions=$postLaunchActions,")
        append("tags=*** Sensitive Data Redacted ***)")
    }

    override fun hashCode(): kotlin.Int {
        var result = postLaunchActions?.hashCode() ?: 0
        result = 31 * result + (tags?.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 CreateLaunchConfigurationTemplateRequest

        if (postLaunchActions != other.postLaunchActions) return false
        if (tags != other.tags) return false

        return true
    }

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

    class Builder {
        /**
         * Request to associate the default Application Migration Service Security group with the Replication Settings template.
         */
        var postLaunchActions: aws.sdk.kotlin.services.mgn.model.PostLaunchActions? = null
        /**
         * Request to associate the default Application Migration Service Security group with the Replication Settings template.
         */
        var tags: Map? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mgn.model.CreateLaunchConfigurationTemplateRequest) : this() {
            this.postLaunchActions = x.postLaunchActions
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.mgn.model.PostLaunchActions] inside the given [block]
         */
        fun postLaunchActions(block: aws.sdk.kotlin.services.mgn.model.PostLaunchActions.Builder.() -> kotlin.Unit) {
            this.postLaunchActions = aws.sdk.kotlin.services.mgn.model.PostLaunchActions.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy