commonMain.aws.sdk.kotlin.services.budgets.model.DescribeBudgetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of budgets-jvm Show documentation
Show all versions of budgets-jvm Show documentation
The AWS SDK for Kotlin client for Budgets
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Request of DescribeBudget
*/
public class DescribeBudgetRequest private constructor(builder: Builder) {
/**
* The `accountId` that is associated with the budget that you want a description of.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The name of the budget that you want a description of.
*/
public val budgetName: kotlin.String? = builder.budgetName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.DescribeBudgetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeBudgetRequest(")
append("accountId=$accountId,")
append("budgetName=$budgetName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.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 DescribeBudgetRequest
if (accountId != other.accountId) return false
if (budgetName != other.budgetName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DescribeBudgetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The `accountId` that is associated with the budget that you want a description of.
*/
public var accountId: kotlin.String? = null
/**
* The name of the budget that you want a description of.
*/
public var budgetName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.DescribeBudgetRequest) : this() {
this.accountId = x.accountId
this.budgetName = x.budgetName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.DescribeBudgetRequest = DescribeBudgetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}