Interface RepostspaceClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface RepostspaceClient extends AwsClient
Service client for accessing AWS re:Post Private. This can be created using the staticbuilder()method.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
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default BatchAddRoleResponsebatchAddRole(Consumer<BatchAddRoleRequest.Builder> batchAddRoleRequest)Add role to multiple users or groups in a private re:Post.default BatchAddRoleResponsebatchAddRole(BatchAddRoleRequest batchAddRoleRequest)Add role to multiple users or groups in a private re:Post.default BatchRemoveRoleResponsebatchRemoveRole(Consumer<BatchRemoveRoleRequest.Builder> batchRemoveRoleRequest)Remove role from multiple users or groups in a private re:Post.default BatchRemoveRoleResponsebatchRemoveRole(BatchRemoveRoleRequest batchRemoveRoleRequest)Remove role from multiple users or groups in a private re:Post.static RepostspaceClientBuilderbuilder()Create a builder that can be used to configure and create aRepostspaceClient.static RepostspaceClientcreate()Create aRepostspaceClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateSpaceResponsecreateSpace(Consumer<CreateSpaceRequest.Builder> createSpaceRequest)Creates an AWS re:Post Private private re:Post.default CreateSpaceResponsecreateSpace(CreateSpaceRequest createSpaceRequest)Creates an AWS re:Post Private private re:Post.default DeleteSpaceResponsedeleteSpace(Consumer<DeleteSpaceRequest.Builder> deleteSpaceRequest)Deletes an AWS re:Post Private private re:Post.default DeleteSpaceResponsedeleteSpace(DeleteSpaceRequest deleteSpaceRequest)Deletes an AWS re:Post Private private re:Post.default DeregisterAdminResponsederegisterAdmin(Consumer<DeregisterAdminRequest.Builder> deregisterAdminRequest)Removes the user or group from the list of administrators of the private re:Post.default DeregisterAdminResponsederegisterAdmin(DeregisterAdminRequest deregisterAdminRequest)Removes the user or group from the list of administrators of the private re:Post.default GetSpaceResponsegetSpace(Consumer<GetSpaceRequest.Builder> getSpaceRequest)Displays information about the AWS re:Post Private private re:Post.default GetSpaceResponsegetSpace(GetSpaceRequest getSpaceRequest)Displays information about the AWS re:Post Private private re:Post.default ListSpacesResponselistSpaces(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 ListSpacesResponselistSpaces(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 ListSpacesIterablelistSpacesPaginator(Consumer<ListSpacesRequest.Builder> listSpacesRequest)This is a variant oflistSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation.default ListSpacesIterablelistSpacesPaginator(ListSpacesRequest listSpacesRequest)This is a variant oflistSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn.default RegisterAdminResponseregisterAdmin(Consumer<RegisterAdminRequest.Builder> registerAdminRequest)Adds a user or group to the list of administrators of the private re:Post.default RegisterAdminResponseregisterAdmin(RegisterAdminRequest registerAdminRequest)Adds a user or group to the list of administrators of the private re:Post.default SendInvitesResponsesendInvites(Consumer<SendInvitesRequest.Builder> sendInvitesRequest)Sends an invitation email to selected users and groups.default SendInvitesResponsesendInvites(SendInvitesRequest sendInvitesRequest)Sends an invitation email to selected users and groups.default RepostspaceServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)Associates tags with an AWS re:Post Private resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest)Associates tags with an AWS re:Post Private resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)Removes the association of the tag with the AWS re:Post Private resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest)Removes the association of the tag with the AWS re:Post Private resource.default UpdateSpaceResponseupdateSpace(Consumer<UpdateSpaceRequest.Builder> updateSpaceRequest)Modifies an existing AWS re:Post Private private re:Post.default UpdateSpaceResponseupdateSpace(UpdateSpaceRequest updateSpaceRequest)Modifies an existing AWS re:Post Private private re:Post.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
batchAddRole
default BatchAddRoleResponse batchAddRole(BatchAddRoleRequest batchAddRoleRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Add role to multiple users or groups in a private re:Post.
- Parameters:
batchAddRoleRequest-- Returns:
- Result of the BatchAddRole operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
batchAddRole
default BatchAddRoleResponse batchAddRole(Consumer<BatchAddRoleRequest.Builder> batchAddRoleRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Add role to multiple users or groups in a private re:Post.
This is a convenience which creates an instance of the
BatchAddRoleRequest.Builderavoiding the need to create one manually viaBatchAddRoleRequest.builder()- Parameters:
batchAddRoleRequest- AConsumerthat will call methods onBatchAddRoleRequest.Builderto create a request.- Returns:
- Result of the BatchAddRole operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
batchRemoveRole
default BatchRemoveRoleResponse batchRemoveRole(BatchRemoveRoleRequest batchRemoveRoleRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Remove role from multiple users or groups in a private re:Post.
- Parameters:
batchRemoveRoleRequest-- Returns:
- Result of the BatchRemoveRole operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
batchRemoveRole
default BatchRemoveRoleResponse batchRemoveRole(Consumer<BatchRemoveRoleRequest.Builder> batchRemoveRoleRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Remove role from multiple users or groups in a private re:Post.
This is a convenience which creates an instance of the
BatchRemoveRoleRequest.Builderavoiding the need to create one manually viaBatchRemoveRoleRequest.builder()- Parameters:
batchRemoveRoleRequest- AConsumerthat will call methods onBatchRemoveRoleRequest.Builderto create a request.- Returns:
- Result of the BatchRemoveRole operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createSpace
default CreateSpaceResponse createSpace(CreateSpaceRequest createSpaceRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Creates an AWS re:Post Private private re:Post.
- Parameters:
createSpaceRequest-- Returns:
- Result of the CreateSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createSpace
default CreateSpaceResponse createSpace(Consumer<CreateSpaceRequest.Builder> createSpaceRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the CreateSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSpace
default DeleteSpaceResponse deleteSpace(DeleteSpaceRequest deleteSpaceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Deletes an AWS re:Post Private private re:Post.
- Parameters:
deleteSpaceRequest-- Returns:
- Result of the DeleteSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSpace
default DeleteSpaceResponse deleteSpace(Consumer<DeleteSpaceRequest.Builder> deleteSpaceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the DeleteSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deregisterAdmin
default DeregisterAdminResponse deregisterAdmin(DeregisterAdminRequest deregisterAdminRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Removes the user or group from the list of administrators of the private re:Post.
- Parameters:
deregisterAdminRequest-- Returns:
- Result of the DeregisterAdmin operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deregisterAdmin
default DeregisterAdminResponse deregisterAdmin(Consumer<DeregisterAdminRequest.Builder> deregisterAdminRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the DeregisterAdmin operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
getSpace
default GetSpaceResponse getSpace(GetSpaceRequest getSpaceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Displays information about the AWS re:Post Private private re:Post.
- Parameters:
getSpaceRequest-- Returns:
- Result of the GetSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
getSpace
default GetSpaceResponse getSpace(Consumer<GetSpaceRequest.Builder> getSpaceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the GetSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listSpaces
default ListSpacesResponse listSpaces(ListSpacesRequest listSpacesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the ListSpaces operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listSpaces
default ListSpacesResponse listSpaces(Consumer<ListSpacesRequest.Builder> listSpacesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the ListSpaces operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listSpacesPaginator
default ListSpacesIterable listSpacesPaginator(ListSpacesRequest listSpacesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
This is a variant of
listSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.repostspace.paginators.ListSpacesIterable responses = client.listSpacesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.repostspace.paginators.ListSpacesIterable responses = client.listSpacesPaginator(request); for (software.amazon.awssdk.services.repostspace.model.ListSpacesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.repostspace.paginators.ListSpacesIterable responses = client.listSpacesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listSpacesPaginator
default ListSpacesIterable listSpacesPaginator(Consumer<ListSpacesRequest.Builder> listSpacesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
This is a variant of
listSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.repostspace.paginators.ListSpacesIterable responses = client.listSpacesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.repostspace.paginators.ListSpacesIterable responses = client.listSpacesPaginator(request); for (software.amazon.awssdk.services.repostspace.model.ListSpacesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.repostspace.paginators.ListSpacesIterable responses = client.listSpacesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
registerAdmin
default RegisterAdminResponse registerAdmin(RegisterAdminRequest registerAdminRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Adds a user or group to the list of administrators of the private re:Post.
- Parameters:
registerAdminRequest-- Returns:
- Result of the RegisterAdmin operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
registerAdmin
default RegisterAdminResponse registerAdmin(Consumer<RegisterAdminRequest.Builder> registerAdminRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the RegisterAdmin operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
sendInvites
default SendInvitesResponse sendInvites(SendInvitesRequest sendInvitesRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Sends an invitation email to selected users and groups.
- Parameters:
sendInvitesRequest-- Returns:
- Result of the SendInvites operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
sendInvites
default SendInvitesResponse sendInvites(Consumer<SendInvitesRequest.Builder> sendInvitesRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the SendInvites operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Removes the association of the tag with the AWS re:Post Private resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateSpace
default UpdateSpaceResponse updateSpace(UpdateSpaceRequest updateSpaceRequest) throws AccessDeniedException, ConflictException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
Modifies an existing AWS re:Post Private private re:Post.
- Parameters:
updateSpaceRequest-- Returns:
- Result of the UpdateSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateSpace
default UpdateSpaceResponse updateSpace(Consumer<UpdateSpaceRequest.Builder> updateSpaceRequest) throws AccessDeniedException, ConflictException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException
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:
- Result of the UpdateSpace operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
create
static RepostspaceClient create()
Create aRepostspaceClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static RepostspaceClientBuilder builder()
Create a builder that can be used to configure and create aRepostspaceClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default RepostspaceServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-