@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointRequest extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
EndpointRequest() |
Modifier and Type | Method and Description |
---|---|
EndpointRequest |
addAttributesEntry(String key,
List<String> value) |
EndpointRequest |
addMetricsEntry(String key,
Double value) |
EndpointRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
EndpointRequest |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
EndpointRequest |
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.
|
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 |
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.
|
EndpointRequest |
withAddress(String address)
The address or token of the endpoint as provided by your push provider (e.g.
|
EndpointRequest |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
EndpointRequest |
withChannelType(ChannelType channelType)
The channel type.
|
EndpointRequest |
withChannelType(String channelType)
The channel type.
|
EndpointRequest |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointRequest |
withEffectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
EndpointRequest |
withEndpointStatus(String endpointStatus)
The endpoint status.
|
EndpointRequest |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointRequest |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointRequest |
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.
|
EndpointRequest |
withRequestId(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 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest addAttributesEntry(String key, List<String> value)
public EndpointRequest clearAttributesEntries()
public void setChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public String getChannelType()
ChannelType
public EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 setLocation(EndpointLocation location)
location
- The endpoint location attributes.public EndpointLocation getLocation()
public EndpointRequest 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 EndpointRequest withMetrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.public EndpointRequest addMetricsEntry(String key, Double value)
public EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest 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.