@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GCMChannelRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the status and settings of the GCM channel for an application. This channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
Constructor and Description |
---|
GCMChannelRequest() |
Modifier and Type | Method and Description |
---|---|
GCMChannelRequest |
clone() |
boolean |
equals(Object obj) |
String |
getApiKey()
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to
communicate with Google services.
|
Boolean |
getEnabled()
Specifies whether to enable the GCM channel for the application.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether to enable the GCM channel for the application.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApiKey(String apiKey)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to
communicate with Google services.
|
void |
setEnabled(Boolean enabled)
Specifies whether to enable the GCM channel for the application.
|
String |
toString()
Returns a string representation of this object.
|
GCMChannelRequest |
withApiKey(String apiKey)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to
communicate with Google services.
|
GCMChannelRequest |
withEnabled(Boolean enabled)
Specifies whether to enable the GCM channel for the application.
|
public void setApiKey(String apiKey)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
apiKey
- The Web API Key, also referred to as an API_KEY or server key, that you received from Google
to communicate with Google services.public String getApiKey()
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
public GCMChannelRequest withApiKey(String apiKey)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
apiKey
- The Web API Key, also referred to as an API_KEY or server key, that you received from Google
to communicate with Google services.public void setEnabled(Boolean enabled)
Specifies whether to enable the GCM channel for the application.
enabled
- Specifies whether to enable the GCM channel for the application.public Boolean getEnabled()
Specifies whether to enable the GCM channel for the application.
public GCMChannelRequest withEnabled(Boolean enabled)
Specifies whether to enable the GCM channel for the application.
enabled
- Specifies whether to enable the GCM channel for the application.public Boolean isEnabled()
Specifies whether to enable the GCM channel for the application.
public String toString()
toString
in class Object
Object.toString()
public GCMChannelRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.