Interface PersonalizeEventsAsyncClient
- All Superinterfaces:
- AutoCloseable,- AwsClient,- SdkAutoCloseable,- SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
 SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
 perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
 call.
 Amazon Personalize can consume real-time user event data, such as stream or click data, and use it for model training either alone or combined with historical data. For more information see Recording item interaction events.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aPersonalizeEventsAsyncClient.static PersonalizeEventsAsyncClientcreate()Create aPersonalizeEventsAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.putActionInteractions(Consumer<PutActionInteractionsRequest.Builder> putActionInteractionsRequest) Records action interaction event data.putActionInteractions(PutActionInteractionsRequest putActionInteractionsRequest) Records action interaction event data.default CompletableFuture<PutActionsResponse> putActions(Consumer<PutActionsRequest.Builder> putActionsRequest) Adds one or more actions to an Actions dataset.default CompletableFuture<PutActionsResponse> putActions(PutActionsRequest putActionsRequest) Adds one or more actions to an Actions dataset.default CompletableFuture<PutEventsResponse> putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) Records item interaction event data.default CompletableFuture<PutEventsResponse> putEvents(PutEventsRequest putEventsRequest) Records item interaction event data.default CompletableFuture<PutItemsResponse> putItems(Consumer<PutItemsRequest.Builder> putItemsRequest) Adds one or more items to an Items dataset.default CompletableFuture<PutItemsResponse> putItems(PutItemsRequest putItemsRequest) Adds one or more items to an Items dataset.default CompletableFuture<PutUsersResponse> putUsers(Consumer<PutUsersRequest.Builder> putUsersRequest) Adds one or more users to a Users dataset.default CompletableFuture<PutUsersResponse> putUsers(PutUsersRequest putUsersRequest) Adds one or more users to a Users dataset.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseablecloseMethods inherited from interface software.amazon.awssdk.core.SdkClientserviceName
- 
Field Details- 
SERVICE_NAME- See Also:
 
- 
SERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.- See Also:
 
 
- 
- 
Method Details- 
putActionInteractionsdefault CompletableFuture<PutActionInteractionsResponse> putActionInteractions(PutActionInteractionsRequest putActionInteractionsRequest) Records action interaction event data. An action interaction event is an interaction between a user and an action. For example, a user taking an action, such a enrolling in a membership program or downloading your app. For more information about recording action interactions, see Recording action interaction events. For more information about actions in an Actions dataset, see Actions dataset. - Parameters:
- putActionInteractionsRequest-
- Returns:
- A Java Future containing the result of the PutActionInteractions operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putActionInteractionsdefault CompletableFuture<PutActionInteractionsResponse> putActionInteractions(Consumer<PutActionInteractionsRequest.Builder> putActionInteractionsRequest) Records action interaction event data. An action interaction event is an interaction between a user and an action. For example, a user taking an action, such a enrolling in a membership program or downloading your app. For more information about recording action interactions, see Recording action interaction events. For more information about actions in an Actions dataset, see Actions dataset. 
 This is a convenience which creates an instance of the PutActionInteractionsRequest.Builderavoiding the need to create one manually viaPutActionInteractionsRequest.builder()- Parameters:
- putActionInteractionsRequest- A- Consumerthat will call methods on- PutActionInteractionsRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the PutActionInteractions operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putActionsAdds one or more actions to an Actions dataset. For more information see Importing actions individually. - Parameters:
- putActionsRequest-
- Returns:
- A Java Future containing the result of the PutActions operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putActionsdefault CompletableFuture<PutActionsResponse> putActions(Consumer<PutActionsRequest.Builder> putActionsRequest) Adds one or more actions to an Actions dataset. For more information see Importing actions individually. 
 This is a convenience which creates an instance of the PutActionsRequest.Builderavoiding the need to create one manually viaPutActionsRequest.builder()- Parameters:
- putActionsRequest- A- Consumerthat will call methods on- PutActionsRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the PutActions operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putEventsRecords item interaction event data. For more information see Recording item interaction events. - Parameters:
- putEventsRequest-
- Returns:
- A Java Future containing the result of the PutEvents operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putEventsdefault CompletableFuture<PutEventsResponse> putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) Records item interaction event data. For more information see Recording item interaction events. 
 This is a convenience which creates an instance of the PutEventsRequest.Builderavoiding the need to create one manually viaPutEventsRequest.builder()- Parameters:
- putEventsRequest- A- Consumerthat will call methods on- PutEventsRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the PutEvents operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putItemsAdds one or more items to an Items dataset. For more information see Importing items individually. - Parameters:
- putItemsRequest-
- Returns:
- A Java Future containing the result of the PutItems operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putItemsdefault CompletableFuture<PutItemsResponse> putItems(Consumer<PutItemsRequest.Builder> putItemsRequest) Adds one or more items to an Items dataset. For more information see Importing items individually. 
 This is a convenience which creates an instance of the PutItemsRequest.Builderavoiding the need to create one manually viaPutItemsRequest.builder()- Parameters:
- putItemsRequest- A- Consumerthat will call methods on- PutItemsRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the PutItems operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putUsersAdds one or more users to a Users dataset. For more information see Importing users individually. - Parameters:
- putUsersRequest-
- Returns:
- A Java Future containing the result of the PutUsers operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
putUsersdefault CompletableFuture<PutUsersResponse> putUsers(Consumer<PutUsersRequest.Builder> putUsersRequest) Adds one or more users to a Users dataset. For more information see Importing users individually. 
 This is a convenience which creates an instance of the PutUsersRequest.Builderavoiding the need to create one manually viaPutUsersRequest.builder()- Parameters:
- putUsersRequest- A- Consumerthat will call methods on- PutUsersRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the PutUsers operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidInputException Provide a valid value for the field or parameter.
- ResourceNotFoundException Could not find the specified resource.
- ResourceInUseException The specified resource is in use.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PersonalizeEventsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
serviceClientConfigurationDescription copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
- serviceClientConfigurationin interface- AwsClient
- Specified by:
- serviceClientConfigurationin interface- SdkClient
- Returns:
- SdkServiceClientConfiguration
 
- 
createCreate aPersonalizeEventsAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
- 
builderCreate a builder that can be used to configure and create aPersonalizeEventsAsyncClient.
 
-