Class GcmCredentialProperties


  • public final class GcmCredentialProperties
    extends Object
    Description of a NotificationHub GcmCredential.
    • Constructor Detail

      • GcmCredentialProperties

        public GcmCredentialProperties()
    • Method Detail

      • gcmEndpoint

        public String gcmEndpoint()
        Get the gcmEndpoint property: The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send'.
        Returns:
        the gcmEndpoint value.
      • withGcmEndpoint

        public GcmCredentialProperties withGcmEndpoint​(String gcmEndpoint)
        Set the gcmEndpoint property: The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send'.
        Parameters:
        gcmEndpoint - the gcmEndpoint value to set.
        Returns:
        the GcmCredentialProperties object itself.
      • googleApiKey

        public String googleApiKey()
        Get the googleApiKey property: The Google API key.
        Returns:
        the googleApiKey value.
      • withGoogleApiKey

        public GcmCredentialProperties withGoogleApiKey​(String googleApiKey)
        Set the googleApiKey property: The Google API key.
        Parameters:
        googleApiKey - the googleApiKey value to set.
        Returns:
        the GcmCredentialProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.