public static interface EndpointResponse.Builder extends SdkPojo, CopyableBuilder<EndpointResponse.Builder,EndpointResponse>
| Modifier and Type | Method and Description |
|---|---|
EndpointResponse.Builder |
address(String address)
The address of the endpoint as provided by your push provider.
|
EndpointResponse.Builder |
applicationId(String applicationId)
The ID of the application that is associated with the endpoint.
|
EndpointResponse.Builder |
attributes(Map<String,? extends Collection<String>> attributes)
Custom attributes that describe the endpoint by associating a name with an array of values.
|
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 date and time when the endpoint was created, shown in ISO 8601 format.
|
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 date and time when the endpoint was last updated, shown in ISO 8601 format.
|
EndpointResponse.Builder |
endpointStatus(String endpointStatus)
Unused.
|
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.
|
copyapplyMutation, buildEndpointResponse.Builder address(String address)
address - The address of the endpoint as provided by your push provider. For example, the DeviceToken or
RegistrationId.EndpointResponse.Builder applicationId(String applicationId)
applicationId - The ID of the application that is associated with the endpoint.EndpointResponse.Builder attributes(Map<String,? extends Collection<String>> attributes)
attributes - Custom attributes that describe the endpoint by associating a name with an array of values. For
example, an attribute named "interests" might have the following values: ["science", "politics",
"travel"]. You can use these attributes as selection criteria when you create segments.
The Amazon Pinpoint console can't display attribute names that include the following characters:
hash/pound sign (#), colon (:), question mark (?), backslash (\), and forward slash (/). For this
reason, you should avoid using these characters in the names of custom attributes.EndpointResponse.Builder channelType(String channelType)
channelType - The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType,
ChannelTypeEndpointResponse.Builder channelType(ChannelType channelType)
channelType - The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType,
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 date and time when the endpoint was created, shown 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 date and time when the endpoint was last updated, shown in ISO 8601 format.EndpointResponse.Builder endpointStatus(String endpointStatus)
endpointStatus - Unused.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 doesn't conflict with other endpoint IDs associated with 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.