@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointResponse extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
EndpointResponse() |
Modifier and Type | Method and Description |
---|---|
EndpointResponse |
addAttributesEntry(String key,
List<String> value) |
EndpointResponse |
addMetricsEntry(String key,
Double value) |
EndpointResponse |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
EndpointResponse |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
EndpointResponse |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
The address or token of the endpoint as provided by your push provider (e.g.
|
String |
getApplicationId()
The ID of the application associated with the endpoint.
|
Map<String,List<String>> |
getAttributes()
Custom attributes that your app reports to Amazon Pinpoint.
|
String |
getChannelType()
The channel type.
|
String |
getCohortId()
A number from 0 - 99 that represents the cohort the endpoint is assigned to.
|
String |
getCreationDate()
The last time the endpoint was created.
|
EndpointDemographic |
getDemographic()
The endpoint demographic attributes.
|
String |
getEffectiveDate()
The last time the endpoint was updated.
|
String |
getEndpointStatus()
The endpoint status.
|
String |
getId()
The unique ID that you assigned to 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()
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 |
setApplicationId(String applicationId)
The ID of the application associated with the endpoint.
|
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 |
setCohortId(String cohortId)
A number from 0 - 99 that represents the cohort the endpoint is assigned to.
|
void |
setCreationDate(String creationDate)
The last time the endpoint was created.
|
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 |
setId(String id)
The unique ID that you assigned to 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)
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.
|
EndpointResponse |
withAddress(String address)
The address or token of the endpoint as provided by your push provider (e.g.
|
EndpointResponse |
withApplicationId(String applicationId)
The ID of the application associated with the endpoint.
|
EndpointResponse |
withAttributes(Map<String,List<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
EndpointResponse |
withChannelType(ChannelType channelType)
The channel type.
|
EndpointResponse |
withChannelType(String channelType)
The channel type.
|
EndpointResponse |
withCohortId(String cohortId)
A number from 0 - 99 that represents the cohort the endpoint is assigned to.
|
EndpointResponse |
withCreationDate(String creationDate)
The last time the endpoint was created.
|
EndpointResponse |
withDemographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointResponse |
withEffectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
EndpointResponse |
withEndpointStatus(String endpointStatus)
The endpoint status.
|
EndpointResponse |
withId(String id)
The unique ID that you assigned to the endpoint.
|
EndpointResponse |
withLocation(EndpointLocation location)
The endpoint location attributes.
|
EndpointResponse |
withMetrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointResponse |
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.
|
EndpointResponse |
withRequestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
EndpointResponse |
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 EndpointResponse withAddress(String address)
address
- The address or token of the endpoint as provided by your push provider (e.g. DeviceToken or
RegistrationId).public void setApplicationId(String applicationId)
applicationId
- The ID of the application associated with the endpoint.public String getApplicationId()
public EndpointResponse withApplicationId(String applicationId)
applicationId
- The ID of the application associated with the endpoint.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 EndpointResponse 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 EndpointResponse addAttributesEntry(String key, List<String> value)
public EndpointResponse clearAttributesEntries()
public void setChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public String getChannelType()
ChannelType
public EndpointResponse 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 EndpointResponse withChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public void setCohortId(String cohortId)
cohortId
- A number from 0 - 99 that represents the cohort the endpoint is assigned to. Endpoints are grouped into
cohorts randomly, and each cohort contains approximately 1 percent of the endpoints for an app. Amazon
Pinpoint assigns cohorts to the holdout or treatment allocations for a campaign.public String getCohortId()
public EndpointResponse withCohortId(String cohortId)
cohortId
- A number from 0 - 99 that represents the cohort the endpoint is assigned to. Endpoints are grouped into
cohorts randomly, and each cohort contains approximately 1 percent of the endpoints for an app. Amazon
Pinpoint assigns cohorts to the holdout or treatment allocations for a campaign.public void setCreationDate(String creationDate)
creationDate
- The last time the endpoint was created. Provided in ISO 8601 format.public String getCreationDate()
public EndpointResponse withCreationDate(String creationDate)
creationDate
- The last time the endpoint was created. Provided in ISO 8601 format.public void setDemographic(EndpointDemographic demographic)
demographic
- The endpoint demographic attributes.public EndpointDemographic getDemographic()
public EndpointResponse 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 EndpointResponse 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 EndpointResponse 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 setId(String id)
id
- The unique ID that you assigned to the endpoint. The ID should be a globally unique identifier (GUID) to
ensure that it is unique compared to all other endpoints for the application.public String getId()
public EndpointResponse withId(String id)
id
- The unique ID that you assigned to the endpoint. The ID should be a globally unique identifier (GUID) to
ensure that it is unique compared to all other endpoints for the application.public void setLocation(EndpointLocation location)
location
- The endpoint location attributes.public EndpointLocation getLocation()
public EndpointResponse 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 EndpointResponse withMetrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.public EndpointResponse addMetricsEntry(String key, Double value)
public EndpointResponse 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 EndpointResponse 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 EndpointResponse 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 EndpointResponse 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 EndpointResponse 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.