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

commonMain.aws.sdk.kotlin.services.sns.model.GetPlatformApplicationAttributesResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sns.model



/**
 * Response for `GetPlatformApplicationAttributes` action.
 */
public class GetPlatformApplicationAttributesResponse private constructor(builder: Builder) {
    /**
     * Attributes include the following:
     * + `AppleCertificateExpiryDate` – The expiry date of the SSL certificate used to configure certificate-based authentication.
     * + `ApplePlatformTeamID` – The Apple developer account ID used to configure token-based authentication.
     * + `ApplePlatformBundleID` – The app identifier used to configure token-based authentication.
     * + `AuthenticationMethod` – Returns the credential type used when sending push notifications from application to APNS/APNS_Sandbox, or application to GCM.
     *    + APNS – Returns the token or certificate.
     *    + GCM – Returns the token or key.
     * + `EventEndpointCreated` – Topic ARN to which EndpointCreated event notifications should be sent.
     * + `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event notifications should be sent.
     * + `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event notifications should be sent.
     * + `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.
     */
    public val attributes: Map? = builder.attributes

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

    override fun toString(): kotlin.String = buildString {
        append("GetPlatformApplicationAttributesResponse(")
        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 GetPlatformApplicationAttributesResponse

        if (attributes != other.attributes) return false

        return true
    }

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

    public class Builder {
        /**
         * Attributes include the following:
         * + `AppleCertificateExpiryDate` – The expiry date of the SSL certificate used to configure certificate-based authentication.
         * + `ApplePlatformTeamID` – The Apple developer account ID used to configure token-based authentication.
         * + `ApplePlatformBundleID` – The app identifier used to configure token-based authentication.
         * + `AuthenticationMethod` – Returns the credential type used when sending push notifications from application to APNS/APNS_Sandbox, or application to GCM.
         *    + APNS – Returns the token or certificate.
         *    + GCM – Returns the token or key.
         * + `EventEndpointCreated` – Topic ARN to which EndpointCreated event notifications should be sent.
         * + `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event notifications should be sent.
         * + `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event notifications should be sent.
         * + `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.
         */
        public var attributes: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sns.model.GetPlatformApplicationAttributesResponse) : this() {
            this.attributes = x.attributes
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy