All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.budgets.model.DescribeNotificationsForBudgetResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.budgets.model



/**
 * Response of GetNotificationsForBudget
 */
public class DescribeNotificationsForBudgetResponse private constructor(builder: Builder) {
    /**
     * The pagination token in the service response that indicates the next set of results that you can retrieve.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * A list of notifications that are associated with a budget.
     */
    public val notifications: List? = builder.notifications

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.DescribeNotificationsForBudgetResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeNotificationsForBudgetResponse(")
        append("nextToken=$nextToken,")
        append("notifications=$notifications)")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextToken?.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 DescribeNotificationsForBudgetResponse

        if (nextToken != other.nextToken) return false
        if (notifications != other.notifications) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DescribeNotificationsForBudgetResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The pagination token in the service response that indicates the next set of results that you can retrieve.
         */
        public var nextToken: kotlin.String? = null
        /**
         * A list of notifications that are associated with a budget.
         */
        public var notifications: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.budgets.model.DescribeNotificationsForBudgetResponse) : this() {
            this.nextToken = x.nextToken
            this.notifications = x.notifications
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.budgets.model.DescribeNotificationsForBudgetResponse = DescribeNotificationsForBudgetResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy