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

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

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

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



public class UpdateBudgetActionResponse private constructor(builder: Builder) {
    /**
     * The account ID of the user. It's a 12-digit number.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * A string that represents the budget name. The ":" and "\" characters aren't allowed.
     */
    public val budgetName: kotlin.String? = builder.budgetName
    /**
     * The updated action resource information.
     */
    public val newAction: aws.sdk.kotlin.services.budgets.model.Action? = builder.newAction
    /**
     * The previous action resource information.
     */
    public val oldAction: aws.sdk.kotlin.services.budgets.model.Action? = builder.oldAction

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateBudgetActionResponse(")
        append("accountId=$accountId,")
        append("budgetName=$budgetName,")
        append("newAction=$newAction,")
        append("oldAction=$oldAction)")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (budgetName?.hashCode() ?: 0)
        result = 31 * result + (newAction?.hashCode() ?: 0)
        result = 31 * result + (oldAction?.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 UpdateBudgetActionResponse

        if (accountId != other.accountId) return false
        if (budgetName != other.budgetName) return false
        if (newAction != other.newAction) return false
        if (oldAction != other.oldAction) return false

        return true
    }

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

    public class Builder {
        /**
         * The account ID of the user. It's a 12-digit number.
         */
        public var accountId: kotlin.String? = null
        /**
         * A string that represents the budget name. The ":" and "\" characters aren't allowed.
         */
        public var budgetName: kotlin.String? = null
        /**
         * The updated action resource information.
         */
        public var newAction: aws.sdk.kotlin.services.budgets.model.Action? = null
        /**
         * The previous action resource information.
         */
        public var oldAction: aws.sdk.kotlin.services.budgets.model.Action? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.budgets.model.UpdateBudgetActionResponse) : this() {
            this.accountId = x.accountId
            this.budgetName = x.budgetName
            this.newAction = x.newAction
            this.oldAction = x.oldAction
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.budgets.model.Action] inside the given [block]
         */
        public fun newAction(block: aws.sdk.kotlin.services.budgets.model.Action.Builder.() -> kotlin.Unit) {
            this.newAction = aws.sdk.kotlin.services.budgets.model.Action.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.budgets.model.Action] inside the given [block]
         */
        public fun oldAction(block: aws.sdk.kotlin.services.budgets.model.Action.Builder.() -> kotlin.Unit) {
            this.oldAction = aws.sdk.kotlin.services.budgets.model.Action.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy