
commonMain.aws.sdk.kotlin.services.budgets.model.DescribeSubscribersForNotificationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
/**
* Response of DescribeSubscribersForNotification
*/
public class DescribeSubscribersForNotificationResponse 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 subscribers that are associated with a notification.
*/
public val subscribers: List? = builder.subscribers
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.DescribeSubscribersForNotificationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeSubscribersForNotificationResponse(")
append("nextToken=$nextToken,")
append("subscribers=$subscribers)")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (subscribers?.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 DescribeSubscribersForNotificationResponse
if (nextToken != other.nextToken) return false
if (subscribers != other.subscribers) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.DescribeSubscribersForNotificationResponse = 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 subscribers that are associated with a notification.
*/
public var subscribers: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.DescribeSubscribersForNotificationResponse) : this() {
this.nextToken = x.nextToken
this.subscribers = x.subscribers
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.DescribeSubscribersForNotificationResponse = DescribeSubscribersForNotificationResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy