public static interface EndpointRequest.Builder extends SdkPojo, CopyableBuilder<EndpointRequest.Builder,EndpointRequest>
Modifier and Type | Method and Description |
---|---|
EndpointRequest.Builder |
address(String address)
The destination for messages that you send to this endpoint.
|
EndpointRequest.Builder |
attributes(Map<String,? extends Collection<String>> attributes)
Custom attributes that describe the endpoint by associating a name with an array of values.
|
EndpointRequest.Builder |
channelType(ChannelType channelType)
The channel type.
|
EndpointRequest.Builder |
channelType(String channelType)
The channel type.
|
default EndpointRequest.Builder |
demographic(Consumer<EndpointDemographic.Builder> demographic)
Demographic attributes for the endpoint.
|
EndpointRequest.Builder |
demographic(EndpointDemographic demographic)
Demographic attributes for the endpoint.
|
EndpointRequest.Builder |
effectiveDate(String effectiveDate)
The date and time when the endpoint was updated, shown in ISO 8601 format.
|
EndpointRequest.Builder |
endpointStatus(String endpointStatus)
Unused.
|
default EndpointRequest.Builder |
location(Consumer<EndpointLocation.Builder> location)
The endpoint location attributes.
|
EndpointRequest.Builder |
location(EndpointLocation location)
The endpoint location attributes.
|
EndpointRequest.Builder |
metrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
EndpointRequest.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.
|
EndpointRequest.Builder |
requestId(String requestId)
The unique ID for the most recent request to update the endpoint.
|
default EndpointRequest.Builder |
user(Consumer<EndpointUser.Builder> user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
EndpointRequest.Builder |
user(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
copy
applyMutation, build
EndpointRequest.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.EndpointRequest.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.EndpointRequest.Builder channelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
,
ChannelType
EndpointRequest.Builder channelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDUChannelType
,
ChannelType
EndpointRequest.Builder demographic(EndpointDemographic demographic)
demographic
- Demographic attributes for the endpoint.default EndpointRequest.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)
EndpointRequest.Builder effectiveDate(String effectiveDate)
effectiveDate
- The date and time when the endpoint was updated, shown in ISO 8601 format.EndpointRequest.Builder endpointStatus(String endpointStatus)
endpointStatus
- Unused.EndpointRequest.Builder location(EndpointLocation location)
location
- The endpoint location attributes.default EndpointRequest.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)
EndpointRequest.Builder metrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.EndpointRequest.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.EndpointRequest.Builder requestId(String requestId)
requestId
- The unique ID for the most recent request to update the endpoint.EndpointRequest.Builder user(EndpointUser user)
user
- Custom user-specific attributes that your app reports to Amazon Pinpoint.default EndpointRequest.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.