public class PublicEndpoint
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
PublicEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
PublicEndpoint |
addAttributesEntry(java.lang.String key,
java.util.List<java.lang.String> value)
Custom attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
addMetricsEntry(java.lang.String key,
java.lang.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(java.lang.Object obj) |
java.lang.String |
getAddress()
The unique identifier for the recipient.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAttributes()
Custom attributes that your app reports to Amazon Pinpoint.
|
java.lang.String |
getChannelType()
The channel type.
|
EndpointDemographic |
getDemographic()
The endpoint demographic attributes.
|
java.lang.String |
getEffectiveDate()
The date and time when the endpoint was last updated, in ISO 8601 format.
|
java.lang.String |
getEndpointStatus()
The status of the endpoint.
|
EndpointLocation |
getLocation()
The endpoint location attributes.
|
java.util.Map<java.lang.String,java.lang.Double> |
getMetrics()
Custom metrics that your app reports to Amazon Pinpoint.
|
java.lang.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.
|
java.lang.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(java.lang.String address)
The unique identifier for the recipient.
|
void |
setAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
void |
setChannelType(ChannelType channelType)
The channel type.
|
void |
setChannelType(java.lang.String channelType)
The channel type.
|
void |
setDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
void |
setEffectiveDate(java.lang.String effectiveDate)
The date and time when the endpoint was last updated, in ISO 8601 format.
|
void |
setEndpointStatus(java.lang.String endpointStatus)
The status of the endpoint.
|
void |
setLocation(EndpointLocation location)
The endpoint location attributes.
|
void |
setMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
void |
setOptOut(java.lang.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(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PublicEndpoint |
withAddress(java.lang.String address)
The unique identifier for the recipient.
|
PublicEndpoint |
withAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
withChannelType(ChannelType channelType)
The channel type.
|
PublicEndpoint |
withChannelType(java.lang.String channelType)
The channel type.
|
PublicEndpoint |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
PublicEndpoint |
withEffectiveDate(java.lang.String effectiveDate)
The date and time when the endpoint was last updated, in ISO 8601 format.
|
PublicEndpoint |
withEndpointStatus(java.lang.String endpointStatus)
The status of the endpoint.
|
PublicEndpoint |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
PublicEndpoint |
withMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
withOptOut(java.lang.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(java.lang.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 java.lang.String getAddress()
public void setAddress(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.lang.String key, java.util.List<java.lang.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 java.lang.String getChannelType()
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
ChannelTypepublic void setChannelType(java.lang.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(java.lang.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 java.lang.String getEffectiveDate()
public void setEffectiveDate(java.lang.String effectiveDate)
effectiveDate - The date and time when the endpoint was last
updated, in ISO 8601 format.public PublicEndpoint withEffectiveDate(java.lang.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 java.lang.String getEndpointStatus()
public void setEndpointStatus(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.Double> getMetrics()
public void setMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
metrics - Custom metrics that your app reports to Amazon Pinpoint.public PublicEndpoint withMetrics(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.String getOptOut()
public void setOptOut(java.lang.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(java.lang.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 java.lang.String getRequestId()
public void setRequestId(java.lang.String requestId)
requestId - A unique identifier that is generated each time the
endpoint is updated.public PublicEndpoint withRequestId(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.