CopyableBuilder<EndpointResponse.Builder,EndpointResponse>
, SdkBuilder<EndpointResponse.Builder,EndpointResponse>
public static interface EndpointResponse.Builder extends CopyableBuilder<EndpointResponse.Builder,EndpointResponse>
Modifier and Type | Method | Description |
---|---|---|
EndpointResponse.Builder |
address(String address) |
The address or token of the endpoint as provided by your push provider (e.g.
|
EndpointResponse.Builder |
applicationId(String applicationId) |
The ID of the application associated with the endpoint.
|
EndpointResponse.Builder |
attributes(Map<String,? extends Collection<String>> attributes) |
Custom attributes that your app reports to Amazon Pinpoint.
|
EndpointResponse.Builder |
channelType(String channelType) |
The channel type.
|
EndpointResponse.Builder |
channelType(ChannelType channelType) |
The channel type.
|
EndpointResponse.Builder |
cohortId(String cohortId) |
A number from 0 - 99 that represents the cohort the endpoint is assigned to.
|
EndpointResponse.Builder |
creationDate(String creationDate) |
The last time the endpoint was created.
|
EndpointResponse.Builder |
demographic(EndpointDemographic demographic) |
The endpoint demographic attributes.
|
EndpointResponse.Builder |
effectiveDate(String effectiveDate) |
The last time the endpoint was updated.
|
EndpointResponse.Builder |
endpointStatus(String endpointStatus) |
The endpoint status.
|
EndpointResponse.Builder |
id(String id) |
The unique ID that you assigned to the endpoint.
|
EndpointResponse.Builder |
location(EndpointLocation location) |
The endpoint location attributes.
|
EndpointResponse.Builder |
metrics(Map<String,Double> metrics) |
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointResponse.Builder |
optOut(String optOut) |
Indicates whether a user has opted out of receiving messages with one of the following values:
ALL – User receives all messages.
|
EndpointResponse.Builder |
requestId(String requestId) |
The unique ID for the most recent request to update the endpoint.
|
EndpointResponse.Builder |
shardId(String shardId) |
The ShardId of endpoint
|
EndpointResponse.Builder |
user(EndpointUser user) |
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
copy
apply, build
EndpointResponse.Builder address(String address)
address
- The address or token of the endpoint as provided by your push provider (e.g. DeviceToken or
RegistrationId).EndpointResponse.Builder applicationId(String applicationId)
applicationId
- The ID of the application associated with the endpoint.EndpointResponse.Builder attributes(Map<String,? extends Collection<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.EndpointResponse.Builder channelType(String channelType)
channelType
- The channel type.
Valid values: APNS, GCMChannelType
EndpointResponse.Builder channelType(ChannelType channelType)
channelType
- The channel type.
Valid values: APNS, GCMChannelType
EndpointResponse.Builder cohortId(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.EndpointResponse.Builder creationDate(String creationDate)
creationDate
- The last time the endpoint was created. Provided in ISO 8601 format.EndpointResponse.Builder demographic(EndpointDemographic demographic)
demographic
- The endpoint demographic attributes.EndpointResponse.Builder effectiveDate(String effectiveDate)
effectiveDate
- The last time the endpoint was updated. Provided in ISO 8601 format.EndpointResponse.Builder endpointStatus(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.EndpointResponse.Builder id(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.EndpointResponse.Builder location(EndpointLocation location)
location
- The endpoint location attributes.EndpointResponse.Builder metrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.EndpointResponse.Builder optOut(String optOut)
optOut
- Indicates whether a user has opted out of receiving messages with one of the following values:
ALL – User receives all messages. NONE – User receives no messages.EndpointResponse.Builder requestId(String requestId)
requestId
- The unique ID for the most recent request to update the endpoint.EndpointResponse.Builder user(EndpointUser user)
user
- Custom user-specific attributes that your app reports to Amazon Pinpoint.EndpointResponse.Builder shardId(String shardId)
shardId
- The ShardId of endpointCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.