public static interface EndpointBatchItem.Builder extends SdkPojo, CopyableBuilder<EndpointBatchItem.Builder,EndpointBatchItem>
Modifier and Type | Method and Description |
---|---|
EndpointBatchItem.Builder |
address(String address)
The destination for messages that you send to this endpoint.
|
EndpointBatchItem.Builder |
attributes(Map<String,? extends Collection<String>> attributes)
Custom attributes that describe the endpoint by associating a name with an array of values.
|
EndpointBatchItem.Builder |
channelType(ChannelType channelType)
The channel type.
|
EndpointBatchItem.Builder |
channelType(String channelType)
The channel type.
|
default EndpointBatchItem.Builder |
demographic(Consumer<EndpointDemographic.Builder> demographic)
The endpoint demographic attributes.
|
EndpointBatchItem.Builder |
demographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
EndpointBatchItem.Builder |
effectiveDate(String effectiveDate)
The last time the endpoint was updated.
|
EndpointBatchItem.Builder |
endpointStatus(String endpointStatus)
Unused.
|
EndpointBatchItem.Builder |
id(String id)
The unique Id for the Endpoint in the batch.
|
default EndpointBatchItem.Builder |
location(Consumer<EndpointLocation.Builder> location)
The endpoint location attributes.
|
EndpointBatchItem.Builder |
location(EndpointLocation location)
The endpoint location attributes.
|
EndpointBatchItem.Builder |
metrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointBatchItem.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.
|
EndpointBatchItem.Builder |
requestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
default EndpointBatchItem.Builder |
user(Consumer<EndpointUser.Builder> user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
EndpointBatchItem.Builder |
user(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
copy
applyMutation, build
EndpointBatchItem.Builder address(String address)
address
- The destination for messages that you send to this endpoint. The address varies by channel. For mobile
push channels, use the token provided by the push notification service, such as the APNs device token
or the FCM registration token. For the SMS channel, use a phone number in E.164 format, such as
+12065550100. For the email channel, use an email address.EndpointBatchItem.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 values ["science", "politics", "travel"]. You
can use these attributes as selection criteria when you create a segment of users to engage with a
messaging campaign.
The following characters are not recommended in attribute names: # : ? \ /. The Amazon Pinpoint
console does not display attributes that include these characters in the name. This limitation does
not apply to attribute values.EndpointBatchItem.Builder channelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
,
ChannelType
EndpointBatchItem.Builder channelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
,
ChannelType
EndpointBatchItem.Builder demographic(EndpointDemographic demographic)
demographic
- The endpoint demographic attributes.default EndpointBatchItem.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.Builder
demographic(EndpointDemographic)
EndpointBatchItem.Builder effectiveDate(String effectiveDate)
effectiveDate
- The last time the endpoint was updated. Provided in ISO 8601 format.EndpointBatchItem.Builder endpointStatus(String endpointStatus)
endpointStatus
- Unused.EndpointBatchItem.Builder id(String id)
id
- The unique Id for the Endpoint in the batch.EndpointBatchItem.Builder location(EndpointLocation location)
location
- The endpoint location attributes.default EndpointBatchItem.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.Builder
location(EndpointLocation)
EndpointBatchItem.Builder metrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.EndpointBatchItem.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.EndpointBatchItem.Builder requestId(String requestId)
requestId
- The unique ID for the most recent request to update the endpoint.EndpointBatchItem.Builder user(EndpointUser user)
user
- Custom user-specific attributes that your app reports to Amazon Pinpoint.default EndpointBatchItem.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.Builder
user(EndpointUser)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.