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

commonMain.aws.sdk.kotlin.services.ssm.model.ResolvedTargets.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

/**
 * Information about targets that resolved during the Automation execution.
 */
public class ResolvedTargets private constructor(builder: Builder) {
    /**
     * A list of parameter values sent to targets that resolved during the Automation execution.
     */
    public val parameterValues: List? = builder.parameterValues
    /**
     * A boolean value indicating whether the resolved target list is truncated.
     */
    public val truncated: kotlin.Boolean = builder.truncated

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

    override fun toString(): kotlin.String = buildString {
        append("ResolvedTargets(")
        append("parameterValues=$parameterValues,")
        append("truncated=$truncated")
        append(")")
    }

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

        if (parameterValues != other.parameterValues) return false
        if (truncated != other.truncated) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A list of parameter values sent to targets that resolved during the Automation execution.
         */
        public var parameterValues: List? = null
        /**
         * A boolean value indicating whether the resolved target list is truncated.
         */
        public var truncated: kotlin.Boolean = false

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.ResolvedTargets) : this() {
            this.parameterValues = x.parameterValues
            this.truncated = x.truncated
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy