public class EndpointRequest
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EndpointRequest() |
Modifier and Type | Method and Description |
---|---|
EndpointRequest |
addAttributesEntry(java.lang.String key,
java.util.List<java.lang.String> value)
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
EndpointRequest |
addMetricsEntry(java.lang.String key,
java.lang.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(java.lang.Object obj) |
java.lang.String |
getAddress()
The destination for messages that you send to this endpoint.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAttributes()
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
java.lang.String |
getChannelType()
The channel type.
|
EndpointDemographic |
getDemographic()
Demographic attributes for the endpoint.
|
java.lang.String |
getEffectiveDate()
The date and time when the endpoint was updated, shown in ISO 8601
format.
|
java.lang.String |
getEndpointStatus()
Unused.
|
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()
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(java.lang.String address)
The destination for messages that you send to this endpoint.
|
void |
setAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.lang.String channelType)
The channel type.
|
void |
setDemographic(EndpointDemographic demographic)
Demographic attributes for the endpoint.
|
void |
setEffectiveDate(java.lang.String effectiveDate)
The date and time when the endpoint was updated, shown in ISO 8601
format.
|
void |
setEndpointStatus(java.lang.String endpointStatus)
Unused.
|
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)
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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointRequest |
withAddress(java.lang.String address)
The destination for messages that you send to this endpoint.
|
EndpointRequest |
withAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
Custom attributes that describe the endpoint by associating a name with
an array of values.
|
EndpointRequest |
withChannelType(ChannelType channelType)
The channel type.
|
EndpointRequest |
withChannelType(java.lang.String channelType)
The channel type.
|
EndpointRequest |
withDemographic(EndpointDemographic demographic)
Demographic attributes for the endpoint.
|
EndpointRequest |
withEffectiveDate(java.lang.String effectiveDate)
The date and time when the endpoint was updated, shown in ISO 8601
format.
|
EndpointRequest |
withEndpointStatus(java.lang.String endpointStatus)
Unused.
|
EndpointRequest |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointRequest |
withMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointRequest |
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.
|
EndpointRequest |
withRequestId(java.lang.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 java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- The destination for messages that you send to this
endpoint. The address varies by channel. For mobile push
channels, use the token provided by the push notification
service, such as the APNs device token or the FCM registration
token. For the SMS channel, use a phone number in E.164
format, such as +12065550100. For the email channel, use an
email address.public EndpointRequest withAddress(java.lang.String address)
Returns a reference to this object so that method calls can be chained together.
address
- The destination for messages that you send to this
endpoint. The address varies by channel. For mobile push
channels, use the token provided by the push notification
service, such as the APNs device token or the FCM registration
token. For the SMS channel, use a phone number in E.164
format, such as +12065550100. For the email channel, use an
email address.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 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 EndpointRequest 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 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 EndpointRequest 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 EndpointRequest 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
ChannelType
public 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: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public EndpointRequest 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: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public 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: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public EndpointRequest 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: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public EndpointDemographic getDemographic()
public void setDemographic(EndpointDemographic demographic)
demographic
- Demographic attributes for the endpoint.public EndpointRequest withDemographic(EndpointDemographic demographic)
Returns a reference to this object so that method calls can be chained together.
demographic
- Demographic attributes for the endpoint.public java.lang.String getEffectiveDate()
public void setEffectiveDate(java.lang.String effectiveDate)
effectiveDate
- The date and time when the endpoint was updated,
shown in ISO 8601 format.public EndpointRequest 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 updated,
shown in ISO 8601 format.public java.lang.String getEndpointStatus()
public void setEndpointStatus(java.lang.String endpointStatus)
endpointStatus
- Unused.public EndpointRequest withEndpointStatus(java.lang.String endpointStatus)
Returns a reference to this object so that method calls can be chained together.
endpointStatus
- Unused.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 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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
- The unique ID for the most recent request to update the
endpoint.public EndpointRequest withRequestId(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.