
commonMain.aws.sdk.kotlin.services.budgets.model.BudgetNotificationsForAccount.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
/**
* The budget name and associated notifications for an account.
*/
public class BudgetNotificationsForAccount private constructor(builder: Builder) {
/**
* A string that represents the budget name. The ":" and "\" characters aren't allowed.
*/
public val budgetName: kotlin.String? = builder.budgetName
/**
* A list of notifications.
*/
public val notifications: List? = builder.notifications
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.BudgetNotificationsForAccount = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BudgetNotificationsForAccount(")
append("budgetName=$budgetName,")
append("notifications=$notifications)")
}
override fun hashCode(): kotlin.Int {
var result = budgetName?.hashCode() ?: 0
result = 31 * result + (notifications?.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 BudgetNotificationsForAccount
if (budgetName != other.budgetName) return false
if (notifications != other.notifications) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.BudgetNotificationsForAccount = Builder(this).apply(block).build()
public class Builder {
/**
* A string that represents the budget name. The ":" and "\" characters aren't allowed.
*/
public var budgetName: kotlin.String? = null
/**
* A list of notifications.
*/
public var notifications: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.BudgetNotificationsForAccount) : this() {
this.budgetName = x.budgetName
this.notifications = x.notifications
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.BudgetNotificationsForAccount = BudgetNotificationsForAccount(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy