
commonMain.aws.sdk.kotlin.services.budgets.model.DescribeBudgetActionHistoriesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
public class DescribeBudgetActionHistoriesRequest 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 aren't allowed.
*/
public val budgetName: kotlin.String? = builder.budgetName
/**
* An integer that represents how many entries a paginated response contains. The maximum is 100.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* A generic string.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The period of time that's covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
*/
public val timePeriod: aws.sdk.kotlin.services.budgets.model.TimePeriod? = builder.timePeriod
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.DescribeBudgetActionHistoriesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeBudgetActionHistoriesRequest(")
append("accountId=$accountId,")
append("actionId=$actionId,")
append("budgetName=$budgetName,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("timePeriod=$timePeriod)")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (actionId?.hashCode() ?: 0)
result = 31 * result + (budgetName?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (timePeriod?.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 DescribeBudgetActionHistoriesRequest
if (accountId != other.accountId) return false
if (actionId != other.actionId) return false
if (budgetName != other.budgetName) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (timePeriod != other.timePeriod) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DescribeBudgetActionHistoriesRequest = 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 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 aren't allowed.
*/
public var budgetName: kotlin.String? = null
/**
* An integer that represents how many entries a paginated response contains. The maximum is 100.
*/
public var maxResults: kotlin.Int? = null
/**
* A generic string.
*/
public var nextToken: kotlin.String? = null
/**
* The period of time that's covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
*/
public var timePeriod: aws.sdk.kotlin.services.budgets.model.TimePeriod? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.DescribeBudgetActionHistoriesRequest) : this() {
this.accountId = x.accountId
this.actionId = x.actionId
this.budgetName = x.budgetName
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.timePeriod = x.timePeriod
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.DescribeBudgetActionHistoriesRequest = DescribeBudgetActionHistoriesRequest(this)
/**
* construct an [aws.sdk.kotlin.services.budgets.model.TimePeriod] inside the given [block]
*/
public fun timePeriod(block: aws.sdk.kotlin.services.budgets.model.TimePeriod.Builder.() -> kotlin.Unit) {
this.timePeriod = aws.sdk.kotlin.services.budgets.model.TimePeriod.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy