Interface SendOutboundWebNotificationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<SendOutboundWebNotificationRequest.Builder,,SendOutboundWebNotificationRequest> SdkBuilder<SendOutboundWebNotificationRequest.Builder,,SendOutboundWebNotificationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SendOutboundWebNotificationRequest
-
Method Summary
Modifier and TypeMethodDescriptionA unique identifier for the customer's web browser instance to which the notification is being sent.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.content(Consumer<WebNotificationContent.Builder> content) The content of the web notification, including the notification type, the view to render, and any optional attributes used to populate it.content(WebNotificationContent content) The content of the web notification, including the notification type, the view to render, and any optional attributes used to populate it.destination(Consumer<WidgetDestination.Builder> destination) The destination for the web notification, specifying the communication widget that delivers the notification and the customer profile of the recipient.destination(WidgetDestination destination) The destination for the web notification, specifying the communication widget that delivers the notification and the customer profile of the recipient.The timestamp, in Unix epoch time format, at which the web notification expires.instanceId(String instanceId) The identifier of the Connect Customer instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A unique identifier for the customer's web session to which the notification is being sent.source(Consumer<WebNotificationSource.Builder> source) The source of the web notification.source(WebNotificationSource source) The source of the web notification.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceId
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
browserId
A unique identifier for the customer's web browser instance to which the notification is being sent.
- Parameters:
browserId- A unique identifier for the customer's web browser instance to which the notification is being sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
A unique identifier for the customer's web session to which the notification is being sent.
- Parameters:
sessionId- A unique identifier for the customer's web session to which the notification is being sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
The timestamp, in Unix epoch time format, at which the web notification expires. After this time, the notification is no longer delivered to the customer's browser.
- Parameters:
expiresAt- The timestamp, in Unix epoch time format, at which the web notification expires. After this time, the notification is no longer delivered to the customer's browser.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source of the web notification. A
SourceCampaignobject identifies the campaign and outbound request that triggered this notification.- Parameters:
source- The source of the web notification. ASourceCampaignobject identifies the campaign and outbound request that triggered this notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default SendOutboundWebNotificationRequest.Builder source(Consumer<WebNotificationSource.Builder> source) The source of the web notification. A
This is a convenience method that creates an instance of theSourceCampaignobject identifies the campaign and outbound request that triggered this notification.WebNotificationSource.Builderavoiding the need to create one manually viaWebNotificationSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(WebNotificationSource).- Parameters:
source- a consumer that will call methods onWebNotificationSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destination
The destination for the web notification, specifying the communication widget that delivers the notification and the customer profile of the recipient.
- Parameters:
destination- The destination for the web notification, specifying the communication widget that delivers the notification and the customer profile of the recipient.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
default SendOutboundWebNotificationRequest.Builder destination(Consumer<WidgetDestination.Builder> destination) The destination for the web notification, specifying the communication widget that delivers the notification and the customer profile of the recipient.
This is a convenience method that creates an instance of theWidgetDestination.Builderavoiding the need to create one manually viaWidgetDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestination(WidgetDestination).- Parameters:
destination- a consumer that will call methods onWidgetDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
content
The content of the web notification, including the notification type, the view to render, and any optional attributes used to populate it.
- Parameters:
content- The content of the web notification, including the notification type, the view to render, and any optional attributes used to populate it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
default SendOutboundWebNotificationRequest.Builder content(Consumer<WebNotificationContent.Builder> content) The content of the web notification, including the notification type, the view to render, and any optional attributes used to populate it.
This is a convenience method that creates an instance of theWebNotificationContent.Builderavoiding the need to create one manually viaWebNotificationContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(WebNotificationContent).- Parameters:
content- a consumer that will call methods onWebNotificationContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SendOutboundWebNotificationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendOutboundWebNotificationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-