@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointBatchItem extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
EndpointBatchItem() |
Modifier and Type | Method and Description |
---|---|
EndpointBatchItem |
addAttributesEntry(String key,
List<String> value) |
EndpointBatchItem |
addMetricsEntry(String key,
Double value) |
EndpointBatchItem |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
EndpointBatchItem |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
EndpointBatchItem |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
The destination for messages that you send to this endpoint.
|
Map<String,List<String>> |
getAttributes()
Custom attributes that describe the endpoint by associating a name with an array of values.
|
String |
getChannelType()
The channel type.
|
EndpointDemographic |
getDemographic()
The endpoint demographic attributes.
|
String |
getEffectiveDate()
The last time the endpoint was updated.
|
String |
getEndpointStatus()
Unused.
|
String |
getId()
The unique Id for the Endpoint in the batch.
|
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()
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddress(String address)
The destination for messages that you send to this endpoint.
|
void |
setAttributes(Map<String,List<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(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)
Unused.
|
void |
setId(String id)
The unique Id for the Endpoint in the batch.
|
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)
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.
|
EndpointBatchItem |
withAddress(String address)
The destination for messages that you send to this endpoint.
|
EndpointBatchItem |
withAttributes(Map<String,List<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(String channelType)
The channel type.
|
EndpointBatchItem |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointBatchItem |
withEffectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
EndpointBatchItem |
withEndpointStatus(String endpointStatus)
Unused.
|
EndpointBatchItem |
withId(String id)
The unique Id for the Endpoint in the batch.
|
EndpointBatchItem |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointBatchItem |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointBatchItem |
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.
|
EndpointBatchItem |
withRequestId(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 void setAddress(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 String getAddress()
public EndpointBatchItem withAddress(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 Map<String,List<String>> getAttributes()
public void setAttributes(Map<String,List<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(Map<String,List<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 addAttributesEntry(String key, List<String> value)
public EndpointBatchItem clearAttributesEntries()
public void setChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
public String getChannelType()
ChannelType
public EndpointBatchItem withChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
public void setChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
public EndpointBatchItem withChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
public void setDemographic(EndpointDemographic demographic)
demographic
- The endpoint demographic attributes.public EndpointDemographic getDemographic()
public EndpointBatchItem withDemographic(EndpointDemographic demographic)
demographic
- The endpoint demographic attributes.public void setEffectiveDate(String effectiveDate)
effectiveDate
- The last time the endpoint was updated. Provided in ISO 8601 format.public String getEffectiveDate()
public EndpointBatchItem withEffectiveDate(String effectiveDate)
effectiveDate
- The last time the endpoint was updated. Provided in ISO 8601 format.public void setEndpointStatus(String endpointStatus)
endpointStatus
- Unused.public String getEndpointStatus()
public EndpointBatchItem withEndpointStatus(String endpointStatus)
endpointStatus
- Unused.public void setId(String id)
id
- The unique Id for the Endpoint in the batch.public String getId()
public EndpointBatchItem withId(String id)
id
- The unique Id for the Endpoint in the batch.public void setLocation(EndpointLocation location)
location
- The endpoint location attributes.public EndpointLocation getLocation()
public EndpointBatchItem withLocation(EndpointLocation location)
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 EndpointBatchItem withMetrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.public EndpointBatchItem addMetricsEntry(String key, Double value)
public EndpointBatchItem clearMetricsEntries()
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 String getOptOut()
public EndpointBatchItem withOptOut(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 void setRequestId(String requestId)
requestId
- The unique ID for the most recent request to update the endpoint.public String getRequestId()
public EndpointBatchItem withRequestId(String requestId)
requestId
- The unique ID for the most recent request to update the endpoint.public void setUser(EndpointUser user)
user
- Custom user-specific attributes that your app reports to Amazon Pinpoint.public EndpointUser getUser()
public EndpointBatchItem withUser(EndpointUser user)
user
- Custom user-specific attributes that your app reports to Amazon Pinpoint.public String toString()
toString
in class Object
Object.toString()
public EndpointBatchItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.