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

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

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteBudgetActionRequest private constructor(builder: Builder) {
    /**
     * The account ID of the user. It's a 12-digit number.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * A system-generated universally unique identifier (UUID) for the action.
     */
    public val actionId: kotlin.String? = builder.actionId
    /**
     * A string that represents the budget name. The ":" and "\" characters, and the "/action/" substring, aren't allowed.
     */
    public val budgetName: kotlin.String? = builder.budgetName

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteBudgetActionRequest(")
        append("accountId=$accountId,")
        append("actionId=$actionId,")
        append("budgetName=$budgetName")
        append(")")
    }

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

        if (accountId != other.accountId) return false
        if (actionId != other.actionId) return false
        if (budgetName != other.budgetName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The account ID of the user. It's a 12-digit number.
         */
        public var accountId: kotlin.String? = null
        /**
         * A system-generated universally unique identifier (UUID) for the action.
         */
        public var actionId: kotlin.String? = null
        /**
         * A string that represents the budget name. The ":" and "\" characters, and the "/action/" substring, aren't allowed.
         */
        public var budgetName: kotlin.String? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy