public static interface EndpointResponse.Builder extends CopyableBuilder<EndpointResponse.Builder,EndpointResponse>
| Modifier and Type | Method and 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(ChannelType channelType)
The channel type.
|
EndpointResponse.Builder |
channelType(String 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.
|
default EndpointResponse.Builder |
demographic(Consumer<EndpointDemographic.Builder> demographic)
The endpoint demographic attributes.
|
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.
|
default EndpointResponse.Builder |
location(Consumer<EndpointLocation.Builder> location)
The endpoint location attributes.
|
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 has opted out of all messages.
|
EndpointResponse.Builder |
requestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
default EndpointResponse.Builder |
user(Consumer<EndpointUser.Builder> user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
EndpointResponse.Builder |
user(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
copyapply, buildEndpointResponse.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: GCM | APNS | SMS | EMAILChannelType,
ChannelTypeEndpointResponse.Builder channelType(ChannelType channelType)
channelType - The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType,
ChannelTypeEndpointResponse.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.default EndpointResponse.Builder demographic(Consumer<EndpointDemographic.Builder> demographic)
EndpointDemographic.Builder avoiding the need to create one manually via
EndpointDemographic.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to demographic(EndpointDemographic).demographic - a consumer that will call methods on EndpointDemographic.Builderdemographic(EndpointDemographic)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.default EndpointResponse.Builder location(Consumer<EndpointLocation.Builder> location)
EndpointLocation.Builder avoiding the need to create one manually via
EndpointLocation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to location(EndpointLocation).location - a consumer that will call methods on EndpointLocation.Builderlocation(EndpointLocation)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 has opted out of all messages.
NONE - Users has not opted out and receives all 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.default EndpointResponse.Builder user(Consumer<EndpointUser.Builder> user)
EndpointUser.Builder avoiding the need to create one manually via
EndpointUser.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to user(EndpointUser).user - a consumer that will call methods on EndpointUser.Builderuser(EndpointUser)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.