commonMain.aws.sdk.kotlin.services.budgets.model.DescribeBudgetsRequest.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 DescribeBudgets
*/
public class DescribeBudgetsRequest private constructor(builder: Builder) {
/**
* The `accountId` that is associated with the budgets that you want to describe.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* An integer that represents how many budgets a paginated response contains. The default is 100.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.DescribeBudgetsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeBudgetsRequest(")
append("accountId=$accountId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 DescribeBudgetsRequest
if (accountId != other.accountId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DescribeBudgetsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The `accountId` that is associated with the budgets that you want to describe.
*/
public var accountId: kotlin.String? = null
/**
* An integer that represents how many budgets a paginated response contains. The default is 100.
*/
public var maxResults: kotlin.Int? = null
/**
* The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.DescribeBudgetsRequest) : this() {
this.accountId = x.accountId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.DescribeBudgetsRequest = DescribeBudgetsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}