public static interface EndpointBatchItem.Builder extends SdkPojo, CopyableBuilder<EndpointBatchItem.Builder,EndpointBatchItem>
| Modifier and Type | Method and Description |
|---|---|
EndpointBatchItem.Builder |
address(String address)
The destination address for messages or push notifications that you send to the endpoint.
|
EndpointBatchItem.Builder |
attributes(Map<String,? extends Collection<String>> attributes)
One or more custom attributes that describe the endpoint by associating a name with an array of values.
|
EndpointBatchItem.Builder |
channelType(ChannelType channelType)
The channel to use when sending messages or push notifications to the endpoint.
|
EndpointBatchItem.Builder |
channelType(String channelType)
The channel to use when sending messages or push notifications to the endpoint.
|
default EndpointBatchItem.Builder |
demographic(Consumer<EndpointDemographic.Builder> demographic)
The demographic information for the endpoint, such as the time zone and platform.
|
EndpointBatchItem.Builder |
demographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
|
EndpointBatchItem.Builder |
effectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint was created or updated.
|
EndpointBatchItem.Builder |
endpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint.
|
EndpointBatchItem.Builder |
id(String id)
The unique identifier for the endpoint in the context of the batch.
|
default EndpointBatchItem.Builder |
location(Consumer<EndpointLocation.Builder> location)
The geographic information for the endpoint.
|
EndpointBatchItem.Builder |
location(EndpointLocation location)
The geographic information for the endpoint.
|
EndpointBatchItem.Builder |
metrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
|
EndpointBatchItem.Builder |
optOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push
notifications from you.
|
EndpointBatchItem.Builder |
requestId(String requestId)
The unique identifier for the request to create or update the endpoint.
|
default EndpointBatchItem.Builder |
user(Consumer<EndpointUser.Builder> user)
One or more custom attributes that describe the user who's associated with the endpoint.
|
EndpointBatchItem.Builder |
user(EndpointUser user)
One or more custom attributes that describe the user who's associated with the endpoint.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEndpointBatchItem.Builder address(String address)
The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For a push-notification channel, use the token provided by the push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (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.
address - The destination address for messages or push notifications that you send to the endpoint. The address
varies by channel. For a push-notification channel, use the token provided by the push notification
service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging
(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)
One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
attributes - One or more custom attributes that describe the endpoint by associating a name with an array of
values. For example, the value of a custom attribute named Interests might be: ["Science", "Music",
"Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names
are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
EndpointBatchItem.Builder channelType(String channelType)
The channel to use when sending messages or push notifications to the endpoint.
channelType - The channel to use when sending messages or push notifications to the endpoint.ChannelType,
ChannelTypeEndpointBatchItem.Builder channelType(ChannelType channelType)
The channel to use when sending messages or push notifications to the endpoint.
channelType - The channel to use when sending messages or push notifications to the endpoint.ChannelType,
ChannelTypeEndpointBatchItem.Builder demographic(EndpointDemographic demographic)
The demographic information for the endpoint, such as the time zone and platform.
demographic - The demographic information for the endpoint, such as the time zone and platform.default EndpointBatchItem.Builder demographic(Consumer<EndpointDemographic.Builder> demographic)
The demographic information for the endpoint, such as the time zone and platform.
This is a convenience method that creates an instance of theEndpointDemographic.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)EndpointBatchItem.Builder effectiveDate(String effectiveDate)
The date and time, in ISO 8601 format, when the endpoint was created or updated.
effectiveDate - The date and time, in ISO 8601 format, when the endpoint was created or updated.EndpointBatchItem.Builder endpointStatus(String endpointStatus)
Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
endpointStatus - Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE,
messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
EndpointBatchItem.Builder id(String id)
The unique identifier for the endpoint in the context of the batch.
id - The unique identifier for the endpoint in the context of the batch.EndpointBatchItem.Builder location(EndpointLocation location)
The geographic information for the endpoint.
location - The geographic information for the endpoint.default EndpointBatchItem.Builder location(Consumer<EndpointLocation.Builder> location)
The geographic information for the endpoint.
This is a convenience method that creates an instance of theEndpointLocation.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)EndpointBatchItem.Builder metrics(Map<String,Double> metrics)
One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
metrics - One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.EndpointBatchItem.Builder optOut(String optOut)
Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.
optOut - Specifies whether the user who's associated with the endpoint has opted out of receiving messages and
push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to
receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive
all messages and push notifications.EndpointBatchItem.Builder requestId(String requestId)
The unique identifier for the request to create or update the endpoint.
requestId - The unique identifier for the request to create or update the endpoint.EndpointBatchItem.Builder user(EndpointUser user)
One or more custom attributes that describe the user who's associated with the endpoint.
user - One or more custom attributes that describe the user who's associated with the endpoint.default EndpointBatchItem.Builder user(Consumer<EndpointUser.Builder> user)
One or more custom attributes that describe the user who's associated with the endpoint.
This is a convenience method that creates an instance of theEndpointUser.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 © 2022. All rights reserved.