Interface RepostspaceAsyncClient
- 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.
AWS re:Post Private is a private version of AWS re:Post for enterprises with Enterprise Support or Enterprise On-Ramp Support plans. It provides access to knowledge and experts to accelerate cloud adoption and increase developer productivity. With your organization-specific private re:Post, you can build an organization-specific developer community that drives efficiencies at scale and provides access to valuable knowledge resources. Additionally, re:Post Private centralizes trusted AWS technical content and offers private discussion forums to improve how your teams collaborate internally and with AWS to remove technical obstacles, accelerate innovation, and scale more efficiently in the cloud.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aRepostspaceAsyncClient.static RepostspaceAsyncClientcreate()Create aRepostspaceAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateSpaceResponse> createSpace(Consumer<CreateSpaceRequest.Builder> createSpaceRequest) Creates an AWS re:Post Private private re:Post.default CompletableFuture<CreateSpaceResponse> createSpace(CreateSpaceRequest createSpaceRequest) Creates an AWS re:Post Private private re:Post.default CompletableFuture<DeleteSpaceResponse> deleteSpace(Consumer<DeleteSpaceRequest.Builder> deleteSpaceRequest) Deletes an AWS re:Post Private private re:Post.default CompletableFuture<DeleteSpaceResponse> deleteSpace(DeleteSpaceRequest deleteSpaceRequest) Deletes an AWS re:Post Private private re:Post.default CompletableFuture<DeregisterAdminResponse> deregisterAdmin(Consumer<DeregisterAdminRequest.Builder> deregisterAdminRequest) Removes the user or group from the list of administrators of the private re:Post.default CompletableFuture<DeregisterAdminResponse> deregisterAdmin(DeregisterAdminRequest deregisterAdminRequest) Removes the user or group from the list of administrators of the private re:Post.default CompletableFuture<GetSpaceResponse> getSpace(Consumer<GetSpaceRequest.Builder> getSpaceRequest) Displays information about the AWS re:Post Private private re:Post.default CompletableFuture<GetSpaceResponse> getSpace(GetSpaceRequest getSpaceRequest) Displays information about the AWS re:Post Private private re:Post.default CompletableFuture<ListSpacesResponse> listSpaces(Consumer<ListSpacesRequest.Builder> listSpacesRequest) Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.default CompletableFuture<ListSpacesResponse> listSpaces(ListSpacesRequest listSpacesRequest) Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.default ListSpacesPublisherlistSpacesPaginator(Consumer<ListSpacesRequest.Builder> listSpacesRequest) This is a variant oflistSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation.default ListSpacesPublisherlistSpacesPaginator(ListSpacesRequest listSpacesRequest) This is a variant oflistSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn.default CompletableFuture<RegisterAdminResponse> registerAdmin(Consumer<RegisterAdminRequest.Builder> registerAdminRequest) Adds a user or group to the list of administrators of the private re:Post.default CompletableFuture<RegisterAdminResponse> registerAdmin(RegisterAdminRequest registerAdminRequest) Adds a user or group to the list of administrators of the private re:Post.default CompletableFuture<SendInvitesResponse> sendInvites(Consumer<SendInvitesRequest.Builder> sendInvitesRequest) Sends an invitation email to selected users and groups.default CompletableFuture<SendInvitesResponse> sendInvites(SendInvitesRequest sendInvitesRequest) Sends an invitation email to selected users and groups.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an AWS re:Post Private resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Associates tags with an AWS re:Post Private resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the association of the tag with the AWS re:Post Private resource.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes the association of the tag with the AWS re:Post Private resource.default CompletableFuture<UpdateSpaceResponse> updateSpace(Consumer<UpdateSpaceRequest.Builder> updateSpaceRequest) Modifies an existing AWS re:Post Private private re:Post.default CompletableFuture<UpdateSpaceResponse> updateSpace(UpdateSpaceRequest updateSpaceRequest) Modifies an existing AWS re:Post Private private re:Post.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createSpace
Creates an AWS re:Post Private private re:Post.
- Parameters:
createSpaceRequest-- Returns:
- A Java Future containing the result of the CreateSpace 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.- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- AccessDeniedException User does not have sufficient access to perform this action.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSpace
default CompletableFuture<CreateSpaceResponse> createSpace(Consumer<CreateSpaceRequest.Builder> createSpaceRequest) Creates an AWS re:Post Private private re:Post.
This is a convenience which creates an instance of the
CreateSpaceRequest.Builderavoiding the need to create one manually viaCreateSpaceRequest.builder()- Parameters:
createSpaceRequest- AConsumerthat will call methods onCreateSpaceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateSpace 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.- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- AccessDeniedException User does not have sufficient access to perform this action.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSpace
Deletes an AWS re:Post Private private re:Post.
- Parameters:
deleteSpaceRequest-- Returns:
- A Java Future containing the result of the DeleteSpace 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSpace
default CompletableFuture<DeleteSpaceResponse> deleteSpace(Consumer<DeleteSpaceRequest.Builder> deleteSpaceRequest) Deletes an AWS re:Post Private private re:Post.
This is a convenience which creates an instance of the
DeleteSpaceRequest.Builderavoiding the need to create one manually viaDeleteSpaceRequest.builder()- Parameters:
deleteSpaceRequest- AConsumerthat will call methods onDeleteSpaceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteSpace 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deregisterAdmin
default CompletableFuture<DeregisterAdminResponse> deregisterAdmin(DeregisterAdminRequest deregisterAdminRequest) Removes the user or group from the list of administrators of the private re:Post.
- Parameters:
deregisterAdminRequest-- Returns:
- A Java Future containing the result of the DeregisterAdmin 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deregisterAdmin
default CompletableFuture<DeregisterAdminResponse> deregisterAdmin(Consumer<DeregisterAdminRequest.Builder> deregisterAdminRequest) Removes the user or group from the list of administrators of the private re:Post.
This is a convenience which creates an instance of the
DeregisterAdminRequest.Builderavoiding the need to create one manually viaDeregisterAdminRequest.builder()- Parameters:
deregisterAdminRequest- AConsumerthat will call methods onDeregisterAdminRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeregisterAdmin 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSpace
Displays information about the AWS re:Post Private private re:Post.
- Parameters:
getSpaceRequest-- Returns:
- A Java Future containing the result of the GetSpace 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSpace
default CompletableFuture<GetSpaceResponse> getSpace(Consumer<GetSpaceRequest.Builder> getSpaceRequest) Displays information about the AWS re:Post Private private re:Post.
This is a convenience which creates an instance of the
GetSpaceRequest.Builderavoiding the need to create one manually viaGetSpaceRequest.builder()- Parameters:
getSpaceRequest- AConsumerthat will call methods onGetSpaceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetSpace 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSpaces
Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.
- Parameters:
listSpacesRequest-- Returns:
- A Java Future containing the result of the ListSpaces 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSpaces
default CompletableFuture<ListSpacesResponse> listSpaces(Consumer<ListSpacesRequest.Builder> listSpacesRequest) Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.
This is a convenience which creates an instance of the
ListSpacesRequest.Builderavoiding the need to create one manually viaListSpacesRequest.builder()- Parameters:
listSpacesRequest- AConsumerthat will call methods onListSpacesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSpaces 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSpacesPaginator
This is a variant of
listSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.repostspace.paginators.ListSpacesPublisher publisher = client.listSpacesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.repostspace.paginators.ListSpacesPublisher publisher = client.listSpacesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.repostspace.model.ListSpacesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.repostspace.model.ListSpacesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation.- Parameters:
listSpacesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSpacesPaginator
default ListSpacesPublisher listSpacesPaginator(Consumer<ListSpacesRequest.Builder> listSpacesRequest) This is a variant of
listSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.repostspace.paginators.ListSpacesPublisher publisher = client.listSpacesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.repostspace.paginators.ListSpacesPublisher publisher = client.listSpacesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.repostspace.model.ListSpacesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.repostspace.model.ListSpacesResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation.
This is a convenience which creates an instance of the
ListSpacesRequest.Builderavoiding the need to create one manually viaListSpacesRequest.builder()- Parameters:
listSpacesRequest- AConsumerthat will call methods onListSpacesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn. The only resource that can be tagged is a private re:Post.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn. The only resource that can be tagged is a private re:Post.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerAdmin
default CompletableFuture<RegisterAdminResponse> registerAdmin(RegisterAdminRequest registerAdminRequest) Adds a user or group to the list of administrators of the private re:Post.
- Parameters:
registerAdminRequest-- Returns:
- A Java Future containing the result of the RegisterAdmin 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerAdmin
default CompletableFuture<RegisterAdminResponse> registerAdmin(Consumer<RegisterAdminRequest.Builder> registerAdminRequest) Adds a user or group to the list of administrators of the private re:Post.
This is a convenience which creates an instance of the
RegisterAdminRequest.Builderavoiding the need to create one manually viaRegisterAdminRequest.builder()- Parameters:
registerAdminRequest- AConsumerthat will call methods onRegisterAdminRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RegisterAdmin 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
sendInvites
Sends an invitation email to selected users and groups.
- Parameters:
sendInvitesRequest-- Returns:
- A Java Future containing the result of the SendInvites 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
sendInvites
default CompletableFuture<SendInvitesResponse> sendInvites(Consumer<SendInvitesRequest.Builder> sendInvitesRequest) Sends an invitation email to selected users and groups.
This is a convenience which creates an instance of the
SendInvitesRequest.Builderavoiding the need to create one manually viaSendInvitesRequest.builder()- Parameters:
sendInvitesRequest- AConsumerthat will call methods onSendInvitesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the SendInvites 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that’s already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that’s already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes the association of the tag with the AWS re:Post Private resource.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the association of the tag with the AWS re:Post Private resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSpace
Modifies an existing AWS re:Post Private private re:Post.
- Parameters:
updateSpaceRequest-- Returns:
- A Java Future containing the result of the UpdateSpace 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSpace
default CompletableFuture<UpdateSpaceResponse> updateSpace(Consumer<UpdateSpaceRequest.Builder> updateSpaceRequest) Modifies an existing AWS re:Post Private private re:Post.
This is a convenience which creates an instance of the
UpdateSpaceRequest.Builderavoiding the need to create one manually viaUpdateSpaceRequest.builder()- Parameters:
updateSpaceRequest- AConsumerthat will call methods onUpdateSpaceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateSpace 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.- AccessDeniedException User does not have sufficient access to perform this action.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- ThrottlingException Request was denied due to request throttling.
- InternalServerException Unexpected error during processing of request.
- 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.
- RepostspaceException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aRepostspaceAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aRepostspaceAsyncClient.
-