@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PublicEndpoint extends Object implements Serializable, Cloneable, StructuredPojo
| Constructor and Description |
|---|
PublicEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
PublicEndpoint |
addAttributesEntry(String key,
List<String> value) |
PublicEndpoint |
addMetricsEntry(String key,
Double value) |
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.
|
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 date and time when the endpoint was last updated, in ISO 8601 format.
|
String |
getEndpointStatus()
The status of the endpoint.
|
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()
A unique identifier that is generated each time the endpoint is updated.
|
EndpointUser |
getUser()
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAddress(String address)
The unique identifier for the recipient.
|
void |
setAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
void |
setChannelType(String channelType)
The channel type.
|
void |
setDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
void |
setEffectiveDate(String effectiveDate)
The date and time when the endpoint was last updated, in ISO 8601 format.
|
void |
setEndpointStatus(String endpointStatus)
The status of the endpoint.
|
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)
A unique identifier that is generated each time the endpoint is updated.
|
void |
setUser(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
String |
toString()
Returns a string representation of this object.
|
PublicEndpoint |
withAddress(String address)
The unique identifier for the recipient.
|
PublicEndpoint |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
withChannelType(ChannelType channelType)
The channel type.
|
PublicEndpoint |
withChannelType(String channelType)
The channel type.
|
PublicEndpoint |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
PublicEndpoint |
withEffectiveDate(String effectiveDate)
The date and time when the endpoint was last updated, in ISO 8601 format.
|
PublicEndpoint |
withEndpointStatus(String endpointStatus)
The status of the endpoint.
|
PublicEndpoint |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
PublicEndpoint |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
PublicEndpoint |
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.
|
PublicEndpoint |
withRequestId(String requestId)
A unique identifier that is generated each time the endpoint is updated.
|
PublicEndpoint |
withUser(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
public void setAddress(String address)
address - The unique identifier for the recipient. For example, an address could be a device token, email address,
or mobile phone number.public String getAddress()
public PublicEndpoint withAddress(String address)
address - The unique identifier for the recipient. For example, an address could be a device token, email address,
or mobile phone number.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 PublicEndpoint 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 PublicEndpoint addAttributesEntry(String key, List<String> value)
public PublicEndpoint clearAttributesEntries()
public void setChannelType(String channelType)
channelType - The channel type.
Valid values: APNS, GCMChannelTypepublic String getChannelType()
ChannelTypepublic PublicEndpoint withChannelType(String channelType)
channelType - The channel type.
Valid values: APNS, GCMChannelTypepublic PublicEndpoint withChannelType(ChannelType channelType)
channelType - The channel type.
Valid values: APNS, GCMChannelTypepublic void setDemographic(EndpointDemographic demographic)
demographic - The endpoint demographic attributes.public EndpointDemographic getDemographic()
public PublicEndpoint withDemographic(EndpointDemographic demographic)
demographic - The endpoint demographic attributes.public void setEffectiveDate(String effectiveDate)
effectiveDate - The date and time when the endpoint was last updated, in ISO 8601 format.public String getEffectiveDate()
public PublicEndpoint withEffectiveDate(String effectiveDate)
effectiveDate - The date and time when the endpoint was last updated, in ISO 8601 format.public void setEndpointStatus(String endpointStatus)
endpointStatus - The status of the endpoint. If the update fails, the value is INACTIVE. If the endpoint is updated
successfully, the value is ACTIVE.public String getEndpointStatus()
public PublicEndpoint withEndpointStatus(String endpointStatus)
endpointStatus - The status of the endpoint. If the update fails, the value is INACTIVE. If the endpoint is updated
successfully, the value is ACTIVE.public void setLocation(EndpointLocation location)
location - The endpoint location attributes.public EndpointLocation getLocation()
public PublicEndpoint 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 PublicEndpoint withMetrics(Map<String,Double> metrics)
metrics - Custom metrics that your app reports to Amazon Pinpoint.public PublicEndpoint addMetricsEntry(String key, Double value)
public PublicEndpoint 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 PublicEndpoint 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 - A unique identifier that is generated each time the endpoint is updated.public String getRequestId()
public PublicEndpoint withRequestId(String requestId)
requestId - A unique identifier that is generated each time the endpoint is updated.public void setUser(EndpointUser user)
user - Custom user-specific attributes that your app reports to Amazon Pinpoint.public EndpointUser getUser()
public PublicEndpoint withUser(EndpointUser user)
user - Custom user-specific attributes that your app reports to Amazon Pinpoint.public String toString()
toString in class ObjectObject.toString()public PublicEndpoint clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.