@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 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()
Demographic attributes for the endpoint.
|
String |
getEffectiveDate()
The date and time when the endpoint was updated, shown in ISO 8601 format.
|
String |
getEndpointStatus()
Unused.
|
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)
Demographic attributes for the endpoint.
|
void |
setEffectiveDate(String effectiveDate)
The date and time when the endpoint was updated, shown in ISO 8601 format.
|
void |
setEndpointStatus(String endpointStatus)
Unused.
|
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.
|
EndpointRequest |
withAddress(String address)
The destination for messages that you send to this endpoint.
|
EndpointRequest |
withAttributes(Map<String,List<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(String channelType)
The channel type.
|
EndpointRequest |
withDemographic(EndpointDemographic demographic)
Demographic attributes for the endpoint.
|
EndpointRequest |
withEffectiveDate(String effectiveDate)
The date and time when the endpoint was updated, shown in ISO 8601 format.
|
EndpointRequest |
withEndpointStatus(String endpointStatus)
Unused.
|
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 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 EndpointRequest 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 EndpointRequest 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 EndpointRequest addAttributesEntry(String key, List<String> value)
public EndpointRequest 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 EndpointRequest 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 EndpointRequest 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
- Demographic attributes for the endpoint.public EndpointDemographic getDemographic()
public EndpointRequest withDemographic(EndpointDemographic demographic)
demographic
- Demographic attributes for the endpoint.public void setEffectiveDate(String effectiveDate)
effectiveDate
- The date and time when the endpoint was updated, shown in ISO 8601 format.public String getEffectiveDate()
public EndpointRequest withEffectiveDate(String effectiveDate)
effectiveDate
- The date and time when the endpoint was updated, shown in ISO 8601 format.public void setEndpointStatus(String endpointStatus)
endpointStatus
- Unused.public String getEndpointStatus()
public EndpointRequest withEndpointStatus(String endpointStatus)
endpointStatus
- Unused.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.