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

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

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

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



public class PutAppLaunchConfigurationRequest private constructor(builder: Builder) {
    /**
     * The ID of the application.
     */
    public val appId: kotlin.String? = builder.appId
    /**
     * Indicates whether the application is configured to launch automatically after replication is complete.
     */
    public val autoLaunch: kotlin.Boolean? = builder.autoLaunch
    /**
     * The name of service role in the customer's account that CloudFormation uses to launch the application.
     */
    public val roleName: kotlin.String? = builder.roleName
    /**
     * Information about the launch configurations for server groups in the application.
     */
    public val serverGroupLaunchConfigurations: List? = builder.serverGroupLaunchConfigurations

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

    override fun toString(): kotlin.String = buildString {
        append("PutAppLaunchConfigurationRequest(")
        append("appId=$appId,")
        append("autoLaunch=$autoLaunch,")
        append("roleName=$roleName,")
        append("serverGroupLaunchConfigurations=$serverGroupLaunchConfigurations")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appId?.hashCode() ?: 0
        result = 31 * result + (autoLaunch?.hashCode() ?: 0)
        result = 31 * result + (roleName?.hashCode() ?: 0)
        result = 31 * result + (serverGroupLaunchConfigurations?.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 PutAppLaunchConfigurationRequest

        if (appId != other.appId) return false
        if (autoLaunch != other.autoLaunch) return false
        if (roleName != other.roleName) return false
        if (serverGroupLaunchConfigurations != other.serverGroupLaunchConfigurations) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the application.
         */
        public var appId: kotlin.String? = null
        /**
         * Indicates whether the application is configured to launch automatically after replication is complete.
         */
        public var autoLaunch: kotlin.Boolean? = null
        /**
         * The name of service role in the customer's account that CloudFormation uses to launch the application.
         */
        public var roleName: kotlin.String? = null
        /**
         * Information about the launch configurations for server groups in the application.
         */
        public var serverGroupLaunchConfigurations: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sms.model.PutAppLaunchConfigurationRequest) : this() {
            this.appId = x.appId
            this.autoLaunch = x.autoLaunch
            this.roleName = x.roleName
            this.serverGroupLaunchConfigurations = x.serverGroupLaunchConfigurations
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy