Class GcmCredential
- java.lang.Object
-
- com.azure.resourcemanager.notificationhubs.models.GcmCredential
-
public final class GcmCredential extends Object
Description of a NotificationHub GcmCredential.
-
-
Constructor Summary
Constructors Constructor Description GcmCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
gcmEndpoint()
Get the gcmEndpoint property: The FCM legacy endpoint.String
googleApiKey()
Get the googleApiKey property: The Google API key.void
validate()
Validates the instance.GcmCredential
withGcmEndpoint(String gcmEndpoint)
Set the gcmEndpoint property: The FCM legacy endpoint.GcmCredential
withGoogleApiKey(String googleApiKey)
Set the googleApiKey property: The Google API key.
-
-
-
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 GcmCredential 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 GcmCredential object itself.
-
googleApiKey
public String googleApiKey()
Get the googleApiKey property: The Google API key.- Returns:
- the googleApiKey value.
-
withGoogleApiKey
public GcmCredential withGoogleApiKey(String googleApiKey)
Set the googleApiKey property: The Google API key.- Parameters:
googleApiKey
- the googleApiKey value to set.- Returns:
- the GcmCredential object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-