
commonMain.aws.sdk.kotlin.services.budgets.model.DeleteBudgetActionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
public class DeleteBudgetActionResponse private constructor(builder: Builder) {
/**
* The account ID of the user. It's a 12-digit number.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* A budget action resource.
*/
public val action: aws.sdk.kotlin.services.budgets.model.Action? = builder.action
/**
* A string that represents the budget name. The ":" and "\" characters 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.DeleteBudgetActionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBudgetActionResponse(")
append("accountId=$accountId,")
append("action=$action,")
append("budgetName=$budgetName)")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (action?.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 DeleteBudgetActionResponse
if (accountId != other.accountId) return false
if (action != other.action) return false
if (budgetName != other.budgetName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DeleteBudgetActionResponse = 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 budget action resource.
*/
public var action: aws.sdk.kotlin.services.budgets.model.Action? = null
/**
* A string that represents the budget name. The ":" and "\" characters aren't allowed.
*/
public var budgetName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.DeleteBudgetActionResponse) : this() {
this.accountId = x.accountId
this.action = x.action
this.budgetName = x.budgetName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.DeleteBudgetActionResponse = DeleteBudgetActionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.budgets.model.Action] inside the given [block]
*/
public fun action(block: aws.sdk.kotlin.services.budgets.model.Action.Builder.() -> kotlin.Unit) {
this.action = aws.sdk.kotlin.services.budgets.model.Action.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy