
commonMain.aws.sdk.kotlin.services.sns.model.GetEndpointAttributesResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sns.model
/**
* Response from `GetEndpointAttributes` of the `EndpointArn`.
*/
public class GetEndpointAttributesResponse private constructor(builder: Builder) {
/**
* Attributes include the following:
* + `CustomUserData` – arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
* + `Enabled` – flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.
* + `Token` – device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.The device token for the iOS platform is returned in lowercase.
*/
public val attributes: Map? = builder.attributes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sns.model.GetEndpointAttributesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEndpointAttributesResponse(")
append("attributes=$attributes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.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 GetEndpointAttributesResponse
if (attributes != other.attributes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sns.model.GetEndpointAttributesResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Attributes include the following:
* + `CustomUserData` – arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
* + `Enabled` – flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.
* + `Token` – device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.The device token for the iOS platform is returned in lowercase.
*/
public var attributes: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sns.model.GetEndpointAttributesResponse) : this() {
this.attributes = x.attributes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sns.model.GetEndpointAttributesResponse = GetEndpointAttributesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy