@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PublicEndpoint extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the properties and attributes of an endpoint that's associated with an event.
Constructor and Description |
---|
PublicEndpoint() |
Modifier and Type | Method and Description |
---|---|
PublicEndpoint |
addAttributesEntry(String key,
List<String> value)
Add a single Attributes entry
|
PublicEndpoint |
addMetricsEntry(String key,
Double value)
Add a single Metrics entry
|
PublicEndpoint |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
PublicEndpoint |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
PublicEndpoint |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
The unique identifier for the recipient, such as a device token, email address, or mobile phone number.
|
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 that's used 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 was last 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()
A unique identifier that's generated each time the endpoint is updated.
|
EndpointUser |
getUser()
One or more custom user attributes that your app reports to Amazon Pinpoint for 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 unique identifier for the recipient, such as a device token, email address, or mobile phone number.
|
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(String channelType)
The channel that's used 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 was last 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)
A unique identifier that's generated each time the endpoint is updated.
|
void |
setUser(EndpointUser user)
One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with
the endpoint.
|
String |
toString()
Returns a string representation of this object.
|
PublicEndpoint |
withAddress(String address)
The unique identifier for the recipient, such as a device token, email address, or mobile phone number.
|
PublicEndpoint |
withAttributes(Map<String,List<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values.
|
PublicEndpoint |
withChannelType(ChannelType channelType)
The channel that's used when sending messages or push notifications to the endpoint.
|
PublicEndpoint |
withChannelType(String channelType)
The channel that's used when sending messages or push notifications to the endpoint.
|
PublicEndpoint |
withDemographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
|
PublicEndpoint |
withEffectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint was last updated.
|
PublicEndpoint |
withEndpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint.
|
PublicEndpoint |
withLocation(EndpointLocation location)
The geographic information for the endpoint.
|
PublicEndpoint |
withMetrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
|
PublicEndpoint |
withOptOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you.
|
PublicEndpoint |
withRequestId(String requestId)
A unique identifier that's generated each time the endpoint is updated.
|
PublicEndpoint |
withUser(EndpointUser user)
One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with
the endpoint.
|
public void setAddress(String address)
The unique identifier for the recipient, such as a device token, email address, or mobile phone number.
address
- The unique identifier for the recipient, such as a device token, email address, or mobile phone number.public String getAddress()
The unique identifier for the recipient, such as a device token, email address, or mobile phone number.
public PublicEndpoint withAddress(String address)
The unique identifier for the recipient, such as a device token, email address, or mobile phone number.
address
- The unique identifier for the recipient, such as a device token, email address, or mobile phone number.public Map<String,List<String>> getAttributes()
One or more custom attributes that describe the endpoint by associating a name with an array of values. You can use these attributes as filter criteria when you create segments.
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. You can use these attributes as filter criteria when you create segments.
attributes
- One or more custom attributes that describe the endpoint by associating a name with an array of values.
You can use these attributes as filter criteria when you create segments.public PublicEndpoint withAttributes(Map<String,List<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values. You can use these attributes as filter criteria when you create segments.
attributes
- One or more custom attributes that describe the endpoint by associating a name with an array of values.
You can use these attributes as filter criteria when you create segments.public PublicEndpoint addAttributesEntry(String key, List<String> value)
public PublicEndpoint clearAttributesEntries()
public void setChannelType(String channelType)
The channel that's used when sending messages or push notifications to the endpoint.
channelType
- The channel that's used when sending messages or push notifications to the endpoint.ChannelType
public String getChannelType()
The channel that's used when sending messages or push notifications to the endpoint.
ChannelType
public PublicEndpoint withChannelType(String channelType)
The channel that's used when sending messages or push notifications to the endpoint.
channelType
- The channel that's used when sending messages or push notifications to the endpoint.ChannelType
public PublicEndpoint withChannelType(ChannelType channelType)
The channel that's used when sending messages or push notifications to the endpoint.
channelType
- The channel that's used 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 PublicEndpoint 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 was last updated.
effectiveDate
- The date and time, in ISO 8601 format, when the endpoint was last updated.public String getEffectiveDate()
The date and time, in ISO 8601 format, when the endpoint was last updated.
public PublicEndpoint withEffectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint was last updated.
effectiveDate
- The date and time, in ISO 8601 format, when the endpoint was last 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 PublicEndpoint 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 PublicEndpoint 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 PublicEndpoint 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 PublicEndpoint addMetricsEntry(String key, Double value)
public PublicEndpoint 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 PublicEndpoint 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)
A unique identifier that's generated each time the endpoint is updated.
requestId
- A unique identifier that's generated each time the endpoint is updated.public String getRequestId()
A unique identifier that's generated each time the endpoint is updated.
public PublicEndpoint withRequestId(String requestId)
A unique identifier that's generated each time the endpoint is updated.
requestId
- A unique identifier that's generated each time the endpoint is updated.public void setUser(EndpointUser user)
One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.
user
- One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated
with the endpoint.public EndpointUser getUser()
One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.
public PublicEndpoint withUser(EndpointUser user)
One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.
user
- One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated
with the endpoint.public String toString()
toString
in class Object
Object.toString()
public PublicEndpoint clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.