GcmCredential Class
- java.
lang. Object - com.
azure. resourcemanager. notificationhubs. models. GcmCredential
- com.
Implements
public final class GcmCredential
implements JsonSerializable<GcmCredential>
Description of a NotificationHub GcmCredential.
Constructor Summary
| Constructor | Description |
|---|---|
| GcmCredential() |
Creates an instance of Gcm |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Gcm |
fromJson(JsonReader jsonReader)
Reads an instance of Gcm |
| String |
gcmEndpoint()
Get the gcm |
| String |
googleApiKey()
Get the google |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Gcm |
withGcmEndpoint(String gcmEndpoint)
Set the gcm |
|
Gcm |
withGoogleApiKey(String googleApiKey)
Set the google |
Methods inherited from java.lang.Object
Constructor Details
GcmCredential
public GcmCredential()
Creates an instance of GcmCredential class.
Method Details
fromJson
public static GcmCredential fromJson(JsonReader jsonReader)
Reads an instance of GcmCredential from the JsonReader.
Parameters:
Returns:
Throws:
gcmEndpoint
public String gcmEndpoint()
Get the gcmEndpoint property: Gets or sets the GCM endpoint.
Returns:
googleApiKey
public String googleApiKey()
Get the googleApiKey property: Gets or sets the Google API key.
Returns:
toJson
validate
public void validate()
Validates the instance.
withGcmEndpoint
public GcmCredential withGcmEndpoint(String gcmEndpoint)
Set the gcmEndpoint property: Gets or sets the GCM endpoint.
Parameters:
Returns:
withGoogleApiKey
public GcmCredential withGoogleApiKey(String googleApiKey)
Set the googleApiKey property: Gets or sets the Google API key.
Parameters:
Returns: