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

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

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

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



/**
 * Request of DeleteNotification
 */
public class DeleteNotificationRequest private constructor(builder: Builder) {
    /**
     * The `accountId` that is associated with the budget whose notification you want to delete.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The name of the budget whose notification you want to delete.
     */
    public val budgetName: kotlin.String? = builder.budgetName
    /**
     * The notification that you want to delete.
     */
    public val notification: aws.sdk.kotlin.services.budgets.model.Notification? = builder.notification

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteNotificationRequest(")
        append("accountId=$accountId,")
        append("budgetName=$budgetName,")
        append("notification=$notification)")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (budgetName?.hashCode() ?: 0)
        result = 31 * result + (notification?.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 DeleteNotificationRequest

        if (accountId != other.accountId) return false
        if (budgetName != other.budgetName) return false
        if (notification != other.notification) return false

        return true
    }

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

    public class Builder {
        /**
         * The `accountId` that is associated with the budget whose notification you want to delete.
         */
        public var accountId: kotlin.String? = null
        /**
         * The name of the budget whose notification you want to delete.
         */
        public var budgetName: kotlin.String? = null
        /**
         * The notification that you want to delete.
         */
        public var notification: aws.sdk.kotlin.services.budgets.model.Notification? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.budgets.model.DeleteNotificationRequest) : this() {
            this.accountId = x.accountId
            this.budgetName = x.budgetName
            this.notification = x.notification
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.budgets.model.Notification] inside the given [block]
         */
        public fun notification(block: aws.sdk.kotlin.services.budgets.model.Notification.Builder.() -> kotlin.Unit) {
            this.notification = aws.sdk.kotlin.services.budgets.model.Notification.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy