@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 address or token of the endpoint as provided by your push provider (e.g.
|
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 last time the endpoint was updated.
|
String |
getEndpointStatus()
The endpoint status.
|
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 address or token of the endpoint as provided by your push provider (e.g.
|
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 last time the endpoint was updated.
|
void |
setEndpointStatus(String endpointStatus)
The endpoint status.
|
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; useful for testing and debugging.
|
EndpointBatchItem |
withAddress(String address)
The address or token of the endpoint as provided by your push provider (e.g.
|
EndpointBatchItem |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
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)
The endpoint status.
|
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 address or token of the endpoint as provided by your push provider (e.g. DeviceToken or
RegistrationId).public String getAddress()
public EndpointBatchItem withAddress(String address)
address
- The address or token of the endpoint as provided by your push provider (e.g. DeviceToken or
RegistrationId).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 EndpointBatchItem withAttributes(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 EndpointBatchItem addAttributesEntry(String key, List<String> value)
public EndpointBatchItem clearAttributesEntries()
public void setChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public String getChannelType()
ChannelType
public EndpointBatchItem withChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public void setChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public EndpointBatchItem withChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
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
- The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE if a delivery fails. Will
be set to ACTIVE if the address is updated.public String getEndpointStatus()
public EndpointBatchItem withEndpointStatus(String endpointStatus)
endpointStatus
- The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE if a delivery fails. Will
be set to ACTIVE if the address is updated.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.