public class EndpointBatchItem extends Object implements Serializable
| Constructor and Description |
|---|
EndpointBatchItem() |
| Modifier and Type | Method and Description |
|---|---|
EndpointBatchItem |
addAttributesEntry(String key,
List<String> value)
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
EndpointBatchItem |
addMetricsEntry(String key,
Double value)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointBatchItem |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
EndpointBatchItem |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(Object obj) |
String |
getAddress()
The address or token of the endpoint as provided by your push provider
(e.g.
|
Map<String,List<String>> |
getAttributes()
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
String |
getChannelType()
The channel type.
|
EndpointDemographic |
getDemographic()
The endpoint demographic attributes.
|
String |
getEffectiveDate()
The last time the endpoint was updated.
|
String |
getEndpointStatus()
The endpoint status.
|
String |
getId()
The unique Id for the Endpoint in the batch.
|
EndpointLocation |
getLocation()
The endpoint location attributes.
|
Map<String,Double> |
getMetrics()
Custom metrics that your app reports to Amazon Pinpoint.
|
String |
getOptOut()
Indicates whether a user has opted out of receiving messages with one of
the following values: ALL - User has opted out of all messages.
|
String |
getRequestId()
The unique ID for the most recent request to update the endpoint.
|
EndpointUser |
getUser()
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
int |
hashCode() |
void |
setAddress(String address)
The address or token of the endpoint as provided by your push provider
(e.g.
|
void |
setAttributes(Map<String,List<String>> attributes)
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
void |
setChannelType(ChannelType channelType)
The channel type.
|
void |
setChannelType(String channelType)
The channel type.
|
void |
setDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
void |
setEffectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
void |
setEndpointStatus(String endpointStatus)
The endpoint status.
|
void |
setId(String id)
The unique Id for the Endpoint in the batch.
|
void |
setLocation(EndpointLocation location)
The endpoint location attributes.
|
void |
setMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
void |
setOptOut(String optOut)
Indicates whether a user has opted out of receiving messages with one of
the following values: ALL - User has opted out of all messages.
|
void |
setRequestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
void |
setUser(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointBatchItem |
withAddress(String address)
The address or token of the endpoint as provided by your push provider
(e.g.
|
EndpointBatchItem |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
EndpointBatchItem |
withChannelType(ChannelType channelType)
The channel type.
|
EndpointBatchItem |
withChannelType(String channelType)
The channel type.
|
EndpointBatchItem |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointBatchItem |
withEffectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
EndpointBatchItem |
withEndpointStatus(String endpointStatus)
The endpoint status.
|
EndpointBatchItem |
withId(String id)
The unique Id for the Endpoint in the batch.
|
EndpointBatchItem |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointBatchItem |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointBatchItem |
withOptOut(String optOut)
Indicates whether a user has opted out of receiving messages with one of
the following values: ALL - User has opted out of all messages.
|
EndpointBatchItem |
withRequestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
EndpointBatchItem |
withUser(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
public String getAddress()
public void setAddress(String address)
address - The address or token of the endpoint as provided by your
push provider (e.g. DeviceToken or RegistrationId).public EndpointBatchItem withAddress(String address)
Returns a reference to this object so that method calls can be chained together.
address - The address or token of the endpoint as provided by your
push provider (e.g. DeviceToken or RegistrationId).public Map<String,List<String>> getAttributes()
public void setAttributes(Map<String,List<String>> attributes)
attributes - Custom attributes that describe the endpoint by
associating a name with an array of values. For example, an
attribute named "interests" might have the values ["science",
"politics", "travel"]. You can use these attributes as
selection criteria when you create a segment of users to
engage with a messaging campaign. The following characters are
not recommended in attribute names: # : ? \ /. The Amazon
Pinpoint console does not display attributes that include
these characters in the name. This limitation does not apply
to attribute values.public EndpointBatchItem withAttributes(Map<String,List<String>> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - Custom attributes that describe the endpoint by
associating a name with an array of values. For example, an
attribute named "interests" might have the values ["science",
"politics", "travel"]. You can use these attributes as
selection criteria when you create a segment of users to
engage with a messaging campaign. The following characters are
not recommended in attribute names: # : ? \ /. The Amazon
Pinpoint console does not display attributes that include
these characters in the name. This limitation does not apply
to attribute values.public EndpointBatchItem addAttributesEntry(String key, List<String> value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into
Attributes.public EndpointBatchItem clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getChannelType()
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
ChannelTypepublic void setChannelType(String channelType)
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelTypepublic EndpointBatchItem withChannelType(String channelType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelTypepublic void setChannelType(ChannelType channelType)
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelTypepublic EndpointBatchItem withChannelType(ChannelType channelType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelTypepublic EndpointDemographic getDemographic()
public void setDemographic(EndpointDemographic demographic)
demographic - The endpoint demographic attributes.public EndpointBatchItem withDemographic(EndpointDemographic demographic)
Returns a reference to this object so that method calls can be chained together.
demographic - The endpoint demographic attributes.public String getEffectiveDate()
public void setEffectiveDate(String effectiveDate)
effectiveDate - The last time the endpoint was updated. Provided in
ISO 8601 format.public EndpointBatchItem withEffectiveDate(String effectiveDate)
Returns a reference to this object so that method calls can be chained together.
effectiveDate - The last time the endpoint was updated. Provided in
ISO 8601 format.public String getEndpointStatus()
public void setEndpointStatus(String endpointStatus)
endpointStatus - The endpoint status. Can be either ACTIVE or
INACTIVE. Will be set to INACTIVE if a delivery fails. Will be
set to ACTIVE if the address is updated.public EndpointBatchItem withEndpointStatus(String endpointStatus)
Returns a reference to this object so that method calls can be chained together.
endpointStatus - The endpoint status. Can be either ACTIVE or
INACTIVE. Will be set to INACTIVE if a delivery fails. Will be
set to ACTIVE if the address is updated.public String getId()
public void setId(String id)
id - The unique Id for the Endpoint in the batch.public EndpointBatchItem withId(String id)
Returns a reference to this object so that method calls can be chained together.
id - The unique Id for the Endpoint in the batch.public EndpointLocation getLocation()
public void setLocation(EndpointLocation location)
location - The endpoint location attributes.public EndpointBatchItem withLocation(EndpointLocation location)
Returns a reference to this object so that method calls can be chained together.
location - The endpoint location attributes.public Map<String,Double> getMetrics()
public void setMetrics(Map<String,Double> metrics)
metrics - Custom metrics that your app reports to Amazon Pinpoint.public EndpointBatchItem withMetrics(Map<String,Double> metrics)
Returns a reference to this object so that method calls can be chained together.
metrics - Custom metrics that your app reports to Amazon Pinpoint.public EndpointBatchItem addMetricsEntry(String key, Double value)
The method adds a new key-value pair into Metrics parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Metrics.value - The corresponding value of the entry to be added into
Metrics.public EndpointBatchItem clearMetricsEntries()
Returns a reference to this object so that method calls can be chained together.
public String getOptOut()
public void setOptOut(String optOut)
optOut - Indicates whether a user has opted out of receiving
messages with one of the following values: ALL - User has
opted out of all messages. NONE - Users has not opted out and
receives all messages.public EndpointBatchItem withOptOut(String optOut)
Returns a reference to this object so that method calls can be chained together.
optOut - Indicates whether a user has opted out of receiving
messages with one of the following values: ALL - User has
opted out of all messages. NONE - Users has not opted out and
receives all messages.public String getRequestId()
public void setRequestId(String requestId)
requestId - The unique ID for the most recent request to update the
endpoint.public EndpointBatchItem withRequestId(String requestId)
Returns a reference to this object so that method calls can be chained together.
requestId - The unique ID for the most recent request to update the
endpoint.public EndpointUser getUser()
public void setUser(EndpointUser user)
user - Custom user-specific attributes that your app reports to
Amazon Pinpoint.public EndpointBatchItem withUser(EndpointUser user)
Returns a reference to this object so that method calls can be chained together.
user - Custom user-specific attributes that your app reports to
Amazon Pinpoint.public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.