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

commonMain.aws.sdk.kotlin.services.budgets.model.SsmActionDefinition.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.budgets.model



/**
 * The Amazon Web Services Systems Manager (SSM) action definition details.
 */
public class SsmActionDefinition private constructor(builder: Builder) {
    /**
     * The action subType.
     */
    public val actionSubType: aws.sdk.kotlin.services.budgets.model.ActionSubType? = builder.actionSubType
    /**
     * The EC2 and RDS instance IDs.
     */
    public val instanceIds: List? = builder.instanceIds
    /**
     * The Region to run the SSM document.
     */
    public val region: kotlin.String? = builder.region

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

    override fun toString(): kotlin.String = buildString {
        append("SsmActionDefinition(")
        append("actionSubType=$actionSubType,")
        append("instanceIds=$instanceIds,")
        append("region=$region)")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionSubType?.hashCode() ?: 0
        result = 31 * result + (instanceIds?.hashCode() ?: 0)
        result = 31 * result + (region?.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 SsmActionDefinition

        if (actionSubType != other.actionSubType) return false
        if (instanceIds != other.instanceIds) return false
        if (region != other.region) return false

        return true
    }

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

    public class Builder {
        /**
         * The action subType.
         */
        public var actionSubType: aws.sdk.kotlin.services.budgets.model.ActionSubType? = null
        /**
         * The EC2 and RDS instance IDs.
         */
        public var instanceIds: List? = null
        /**
         * The Region to run the SSM document.
         */
        public var region: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.budgets.model.SsmActionDefinition) : this() {
            this.actionSubType = x.actionSubType
            this.instanceIds = x.instanceIds
            this.region = x.region
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.budgets.model.SsmActionDefinition = SsmActionDefinition(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy