public static interface PublicEndpoint.Builder extends SdkPojo, CopyableBuilder<PublicEndpoint.Builder,PublicEndpoint>
Modifier and Type | Method and Description |
---|---|
PublicEndpoint.Builder |
address(String address)
The unique identifier for the recipient.
|
PublicEndpoint.Builder |
attributes(Map<String,? extends Collection<String>> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint.Builder |
channelType(ChannelType channelType)
The channel type.
|
PublicEndpoint.Builder |
channelType(String channelType)
The channel type.
|
default PublicEndpoint.Builder |
demographic(Consumer<EndpointDemographic.Builder> demographic)
The endpoint demographic attributes.
|
PublicEndpoint.Builder |
demographic(EndpointDemographic demographic)
The endpoint demographic attributes.
|
PublicEndpoint.Builder |
effectiveDate(String effectiveDate)
The date and time when the endpoint was last updated, in ISO 8601 format.
|
PublicEndpoint.Builder |
endpointStatus(String endpointStatus)
The status of the endpoint.
|
default PublicEndpoint.Builder |
location(Consumer<EndpointLocation.Builder> location)
The endpoint location attributes.
|
PublicEndpoint.Builder |
location(EndpointLocation location)
The endpoint location attributes.
|
PublicEndpoint.Builder |
metrics(Map<String,Double> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
PublicEndpoint.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.
|
PublicEndpoint.Builder |
requestId(String requestId)
A unique identifier that is generated each time the endpoint is updated.
|
default PublicEndpoint.Builder |
user(Consumer<EndpointUser.Builder> user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
PublicEndpoint.Builder |
user(EndpointUser user)
Custom user-specific attributes that your app reports to Amazon Pinpoint.
|
copy
applyMutation, build
PublicEndpoint.Builder address(String address)
address
- The unique identifier for the recipient. For example, an address could be a device token, email
address, or mobile phone number.PublicEndpoint.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.PublicEndpoint.Builder channelType(String channelType)
channelType
- The channel type.
Valid values: APNS, GCMChannelType
,
ChannelType
PublicEndpoint.Builder channelType(ChannelType channelType)
channelType
- The channel type.
Valid values: APNS, GCMChannelType
,
ChannelType
PublicEndpoint.Builder demographic(EndpointDemographic demographic)
demographic
- The endpoint demographic attributes.default PublicEndpoint.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)
PublicEndpoint.Builder effectiveDate(String effectiveDate)
effectiveDate
- The date and time when the endpoint was last updated, in ISO 8601 format.PublicEndpoint.Builder endpointStatus(String endpointStatus)
endpointStatus
- The status of the endpoint. If the update fails, the value is INACTIVE. If the endpoint is updated
successfully, the value is ACTIVE.PublicEndpoint.Builder location(EndpointLocation location)
location
- The endpoint location attributes.default PublicEndpoint.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)
PublicEndpoint.Builder metrics(Map<String,Double> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.PublicEndpoint.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.PublicEndpoint.Builder requestId(String requestId)
requestId
- A unique identifier that is generated each time the endpoint is updated.PublicEndpoint.Builder user(EndpointUser user)
user
- Custom user-specific attributes that your app reports to Amazon Pinpoint.default PublicEndpoint.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.