public class EndpointRequest extends Object implements Serializable
| Constructor and Description |
|---|
EndpointRequest() |
| Modifier and Type | Method and Description |
|---|---|
EndpointRequest |
addAttributesEntry(String key,
List<String> value)
Custom attributes that your app reports to Amazon Pinpoint.
|
EndpointRequest |
addMetricsEntry(String key,
Double value)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
EndpointRequest |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(Object obj) |
String |
getAddress()
The address or token of the endpoint.
|
Map<String,List<String>> |
getAttributes()
Custom attributes that your app reports to Amazon Pinpoint.
|
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.
|
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 receives 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.
|
void |
setAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
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 |
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 receives 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.
|
EndpointRequest |
withAddress(String address)
The address or token of the endpoint.
|
EndpointRequest |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
EndpointRequest |
withChannelType(ChannelType channelType)
The channel type.
|
EndpointRequest |
withChannelType(String channelType)
The channel type.
|
EndpointRequest |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointRequest |
withEffectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
EndpointRequest |
withEndpointStatus(String endpointStatus)
The endpoint status.
|
EndpointRequest |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointRequest |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointRequest |
withOptOut(String optOut)
Indicates whether a user has opted out of receiving messages with one of
the following values: ALL – User receives all messages.
|
EndpointRequest |
withRequestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
EndpointRequest |
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.public EndpointRequest 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.public Map<String,List<String>> getAttributes()
public void setAttributes(Map<String,List<String>> attributes)
attributes - Custom attributes that your app reports to Amazon
Pinpoint. You can use these attributes as selection criteria
when you create a segment.public EndpointRequest withAttributes(Map<String,List<String>> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - Custom attributes that your app reports to Amazon
Pinpoint. You can use these attributes as selection criteria
when you create a segment.public EndpointRequest 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 EndpointRequest clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getChannelType()
Constraints:
Allowed Values: APNS, GCM
ChannelTypepublic void setChannelType(String channelType)
Constraints:
Allowed Values: APNS, GCM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic EndpointRequest withChannelType(String channelType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: APNS, GCM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic void setChannelType(ChannelType channelType)
Constraints:
Allowed Values: APNS, GCM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic EndpointRequest withChannelType(ChannelType channelType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: APNS, GCM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic EndpointDemographic getDemographic()
public void setDemographic(EndpointDemographic demographic)
demographic - The endpoint demographic attributes.public EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointLocation getLocation()
public void setLocation(EndpointLocation location)
location - The endpoint location attributes.public EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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
receives all messages. NONE – User receives no messages.public EndpointRequest 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
receives all messages. NONE – User receives no messages.public String getRequestId()
public void setRequestId(String requestId)
requestId - The unique ID for the most recent request to update the
endpoint.public EndpointRequest 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 EndpointRequest 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 © 2017. All rights reserved.