public class EndpointBatchItem
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EndpointBatchItem() |
Modifier and Type | Method and Description |
---|---|
EndpointBatchItem |
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.
|
EndpointBatchItem |
addMetricsEntry(java.lang.String key,
java.lang.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(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()
The endpoint demographic attributes.
|
java.lang.String |
getEffectiveDate()
The last time the endpoint was updated.
|
java.lang.String |
getEndpointStatus()
Unused.
|
java.lang.String |
getId()
The unique Id for the Endpoint in the batch.
|
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)
The endpoint demographic attributes.
|
void |
setEffectiveDate(java.lang.String effectiveDate)
The last time the endpoint was updated.
|
void |
setEndpointStatus(java.lang.String endpointStatus)
Unused.
|
void |
setId(java.lang.String id)
The unique Id for the Endpoint in the batch.
|
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.
|
EndpointBatchItem |
withAddress(java.lang.String address)
The destination for messages that you send to this endpoint.
|
EndpointBatchItem |
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.
|
EndpointBatchItem |
withChannelType(ChannelType channelType)
The channel type.
|
EndpointBatchItem |
withChannelType(java.lang.String channelType)
The channel type.
|
EndpointBatchItem |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointBatchItem |
withEffectiveDate(java.lang.String effectiveDate)
The last time the endpoint was updated.
|
EndpointBatchItem |
withEndpointStatus(java.lang.String endpointStatus)
Unused.
|
EndpointBatchItem |
withId(java.lang.String id)
The unique Id for the Endpoint in the batch.
|
EndpointBatchItem |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointBatchItem |
withMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointBatchItem |
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.
|
EndpointBatchItem |
withRequestId(java.lang.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 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 EndpointBatchItem 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 EndpointBatchItem 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 EndpointBatchItem 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 EndpointBatchItem 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 EndpointBatchItem 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 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, 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
- 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 java.lang.String getEffectiveDate()
public void setEffectiveDate(java.lang.String effectiveDate)
effectiveDate
- The last time the endpoint was updated. Provided in
ISO 8601 format.public EndpointBatchItem withEffectiveDate(java.lang.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 java.lang.String getEndpointStatus()
public void setEndpointStatus(java.lang.String endpointStatus)
endpointStatus
- Unused.public EndpointBatchItem withEndpointStatus(java.lang.String endpointStatus)
Returns a reference to this object so that method calls can be chained together.
endpointStatus
- Unused.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The unique Id for the Endpoint in the batch.public EndpointBatchItem withId(java.lang.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 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 EndpointBatchItem 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 EndpointBatchItem 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 EndpointBatchItem 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 EndpointBatchItem 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 EndpointBatchItem 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 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 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.