public class PublicEndpoint extends Object implements Serializable
| Constructor and Description |
|---|
PublicEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
PublicEndpoint |
addAttributesEntry(String key,
List<String> value)
Custom attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
addMetricsEntry(String key,
Double value)
Custom metrics that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
PublicEndpoint |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(Object obj) |
String |
getAddress()
The unique identifier for the recipient.
|
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 date and time when the endpoint was last updated, in ISO 8601 format.
|
String |
getEndpointStatus()
The status of the endpoint.
|
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()
A unique identifier that is generated each time the endpoint is updated.
|
EndpointUser |
getUser()
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
int |
hashCode() |
void |
setAddress(String address)
The unique identifier for the recipient.
|
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 date and time when the endpoint was last updated, in ISO 8601 format.
|
void |
setEndpointStatus(String endpointStatus)
The status of the endpoint.
|
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)
A unique identifier that is generated each time the endpoint is updated.
|
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.
|
PublicEndpoint |
withAddress(String address)
The unique identifier for the recipient.
|
PublicEndpoint |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
withChannelType(ChannelType channelType)
The channel type.
|
PublicEndpoint |
withChannelType(String channelType)
The channel type.
|
PublicEndpoint |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
PublicEndpoint |
withEffectiveDate(String effectiveDate)
The date and time when the endpoint was last updated, in ISO 8601 format.
|
PublicEndpoint |
withEndpointStatus(String endpointStatus)
The status of the endpoint.
|
PublicEndpoint |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
PublicEndpoint |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
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.
|
PublicEndpoint |
withRequestId(String requestId)
A unique identifier that is generated each time the endpoint is updated.
|
PublicEndpoint |
withUser(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
public String getAddress()
public void setAddress(String address)
address - The unique identifier for the recipient. For example, an
address could be a device token, email address, or mobile
phone number.public PublicEndpoint withAddress(String address)
Returns a reference to this object so that method calls can be chained together.
address - The unique identifier for the recipient. For example, an
address could be a device token, email address, or mobile
phone number.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 PublicEndpoint 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 PublicEndpoint 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 PublicEndpoint 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, VOICE, EMAIL, BAIDU, CUSTOM
ChannelTypepublic void setChannelType(String channelType)
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic PublicEndpoint 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, VOICE, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic void setChannelType(ChannelType channelType)
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic PublicEndpoint 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, VOICE, EMAIL, BAIDU, CUSTOM
channelType - The channel type. Valid values: APNS, GCMChannelTypepublic EndpointDemographic getDemographic()
public void setDemographic(EndpointDemographic demographic)
demographic - The endpoint demographic attributes.public PublicEndpoint 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 date and time when the endpoint was last
updated, in ISO 8601 format.public PublicEndpoint withEffectiveDate(String effectiveDate)
Returns a reference to this object so that method calls can be chained together.
effectiveDate - The date and time when the endpoint was last
updated, in ISO 8601 format.public String getEndpointStatus()
public void setEndpointStatus(String endpointStatus)
endpointStatus - The status of the endpoint. If the update fails,
the value is INACTIVE. If the endpoint is updated
successfully, the value is ACTIVE.public PublicEndpoint withEndpointStatus(String endpointStatus)
Returns a reference to this object so that method calls can be chained together.
endpointStatus - The status of the endpoint. If the update fails,
the value is INACTIVE. If the endpoint is updated
successfully, the value is ACTIVE.public EndpointLocation getLocation()
public void setLocation(EndpointLocation location)
location - The endpoint location attributes.public PublicEndpoint 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 PublicEndpoint 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 PublicEndpoint 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 PublicEndpoint 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 PublicEndpoint 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 - A unique identifier that is generated each time the
endpoint is updated.public PublicEndpoint withRequestId(String requestId)
Returns a reference to this object so that method calls can be chained together.
requestId - A unique identifier that is generated each time the
endpoint is updated.public EndpointUser getUser()
public void setUser(EndpointUser user)
user - Custom user-specific attributes that your app reports to
Amazon Pinpoint.public PublicEndpoint 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 © 2019. All rights reserved.