@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GCMChannelResponse extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the status and settings of the GCM channel for an application. The GCM channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
Constructor and Description |
---|
GCMChannelResponse() |
Modifier and Type | Method and Description |
---|---|
GCMChannelResponse |
clone() |
boolean |
equals(Object obj) |
String |
getApplicationId()
The unique identifier for the application that the GCM channel applies to.
|
String |
getCreationDate()
The date and time when the GCM channel was enabled.
|
String |
getCredential()
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to
communicate with Google services.
|
String |
getDefaultAuthenticationMethod()
The default authentication method used for GCM.
|
Boolean |
getEnabled()
Specifies whether the GCM channel is enabled for the application.
|
Boolean |
getHasCredential()
(Not used) This property is retained only for backward compatibility.
|
Boolean |
getHasFcmServiceCredentials()
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson
field of the request.
|
String |
getId()
(Deprecated) An identifier for the GCM channel.
|
Boolean |
getIsArchived()
Specifies whether the GCM channel is archived.
|
String |
getLastModifiedBy()
The user who last modified the GCM channel.
|
String |
getLastModifiedDate()
The date and time when the GCM channel was last modified.
|
String |
getPlatform()
The type of messaging or notification platform for the channel.
|
Integer |
getVersion()
The current version of the GCM channel.
|
int |
hashCode() |
Boolean |
isArchived()
Specifies whether the GCM channel is archived.
|
Boolean |
isEnabled()
Specifies whether the GCM channel is enabled for the application.
|
Boolean |
isHasCredential()
(Not used) This property is retained only for backward compatibility.
|
Boolean |
isHasFcmServiceCredentials()
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson
field of the request.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApplicationId(String applicationId)
The unique identifier for the application that the GCM channel applies to.
|
void |
setCreationDate(String creationDate)
The date and time when the GCM channel was enabled.
|
void |
setCredential(String credential)
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 |
setDefaultAuthenticationMethod(String defaultAuthenticationMethod)
The default authentication method used for GCM.
|
void |
setEnabled(Boolean enabled)
Specifies whether the GCM channel is enabled for the application.
|
void |
setHasCredential(Boolean hasCredential)
(Not used) This property is retained only for backward compatibility.
|
void |
setHasFcmServiceCredentials(Boolean hasFcmServiceCredentials)
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson
field of the request.
|
void |
setId(String id)
(Deprecated) An identifier for the GCM channel.
|
void |
setIsArchived(Boolean isArchived)
Specifies whether the GCM channel is archived.
|
void |
setLastModifiedBy(String lastModifiedBy)
The user who last modified the GCM channel.
|
void |
setLastModifiedDate(String lastModifiedDate)
The date and time when the GCM channel was last modified.
|
void |
setPlatform(String platform)
The type of messaging or notification platform for the channel.
|
void |
setVersion(Integer version)
The current version of the GCM channel.
|
String |
toString()
Returns a string representation of this object.
|
GCMChannelResponse |
withApplicationId(String applicationId)
The unique identifier for the application that the GCM channel applies to.
|
GCMChannelResponse |
withCreationDate(String creationDate)
The date and time when the GCM channel was enabled.
|
GCMChannelResponse |
withCredential(String credential)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to
communicate with Google services.
|
GCMChannelResponse |
withDefaultAuthenticationMethod(String defaultAuthenticationMethod)
The default authentication method used for GCM.
|
GCMChannelResponse |
withEnabled(Boolean enabled)
Specifies whether the GCM channel is enabled for the application.
|
GCMChannelResponse |
withHasCredential(Boolean hasCredential)
(Not used) This property is retained only for backward compatibility.
|
GCMChannelResponse |
withHasFcmServiceCredentials(Boolean hasFcmServiceCredentials)
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson
field of the request.
|
GCMChannelResponse |
withId(String id)
(Deprecated) An identifier for the GCM channel.
|
GCMChannelResponse |
withIsArchived(Boolean isArchived)
Specifies whether the GCM channel is archived.
|
GCMChannelResponse |
withLastModifiedBy(String lastModifiedBy)
The user who last modified the GCM channel.
|
GCMChannelResponse |
withLastModifiedDate(String lastModifiedDate)
The date and time when the GCM channel was last modified.
|
GCMChannelResponse |
withPlatform(String platform)
The type of messaging or notification platform for the channel.
|
GCMChannelResponse |
withVersion(Integer version)
The current version of the GCM channel.
|
public void setApplicationId(String applicationId)
The unique identifier for the application that the GCM channel applies to.
applicationId
- The unique identifier for the application that the GCM channel applies to.public String getApplicationId()
The unique identifier for the application that the GCM channel applies to.
public GCMChannelResponse withApplicationId(String applicationId)
The unique identifier for the application that the GCM channel applies to.
applicationId
- The unique identifier for the application that the GCM channel applies to.public void setCreationDate(String creationDate)
The date and time when the GCM channel was enabled.
creationDate
- The date and time when the GCM channel was enabled.public String getCreationDate()
The date and time when the GCM channel was enabled.
public GCMChannelResponse withCreationDate(String creationDate)
The date and time when the GCM channel was enabled.
creationDate
- The date and time when the GCM channel was enabled.public void setCredential(String credential)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
credential
- 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 getCredential()
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 GCMChannelResponse withCredential(String credential)
The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
credential
- 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 setDefaultAuthenticationMethod(String defaultAuthenticationMethod)
The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
defaultAuthenticationMethod
- The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".public String getDefaultAuthenticationMethod()
The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
public GCMChannelResponse withDefaultAuthenticationMethod(String defaultAuthenticationMethod)
The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
defaultAuthenticationMethod
- The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".public void setEnabled(Boolean enabled)
Specifies whether the GCM channel is enabled for the application.
enabled
- Specifies whether the GCM channel is enabled for the application.public Boolean getEnabled()
Specifies whether the GCM channel is enabled for the application.
public GCMChannelResponse withEnabled(Boolean enabled)
Specifies whether the GCM channel is enabled for the application.
enabled
- Specifies whether the GCM channel is enabled for the application.public Boolean isEnabled()
Specifies whether the GCM channel is enabled for the application.
public void setHasCredential(Boolean hasCredential)
(Not used) This property is retained only for backward compatibility.
hasCredential
- (Not used) This property is retained only for backward compatibility.public Boolean getHasCredential()
(Not used) This property is retained only for backward compatibility.
public GCMChannelResponse withHasCredential(Boolean hasCredential)
(Not used) This property is retained only for backward compatibility.
hasCredential
- (Not used) This property is retained only for backward compatibility.public Boolean isHasCredential()
(Not used) This property is retained only for backward compatibility.
public void setHasFcmServiceCredentials(Boolean hasFcmServiceCredentials)
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson field of the request.
hasFcmServiceCredentials
- Returns true if the JSON file provided by Google during registration process was used in the
ServiceJson field of the request.public Boolean getHasFcmServiceCredentials()
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson field of the request.
public GCMChannelResponse withHasFcmServiceCredentials(Boolean hasFcmServiceCredentials)
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson field of the request.
hasFcmServiceCredentials
- Returns true if the JSON file provided by Google during registration process was used in the
ServiceJson field of the request.public Boolean isHasFcmServiceCredentials()
Returns true if the JSON file provided by Google during registration process was used in the ServiceJson field of the request.
public void setId(String id)
(Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.
id
- (Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.public String getId()
(Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.
public GCMChannelResponse withId(String id)
(Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.
id
- (Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.public void setIsArchived(Boolean isArchived)
Specifies whether the GCM channel is archived.
isArchived
- Specifies whether the GCM channel is archived.public Boolean getIsArchived()
Specifies whether the GCM channel is archived.
public GCMChannelResponse withIsArchived(Boolean isArchived)
Specifies whether the GCM channel is archived.
isArchived
- Specifies whether the GCM channel is archived.public Boolean isArchived()
Specifies whether the GCM channel is archived.
public void setLastModifiedBy(String lastModifiedBy)
The user who last modified the GCM channel.
lastModifiedBy
- The user who last modified the GCM channel.public String getLastModifiedBy()
The user who last modified the GCM channel.
public GCMChannelResponse withLastModifiedBy(String lastModifiedBy)
The user who last modified the GCM channel.
lastModifiedBy
- The user who last modified the GCM channel.public void setLastModifiedDate(String lastModifiedDate)
The date and time when the GCM channel was last modified.
lastModifiedDate
- The date and time when the GCM channel was last modified.public String getLastModifiedDate()
The date and time when the GCM channel was last modified.
public GCMChannelResponse withLastModifiedDate(String lastModifiedDate)
The date and time when the GCM channel was last modified.
lastModifiedDate
- The date and time when the GCM channel was last modified.public void setPlatform(String platform)
The type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.
platform
- The type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.public String getPlatform()
The type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.
public GCMChannelResponse withPlatform(String platform)
The type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.
platform
- The type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.public void setVersion(Integer version)
The current version of the GCM channel.
version
- The current version of the GCM channel.public Integer getVersion()
The current version of the GCM channel.
public GCMChannelResponse withVersion(Integer version)
The current version of the GCM channel.
version
- The current version of the GCM channel.public String toString()
toString
in class Object
Object.toString()
public GCMChannelResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.