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

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

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

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



/**
 * Request of DescribeSubscribersForNotification
 */
public class DescribeSubscribersForNotificationRequest private constructor(builder: Builder) {
    /**
     * The `accountId` that is associated with the budget whose subscribers you want descriptions of.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The name of the budget whose subscribers you want descriptions of.
     */
    public val budgetName: kotlin.String? = builder.budgetName
    /**
     * An optional integer that represents how many entries a paginated response contains. The maximum is 100.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The notification whose subscribers you want to list.
     */
    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.DescribeSubscribersForNotificationRequest = Builder().apply(block).build()
    }

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * The `accountId` that is associated with the budget whose subscribers you want descriptions of.
         */
        public var accountId: kotlin.String? = null
        /**
         * The name of the budget whose subscribers you want descriptions of.
         */
        public var budgetName: kotlin.String? = null
        /**
         * An optional integer that represents how many entries a paginated response contains. The maximum is 100.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The notification whose subscribers you want to list.
         */
        public var notification: aws.sdk.kotlin.services.budgets.model.Notification? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.budgets.model.DescribeSubscribersForNotificationRequest = DescribeSubscribersForNotificationRequest(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