@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the channel type and other settings for an endpoint.
Constructor and Description |
---|
EndpointRequest() |
Modifier and Type | Method and Description |
---|---|
EndpointRequest |
addAttributesEntry(String key,
List<String> value)
Add a single Attributes entry
|
EndpointRequest |
addMetricsEntry(String key,
Double value)
Add a single Metrics entry
|
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 address for messages or push notifications that you send to the endpoint.
|
Map<String,List<String>> |
getAttributes()
One or more custom attributes that describe the endpoint by associating a name with an array of values.
|
String |
getChannelType()
The channel to use when sending messages or push notifications to the endpoint.
|
EndpointDemographic |
getDemographic()
The demographic information for the endpoint, such as the time zone and platform.
|
String |
getEffectiveDate()
The date and time, in ISO 8601 format, when the endpoint is updated.
|
String |
getEndpointStatus()
Specifies whether to send messages or push notifications to the endpoint.
|
EndpointLocation |
getLocation()
The geographic information for the endpoint.
|
Map<String,Double> |
getMetrics()
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
|
String |
getOptOut()
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you.
|
String |
getRequestId()
The unique identifier for the most recent request to update the endpoint.
|
EndpointUser |
getUser()
One or more custom attributes that describe the user who's associated with the endpoint.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddress(String address)
The destination address for messages or push notifications that you send to the endpoint.
|
void |
setAttributes(Map<String,List<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values.
|
void |
setChannelType(ChannelType channelType)
The channel to use when sending messages or push notifications to the endpoint.
|
void |
setChannelType(String channelType)
The channel to use when sending messages or push notifications to the endpoint.
|
void |
setDemographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
|
void |
setEffectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint is updated.
|
void |
setEndpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint.
|
void |
setLocation(EndpointLocation location)
The geographic information for the endpoint.
|
void |
setMetrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
|
void |
setOptOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you.
|
void |
setRequestId(String requestId)
The unique identifier for the most recent request to update the endpoint.
|
void |
setUser(EndpointUser user)
One or more custom attributes that describe the user who's associated with the endpoint.
|
String |
toString()
Returns a string representation of this object.
|
EndpointRequest |
withAddress(String address)
The destination address for messages or push notifications that you send to the endpoint.
|
EndpointRequest |
withAttributes(Map<String,List<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values.
|
EndpointRequest |
withChannelType(ChannelType channelType)
The channel to use when sending messages or push notifications to the endpoint.
|
EndpointRequest |
withChannelType(String channelType)
The channel to use when sending messages or push notifications to the endpoint.
|
EndpointRequest |
withDemographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
|
EndpointRequest |
withEffectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint is updated.
|
EndpointRequest |
withEndpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint.
|
EndpointRequest |
withLocation(EndpointLocation location)
The geographic information for the endpoint.
|
EndpointRequest |
withMetrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
|
EndpointRequest |
withOptOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you.
|
EndpointRequest |
withRequestId(String requestId)
The unique identifier for the most recent request to update the endpoint.
|
EndpointRequest |
withUser(EndpointUser user)
One or more custom attributes that describe the user who's associated with the endpoint.
|
public void setAddress(String address)
The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For a push-notification channel, use the token provided by the push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (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.
address
- The destination address for messages or push notifications that you send to the endpoint. The address
varies by channel. For a push-notification channel, use the token provided by the push notification
service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging
(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()
The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For a push-notification channel, use the token provided by the push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (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 EndpointRequest withAddress(String address)
The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For a push-notification channel, use the token provided by the push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (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.
address
- The destination address for messages or push notifications that you send to the endpoint. The address
varies by channel. For a push-notification channel, use the token provided by the push notification
service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging
(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()
One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
public void setAttributes(Map<String,List<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
attributes
- One or more custom attributes that describe the endpoint by associating a name with an array of values.
For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You
can use these attributes as filter criteria when you create segments. Attribute names are case
sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
public EndpointRequest withAttributes(Map<String,List<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
attributes
- One or more custom attributes that describe the endpoint by associating a name with an array of values.
For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You
can use these attributes as filter criteria when you create segments. Attribute names are case
sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
public EndpointRequest addAttributesEntry(String key, List<String> value)
public EndpointRequest clearAttributesEntries()
public void setChannelType(String channelType)
The channel to use when sending messages or push notifications to the endpoint.
channelType
- The channel to use when sending messages or push notifications to the endpoint.ChannelType
public String getChannelType()
The channel to use when sending messages or push notifications to the endpoint.
ChannelType
public EndpointRequest withChannelType(String channelType)
The channel to use when sending messages or push notifications to the endpoint.
channelType
- The channel to use when sending messages or push notifications to the endpoint.ChannelType
public void setChannelType(ChannelType channelType)
The channel to use when sending messages or push notifications to the endpoint.
channelType
- The channel to use when sending messages or push notifications to the endpoint.ChannelType
public EndpointRequest withChannelType(ChannelType channelType)
The channel to use when sending messages or push notifications to the endpoint.
channelType
- The channel to use when sending messages or push notifications to the endpoint.ChannelType
public void setDemographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
demographic
- The demographic information for the endpoint, such as the time zone and platform.public EndpointDemographic getDemographic()
The demographic information for the endpoint, such as the time zone and platform.
public EndpointRequest withDemographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
demographic
- The demographic information for the endpoint, such as the time zone and platform.public void setEffectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint is updated.
effectiveDate
- The date and time, in ISO 8601 format, when the endpoint is updated.public String getEffectiveDate()
The date and time, in ISO 8601 format, when the endpoint is updated.
public EndpointRequest withEffectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint is updated.
effectiveDate
- The date and time, in ISO 8601 format, when the endpoint is updated.public void setEndpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
endpointStatus
- Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE,
messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
public String getEndpointStatus()
Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
public EndpointRequest withEndpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
endpointStatus
- Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE,
messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
public void setLocation(EndpointLocation location)
The geographic information for the endpoint.
location
- The geographic information for the endpoint.public EndpointLocation getLocation()
The geographic information for the endpoint.
public EndpointRequest withLocation(EndpointLocation location)
The geographic information for the endpoint.
location
- The geographic information for the endpoint.public Map<String,Double> getMetrics()
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
public void setMetrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
metrics
- One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.public EndpointRequest withMetrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
metrics
- One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.public EndpointRequest addMetricsEntry(String key, Double value)
public EndpointRequest clearMetricsEntries()
public void setOptOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.
optOut
- Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any
messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and
push notifications.public String getOptOut()
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.
public EndpointRequest withOptOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.
optOut
- Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any
messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and
push notifications.public void setRequestId(String requestId)
The unique identifier for the most recent request to update the endpoint.
requestId
- The unique identifier for the most recent request to update the endpoint.public String getRequestId()
The unique identifier for the most recent request to update the endpoint.
public EndpointRequest withRequestId(String requestId)
The unique identifier for the most recent request to update the endpoint.
requestId
- The unique identifier for the most recent request to update the endpoint.public void setUser(EndpointUser user)
One or more custom attributes that describe the user who's associated with the endpoint.
user
- One or more custom attributes that describe the user who's associated with the endpoint.public EndpointUser getUser()
One or more custom attributes that describe the user who's associated with the endpoint.
public EndpointRequest withUser(EndpointUser user)
One or more custom attributes that describe the user who's associated with the endpoint.
user
- One or more custom attributes that describe the user who's associated with the endpoint.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.