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

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

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

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



/**
 * Parameters specified in a Systems Manager document that run on the server when the command is run.
 */
public class DocumentParameter private constructor(builder: Builder) {
    /**
     * If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
     */
    public val defaultValue: kotlin.String? = builder.defaultValue
    /**
     * A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the parameter.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The type of parameter. The type can be either String or StringList.
     */
    public val type: aws.sdk.kotlin.services.ssm.model.DocumentParameterType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("DocumentParameter(")
        append("defaultValue=$defaultValue,")
        append("description=$description,")
        append("name=$name,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = defaultValue?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (type?.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 DocumentParameter

        if (defaultValue != other.defaultValue) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.
         */
        public var defaultValue: kotlin.String? = null
        /**
         * A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the parameter.
         */
        public var name: kotlin.String? = null
        /**
         * The type of parameter. The type can be either String or StringList.
         */
        public var type: aws.sdk.kotlin.services.ssm.model.DocumentParameterType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.DocumentParameter) : this() {
            this.defaultValue = x.defaultValue
            this.description = x.description
            this.name = x.name
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy