public static interface EndpointBatchItem.Builder extends CopyableBuilder<EndpointBatchItem.Builder,EndpointBatchItem>
Modifier and Type | Method and Description |
---|---|
EndpointBatchItem.Builder |
address(String address)
The address or token of the endpoint as provided by your push provider (e.g.
|
EndpointBatchItem.Builder |
attributes(Map<String,? extends Collection<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
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)
The endpoint status.
|
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
apply, build
EndpointBatchItem.Builder address(String address)
address
- The address or token of the endpoint as provided by your push provider (e.g. DeviceToken or
RegistrationId).EndpointBatchItem.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.EndpointBatchItem.Builder channelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
,
ChannelType
EndpointBatchItem.Builder channelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
,
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
- 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.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.