Interface RepostspaceClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
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
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbatchAddChannelRoleToAccessors
(Consumer<BatchAddChannelRoleToAccessorsRequest.Builder> batchAddChannelRoleToAccessorsRequest) Add role to multiple users or groups in a private re:Post channel.batchAddChannelRoleToAccessors
(BatchAddChannelRoleToAccessorsRequest batchAddChannelRoleToAccessorsRequest) Add role to multiple users or groups in a private re:Post channel.default BatchAddRoleResponse
batchAddRole
(Consumer<BatchAddRoleRequest.Builder> batchAddRoleRequest) Add a role to multiple users or groups in a private re:Post.default BatchAddRoleResponse
batchAddRole
(BatchAddRoleRequest batchAddRoleRequest) Add a role to multiple users or groups in a private re:Post.batchRemoveChannelRoleFromAccessors
(Consumer<BatchRemoveChannelRoleFromAccessorsRequest.Builder> batchRemoveChannelRoleFromAccessorsRequest) Remove a role from multiple users or groups in a private re:Post channel.batchRemoveChannelRoleFromAccessors
(BatchRemoveChannelRoleFromAccessorsRequest batchRemoveChannelRoleFromAccessorsRequest) Remove a role from multiple users or groups in a private re:Post channel.default BatchRemoveRoleResponse
batchRemoveRole
(Consumer<BatchRemoveRoleRequest.Builder> batchRemoveRoleRequest) Remove a role from multiple users or groups in a private re:Post.default BatchRemoveRoleResponse
batchRemoveRole
(BatchRemoveRoleRequest batchRemoveRoleRequest) Remove a role from multiple users or groups in a private re:Post.static RepostspaceClientBuilder
builder()
Create a builder that can be used to configure and create aRepostspaceClient
.static RepostspaceClient
create()
Create aRepostspaceClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateChannelResponse
createChannel
(Consumer<CreateChannelRequest.Builder> createChannelRequest) Creates a channel in an AWS re:Post Private private re:Post.default CreateChannelResponse
createChannel
(CreateChannelRequest createChannelRequest) Creates a channel in an AWS re:Post Private private re:Post.default CreateSpaceResponse
createSpace
(Consumer<CreateSpaceRequest.Builder> createSpaceRequest) Creates an AWS re:Post Private private re:Post.default CreateSpaceResponse
createSpace
(CreateSpaceRequest createSpaceRequest) Creates an AWS re:Post Private private re:Post.default DeleteSpaceResponse
deleteSpace
(Consumer<DeleteSpaceRequest.Builder> deleteSpaceRequest) Deletes an AWS re:Post Private private re:Post.default DeleteSpaceResponse
deleteSpace
(DeleteSpaceRequest deleteSpaceRequest) Deletes an AWS re:Post Private private re:Post.default DeregisterAdminResponse
deregisterAdmin
(Consumer<DeregisterAdminRequest.Builder> deregisterAdminRequest) Removes the user or group from the list of administrators of the private re:Post.default DeregisterAdminResponse
deregisterAdmin
(DeregisterAdminRequest deregisterAdminRequest) Removes the user or group from the list of administrators of the private re:Post.default GetChannelResponse
getChannel
(Consumer<GetChannelRequest.Builder> getChannelRequest) Displays information about a channel in a private re:Post.default GetChannelResponse
getChannel
(GetChannelRequest getChannelRequest) Displays information about a channel in a private re:Post.default GetSpaceResponse
getSpace
(Consumer<GetSpaceRequest.Builder> getSpaceRequest) Displays information about the AWS re:Post Private private re:Post.default GetSpaceResponse
getSpace
(GetSpaceRequest getSpaceRequest) Displays information about the AWS re:Post Private private re:Post.default ListChannelsResponse
listChannels
(Consumer<ListChannelsRequest.Builder> listChannelsRequest) Returns the list of channel within a private re:Post with some information about each channel.default ListChannelsResponse
listChannels
(ListChannelsRequest listChannelsRequest) Returns the list of channel within a private re:Post with some information about each channel.default ListChannelsIterable
listChannelsPaginator
(Consumer<ListChannelsRequest.Builder> listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.repostspace.model.ListChannelsRequest)
operation.default ListChannelsIterable
listChannelsPaginator
(ListChannelsRequest listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.repostspace.model.ListChannelsRequest)
operation.default 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 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 ListSpacesIterable
listSpacesPaginator
(Consumer<ListSpacesRequest.Builder> listSpacesRequest) This is a variant oflistSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)
operation.default ListSpacesIterable
listSpacesPaginator
(ListSpacesRequest listSpacesRequest) This is a variant oflistSpaces(software.amazon.awssdk.services.repostspace.model.ListSpacesRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn.default RegisterAdminResponse
registerAdmin
(Consumer<RegisterAdminRequest.Builder> registerAdminRequest) Adds a user or group to the list of administrators of the private re:Post.default RegisterAdminResponse
registerAdmin
(RegisterAdminRequest registerAdminRequest) Adds a user or group to the list of administrators of the private re:Post.default SendInvitesResponse
sendInvites
(Consumer<SendInvitesRequest.Builder> sendInvitesRequest) Sends an invitation email to selected users and groups.default 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., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an AWS re:Post Private resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Associates tags with an AWS re:Post Private resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the association of the tag with the AWS re:Post Private resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes the association of the tag with the AWS re:Post Private resource.default UpdateChannelResponse
updateChannel
(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) Modifies an existing channel.default UpdateChannelResponse
updateChannel
(UpdateChannelRequest updateChannelRequest) Modifies an existing channel.default UpdateSpaceResponse
updateSpace
(Consumer<UpdateSpaceRequest.Builder> updateSpaceRequest) Modifies an existing AWS re:Post Private private re:Post.default UpdateSpaceResponse
updateSpace
(UpdateSpaceRequest updateSpaceRequest) Modifies an existing AWS re:Post Private private re:Post.default RepostspaceWaiter
waiter()
Create an instance ofRepostspaceWaiter
using this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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
-
batchAddChannelRoleToAccessors
default BatchAddChannelRoleToAccessorsResponse batchAddChannelRoleToAccessors(BatchAddChannelRoleToAccessorsRequest batchAddChannelRoleToAccessorsRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Add role to multiple users or groups in a private re:Post channel.
- Parameters:
batchAddChannelRoleToAccessorsRequest
-- Returns:
- Result of the BatchAddChannelRoleToAccessors operation returned by the service.
- See Also:
-
batchAddChannelRoleToAccessors
default BatchAddChannelRoleToAccessorsResponse batchAddChannelRoleToAccessors(Consumer<BatchAddChannelRoleToAccessorsRequest.Builder> batchAddChannelRoleToAccessorsRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Add role to multiple users or groups in a private re:Post channel.
This is a convenience which creates an instance of the
BatchAddChannelRoleToAccessorsRequest.Builder
avoiding the need to create one manually viaBatchAddChannelRoleToAccessorsRequest.builder()
- Parameters:
batchAddChannelRoleToAccessorsRequest
- AConsumer
that will call methods onBatchAddChannelRoleToAccessorsRequest.Builder
to create a request.- Returns:
- Result of the BatchAddChannelRoleToAccessors operation returned by the service.
- See Also:
-
batchAddRole
default BatchAddRoleResponse batchAddRole(BatchAddRoleRequest batchAddRoleRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Add a role to multiple users or groups in a private re:Post.
- Parameters:
batchAddRoleRequest
-- Returns:
- Result of the BatchAddRole operation returned by the service.
- See Also:
-
batchAddRole
default BatchAddRoleResponse batchAddRole(Consumer<BatchAddRoleRequest.Builder> batchAddRoleRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Add a role to multiple users or groups in a private re:Post.
This is a convenience which creates an instance of the
BatchAddRoleRequest.Builder
avoiding the need to create one manually viaBatchAddRoleRequest.builder()
- Parameters:
batchAddRoleRequest
- AConsumer
that will call methods onBatchAddRoleRequest.Builder
to create a request.- Returns:
- Result of the BatchAddRole operation returned by the service.
- See Also:
-
batchRemoveChannelRoleFromAccessors
default BatchRemoveChannelRoleFromAccessorsResponse batchRemoveChannelRoleFromAccessors(BatchRemoveChannelRoleFromAccessorsRequest batchRemoveChannelRoleFromAccessorsRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Remove a role from multiple users or groups in a private re:Post channel.
- Parameters:
batchRemoveChannelRoleFromAccessorsRequest
-- Returns:
- Result of the BatchRemoveChannelRoleFromAccessors operation returned by the service.
- See Also:
-
batchRemoveChannelRoleFromAccessors
default BatchRemoveChannelRoleFromAccessorsResponse batchRemoveChannelRoleFromAccessors(Consumer<BatchRemoveChannelRoleFromAccessorsRequest.Builder> batchRemoveChannelRoleFromAccessorsRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Remove a role from multiple users or groups in a private re:Post channel.
This is a convenience which creates an instance of the
BatchRemoveChannelRoleFromAccessorsRequest.Builder
avoiding the need to create one manually viaBatchRemoveChannelRoleFromAccessorsRequest.builder()
- Parameters:
batchRemoveChannelRoleFromAccessorsRequest
- AConsumer
that will call methods onBatchRemoveChannelRoleFromAccessorsRequest.Builder
to create a request.- Returns:
- Result of the BatchRemoveChannelRoleFromAccessors operation returned by the service.
- See Also:
-
batchRemoveRole
default BatchRemoveRoleResponse batchRemoveRole(BatchRemoveRoleRequest batchRemoveRoleRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Remove a role from multiple users or groups in a private re:Post.
- Parameters:
batchRemoveRoleRequest
-- Returns:
- Result of the BatchRemoveRole operation returned by the service.
- See Also:
-
batchRemoveRole
default BatchRemoveRoleResponse batchRemoveRole(Consumer<BatchRemoveRoleRequest.Builder> batchRemoveRoleRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Remove a role from multiple users or groups in a private re:Post.
This is a convenience which creates an instance of the
BatchRemoveRoleRequest.Builder
avoiding the need to create one manually viaBatchRemoveRoleRequest.builder()
- Parameters:
batchRemoveRoleRequest
- AConsumer
that will call methods onBatchRemoveRoleRequest.Builder
to create a request.- Returns:
- Result of the BatchRemoveRole operation returned by the service.
- See Also:
-
createChannel
default CreateChannelResponse createChannel(CreateChannelRequest createChannelRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Creates a channel in an AWS re:Post Private private re:Post.
- Parameters:
createChannelRequest
-- Returns:
- Result of the CreateChannel operation returned by the service.
- See Also:
-
createChannel
default CreateChannelResponse createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Creates a channel in an AWS re:Post Private private re:Post.
This is a convenience which creates an instance of the
CreateChannelRequest.Builder
avoiding the need to create one manually viaCreateChannelRequest.builder()
- Parameters:
createChannelRequest
- AConsumer
that will call methods onCreateChannelRequest.Builder
to create a request.- Returns:
- Result of the CreateChannel operation returned by the service.
- See Also:
-
createSpace
default CreateSpaceResponse createSpace(CreateSpaceRequest createSpaceRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, ConflictException, 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.
- See Also:
-
createSpace
default CreateSpaceResponse createSpace(Consumer<CreateSpaceRequest.Builder> createSpaceRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, ConflictException, 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.Builder
avoiding the need to create one manually viaCreateSpaceRequest.builder()
- Parameters:
createSpaceRequest
- AConsumer
that will call methods onCreateSpaceRequest.Builder
to create a request.- Returns:
- Result of the CreateSpace operation returned by the service.
- See Also:
-
deleteSpace
default DeleteSpaceResponse deleteSpace(DeleteSpaceRequest deleteSpaceRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
deleteSpace
default DeleteSpaceResponse deleteSpace(Consumer<DeleteSpaceRequest.Builder> deleteSpaceRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaDeleteSpaceRequest.builder()
- Parameters:
deleteSpaceRequest
- AConsumer
that will call methods onDeleteSpaceRequest.Builder
to create a request.- Returns:
- Result of the DeleteSpace operation returned by the service.
- See Also:
-
deregisterAdmin
default DeregisterAdminResponse deregisterAdmin(DeregisterAdminRequest deregisterAdminRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
deregisterAdmin
default DeregisterAdminResponse deregisterAdmin(Consumer<DeregisterAdminRequest.Builder> deregisterAdminRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaDeregisterAdminRequest.builder()
- Parameters:
deregisterAdminRequest
- AConsumer
that will call methods onDeregisterAdminRequest.Builder
to create a request.- Returns:
- Result of the DeregisterAdmin operation returned by the service.
- See Also:
-
getChannel
default GetChannelResponse getChannel(GetChannelRequest getChannelRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Displays information about a channel in a private re:Post.
- Parameters:
getChannelRequest
-- Returns:
- Result of the GetChannel operation returned by the service.
- See Also:
-
getChannel
default GetChannelResponse getChannel(Consumer<GetChannelRequest.Builder> getChannelRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Displays information about a channel in a private re:Post.
This is a convenience which creates an instance of the
GetChannelRequest.Builder
avoiding the need to create one manually viaGetChannelRequest.builder()
- Parameters:
getChannelRequest
- AConsumer
that will call methods onGetChannelRequest.Builder
to create a request.- Returns:
- Result of the GetChannel operation returned by the service.
- See Also:
-
getSpace
default GetSpaceResponse getSpace(GetSpaceRequest getSpaceRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
getSpace
default GetSpaceResponse getSpace(Consumer<GetSpaceRequest.Builder> getSpaceRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaGetSpaceRequest.builder()
- Parameters:
getSpaceRequest
- AConsumer
that will call methods onGetSpaceRequest.Builder
to create a request.- Returns:
- Result of the GetSpace operation returned by the service.
- See Also:
-
listChannels
default ListChannelsResponse listChannels(ListChannelsRequest listChannelsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Returns the list of channel within a private re:Post with some information about each channel.
- Parameters:
listChannelsRequest
-- Returns:
- Result of the ListChannels operation returned by the service.
- See Also:
-
listChannels
default ListChannelsResponse listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Returns the list of channel within a private re:Post with some information about each channel.
This is a convenience which creates an instance of the
ListChannelsRequest.Builder
avoiding the need to create one manually viaListChannelsRequest.builder()
- Parameters:
listChannelsRequest
- AConsumer
that will call methods onListChannelsRequest.Builder
to create a request.- Returns:
- Result of the ListChannels operation returned by the service.
- See Also:
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(ListChannelsRequest listChannelsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException This is a variant of
listChannels(software.amazon.awssdk.services.repostspace.model.ListChannelsRequest)
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 Streamsoftware.amazon.awssdk.services.repostspace.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.repostspace.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); for (software.amazon.awssdk.services.repostspace.model.ListChannelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.repostspace.paginators.ListChannelsIterable responses = client.listChannelsPaginator(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
listChannels(software.amazon.awssdk.services.repostspace.model.ListChannelsRequest)
operation.- Parameters:
listChannelsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException This is a variant of
listChannels(software.amazon.awssdk.services.repostspace.model.ListChannelsRequest)
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 Streamsoftware.amazon.awssdk.services.repostspace.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.repostspace.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); for (software.amazon.awssdk.services.repostspace.model.ListChannelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.repostspace.paginators.ListChannelsIterable responses = client.listChannelsPaginator(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
listChannels(software.amazon.awssdk.services.repostspace.model.ListChannelsRequest)
operation.
This is a convenience which creates an instance of the
ListChannelsRequest.Builder
avoiding the need to create one manually viaListChannelsRequest.builder()
- Parameters:
listChannelsRequest
- AConsumer
that will call methods onListChannelsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSpaces
default ListSpacesResponse listSpaces(ListSpacesRequest listSpacesRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
listSpaces
default ListSpacesResponse listSpaces(Consumer<ListSpacesRequest.Builder> listSpacesRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaListSpacesRequest.builder()
- Parameters:
listSpacesRequest
- AConsumer
that will call methods onListSpacesRequest.Builder
to create a request.- Returns:
- Result of the ListSpaces operation returned by the service.
- See Also:
-
listSpacesPaginator
default ListSpacesIterable listSpacesPaginator(ListSpacesRequest listSpacesRequest) throws ValidationException, AccessDeniedException, 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 Streamsoftware.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.
- See Also:
-
listSpacesPaginator
default ListSpacesIterable listSpacesPaginator(Consumer<ListSpacesRequest.Builder> listSpacesRequest) throws ValidationException, AccessDeniedException, 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 Streamsoftware.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.Builder
avoiding the need to create one manually viaListSpacesRequest.builder()
- Parameters:
listSpacesRequest
- AConsumer
that will call methods onListSpacesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
registerAdmin
default RegisterAdminResponse registerAdmin(RegisterAdminRequest registerAdminRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
registerAdmin
default RegisterAdminResponse registerAdmin(Consumer<RegisterAdminRequest.Builder> registerAdminRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaRegisterAdminRequest.builder()
- Parameters:
registerAdminRequest
- AConsumer
that will call methods onRegisterAdminRequest.Builder
to create a request.- Returns:
- Result of the RegisterAdmin operation returned by the service.
- See Also:
-
sendInvites
default SendInvitesResponse sendInvites(SendInvitesRequest sendInvitesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, 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.
- See Also:
-
sendInvites
default SendInvitesResponse sendInvites(Consumer<SendInvitesRequest.Builder> sendInvitesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Sends an invitation email to selected users and groups.
This is a convenience which creates an instance of the
SendInvitesRequest.Builder
avoiding the need to create one manually viaSendInvitesRequest.builder()
- Parameters:
sendInvitesRequest
- AConsumer
that will call methods onSendInvitesRequest.Builder
to create a request.- Returns:
- Result of the SendInvites operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, AccessDeniedException, 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.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, AccessDeniedException, 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.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateChannel
default UpdateChannelResponse updateChannel(UpdateChannelRequest updateChannelRequest) throws ValidationException, AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Modifies an existing channel.
- Parameters:
updateChannelRequest
-- Returns:
- Result of the UpdateChannel operation returned by the service.
- See Also:
-
updateChannel
default UpdateChannelResponse updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) throws ValidationException, AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, RepostspaceException Modifies an existing channel.
This is a convenience which creates an instance of the
UpdateChannelRequest.Builder
avoiding the need to create one manually viaUpdateChannelRequest.builder()
- Parameters:
updateChannelRequest
- AConsumer
that will call methods onUpdateChannelRequest.Builder
to create a request.- Returns:
- Result of the UpdateChannel operation returned by the service.
- See Also:
-
updateSpace
default UpdateSpaceResponse updateSpace(UpdateSpaceRequest updateSpaceRequest) throws ValidationException, AccessDeniedException, ConflictException, 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.
- See Also:
-
updateSpace
default UpdateSpaceResponse updateSpace(Consumer<UpdateSpaceRequest.Builder> updateSpaceRequest) throws ValidationException, AccessDeniedException, ConflictException, 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.Builder
avoiding the need to create one manually viaUpdateSpaceRequest.builder()
- Parameters:
updateSpaceRequest
- AConsumer
that will call methods onUpdateSpaceRequest.Builder
to create a request.- Returns:
- Result of the UpdateSpace operation returned by the service.
- See Also:
-
waiter
Create an instance ofRepostspaceWaiter
using this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
RepostspaceWaiter
-
create
Create aRepostspaceClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aRepostspaceClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-