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

commonMain.aws.sdk.kotlin.services.ssm.model.StartExecutionPreviewRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model

import aws.smithy.kotlin.runtime.SdkDsl

public class StartExecutionPreviewRequest private constructor(builder: Builder) {
    /**
     * The name of the Automation runbook to run. The result of the execution preview indicates what the impact would be of running this runbook.
     */
    public val documentName: kotlin.String? = builder.documentName
    /**
     * The version of the Automation runbook to run. The default value is `$DEFAULT`.
     */
    public val documentVersion: kotlin.String? = builder.documentVersion
    /**
     * Information about the inputs that can be specified for the preview operation.
     */
    public val executionInputs: aws.sdk.kotlin.services.ssm.model.ExecutionInputs? = builder.executionInputs

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

    override fun toString(): kotlin.String = buildString {
        append("StartExecutionPreviewRequest(")
        append("documentName=$documentName,")
        append("documentVersion=$documentVersion,")
        append("executionInputs=$executionInputs")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = documentName?.hashCode() ?: 0
        result = 31 * result + (documentVersion?.hashCode() ?: 0)
        result = 31 * result + (executionInputs?.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 StartExecutionPreviewRequest

        if (documentName != other.documentName) return false
        if (documentVersion != other.documentVersion) return false
        if (executionInputs != other.executionInputs) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the Automation runbook to run. The result of the execution preview indicates what the impact would be of running this runbook.
         */
        public var documentName: kotlin.String? = null
        /**
         * The version of the Automation runbook to run. The default value is `$DEFAULT`.
         */
        public var documentVersion: kotlin.String? = null
        /**
         * Information about the inputs that can be specified for the preview operation.
         */
        public var executionInputs: aws.sdk.kotlin.services.ssm.model.ExecutionInputs? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.StartExecutionPreviewRequest) : this() {
            this.documentName = x.documentName
            this.documentVersion = x.documentVersion
            this.executionInputs = x.executionInputs
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy