
commonMain.aws.sdk.kotlin.services.budgets.model.DeleteSubscriberRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
/**
* Request of DeleteSubscriber
*/
public class DeleteSubscriberRequest private constructor(builder: Builder) {
/**
* The `accountId` that is associated with the budget whose subscriber you want to delete.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The name of the budget whose subscriber you want to delete.
*/
public val budgetName: kotlin.String? = builder.budgetName
/**
* The notification whose subscriber you want to delete.
*/
public val notification: aws.sdk.kotlin.services.budgets.model.Notification? = builder.notification
/**
* The subscriber that you want to delete.
*/
public val subscriber: aws.sdk.kotlin.services.budgets.model.Subscriber? = builder.subscriber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.DeleteSubscriberRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteSubscriberRequest(")
append("accountId=$accountId,")
append("budgetName=$budgetName,")
append("notification=$notification,")
append("subscriber=$subscriber)")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (budgetName?.hashCode() ?: 0)
result = 31 * result + (notification?.hashCode() ?: 0)
result = 31 * result + (subscriber?.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 DeleteSubscriberRequest
if (accountId != other.accountId) return false
if (budgetName != other.budgetName) return false
if (notification != other.notification) return false
if (subscriber != other.subscriber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DeleteSubscriberRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The `accountId` that is associated with the budget whose subscriber you want to delete.
*/
public var accountId: kotlin.String? = null
/**
* The name of the budget whose subscriber you want to delete.
*/
public var budgetName: kotlin.String? = null
/**
* The notification whose subscriber you want to delete.
*/
public var notification: aws.sdk.kotlin.services.budgets.model.Notification? = null
/**
* The subscriber that you want to delete.
*/
public var subscriber: aws.sdk.kotlin.services.budgets.model.Subscriber? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.DeleteSubscriberRequest) : this() {
this.accountId = x.accountId
this.budgetName = x.budgetName
this.notification = x.notification
this.subscriber = x.subscriber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.DeleteSubscriberRequest = DeleteSubscriberRequest(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)
}
/**
* construct an [aws.sdk.kotlin.services.budgets.model.Subscriber] inside the given [block]
*/
public fun subscriber(block: aws.sdk.kotlin.services.budgets.model.Subscriber.Builder.() -> kotlin.Unit) {
this.subscriber = aws.sdk.kotlin.services.budgets.model.Subscriber.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy