Interface IvsRealTimeClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Introduction
The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses, including errors.
Terminology:
-
A stage is a virtual space where participants can exchange video in real time.
-
A participant token is a token that authenticates a participant when they join a stage.
-
A participant object represents participants (people) in the stage and contains information about them. When a token is created, it includes a participant ID; when a participant uses that token to join a stage, the participant is associated with that participant ID There is a 1:1 mapping between participant tokens and participants.
Resources
The following resources contain information about your IVS live stream (see Getting Started with Amazon IVS Real-Time Streaming):
-
Stage — A stage is a virtual space where participants can exchange video in real time.
Tagging
A tag is a metadata label that you assign to an AWS resource. A tag comprises a key and a value,
both set by you. For example, you might set a tag as topic:nature
to label a particular video category.
See Tagging AWS Resources for more
information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS stages
has no service-specific constraints beyond what is documented there.
Tags can help you identify and organize your AWS resources. For example, you can use the same tag for different resources to indicate that they are related. You can also use tags to manage access (see Access Tags).
The Amazon IVS real-time API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following resource supports tagging: Stage.
At most 50 tags can be applied to a resource.
Stages Endpoints
-
CreateParticipantToken — Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire.
-
CreateStage — Creates a new stage (and optionally participant tokens).
-
DeleteStage — Shuts down and deletes the specified stage (disconnecting all participants).
-
DisconnectParticipant — Disconnects a specified participant and revokes the participant permanently from a specified stage.
-
GetParticipant — Gets information about the specified participant token.
-
GetStage — Gets information for the specified stage.
-
GetStageSession — Gets information for the specified stage session.
-
ListParticipantEvents — Lists events for a specified participant that occurred during a specified stage session.
-
ListParticipants — Lists all participants in a specified stage session.
-
ListStages — Gets summary information about all stages in your account, in the AWS region where the API request is processed.
-
ListStageSessions — Gets all sessions for a specified stage.
-
UpdateStage — Updates a stage’s configuration.
Tags Endpoints
-
ListTagsForResource — Gets information about AWS tags for the specified ARN.
-
TagResource — Adds or updates tags for the AWS resource with the specified ARN.
-
UntagResource — Removes tags from the resource with the specified ARN.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic IvsRealTimeClientBuilder
builder()
Create a builder that can be used to configure and create aIvsRealTimeClient
.static IvsRealTimeClient
create()
Create aIvsRealTimeClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateParticipantTokenResponse
createParticipantToken
(Consumer<CreateParticipantTokenRequest.Builder> createParticipantTokenRequest) Creates an additional token for a specified stage.default CreateParticipantTokenResponse
createParticipantToken
(CreateParticipantTokenRequest createParticipantTokenRequest) Creates an additional token for a specified stage.default CreateStageResponse
createStage
(Consumer<CreateStageRequest.Builder> createStageRequest) Creates a new stage (and optionally participant tokens).default CreateStageResponse
createStage
(CreateStageRequest createStageRequest) Creates a new stage (and optionally participant tokens).default DeleteStageResponse
deleteStage
(Consumer<DeleteStageRequest.Builder> deleteStageRequest) Shuts down and deletes the specified stage (disconnecting all participants).default DeleteStageResponse
deleteStage
(DeleteStageRequest deleteStageRequest) Shuts down and deletes the specified stage (disconnecting all participants).default DisconnectParticipantResponse
disconnectParticipant
(Consumer<DisconnectParticipantRequest.Builder> disconnectParticipantRequest) Disconnects a specified participant and revokes the participant permanently from a specified stage.default DisconnectParticipantResponse
disconnectParticipant
(DisconnectParticipantRequest disconnectParticipantRequest) Disconnects a specified participant and revokes the participant permanently from a specified stage.default GetParticipantResponse
getParticipant
(Consumer<GetParticipantRequest.Builder> getParticipantRequest) Gets information about the specified participant token.default GetParticipantResponse
getParticipant
(GetParticipantRequest getParticipantRequest) Gets information about the specified participant token.default GetStageResponse
getStage
(Consumer<GetStageRequest.Builder> getStageRequest) Gets information for the specified stage.default GetStageResponse
getStage
(GetStageRequest getStageRequest) Gets information for the specified stage.default GetStageSessionResponse
getStageSession
(Consumer<GetStageSessionRequest.Builder> getStageSessionRequest) Gets information for the specified stage session.default GetStageSessionResponse
getStageSession
(GetStageSessionRequest getStageSessionRequest) Gets information for the specified stage session.default ListParticipantEventsResponse
listParticipantEvents
(Consumer<ListParticipantEventsRequest.Builder> listParticipantEventsRequest) Lists events for a specified participant that occurred during a specified stage session.default ListParticipantEventsResponse
listParticipantEvents
(ListParticipantEventsRequest listParticipantEventsRequest) Lists events for a specified participant that occurred during a specified stage session.default ListParticipantEventsIterable
listParticipantEventsPaginator
(Consumer<ListParticipantEventsRequest.Builder> listParticipantEventsRequest) Lists events for a specified participant that occurred during a specified stage session.default ListParticipantEventsIterable
listParticipantEventsPaginator
(ListParticipantEventsRequest listParticipantEventsRequest) Lists events for a specified participant that occurred during a specified stage session.default ListParticipantsResponse
listParticipants
(Consumer<ListParticipantsRequest.Builder> listParticipantsRequest) Lists all participants in a specified stage session.default ListParticipantsResponse
listParticipants
(ListParticipantsRequest listParticipantsRequest) Lists all participants in a specified stage session.default ListParticipantsIterable
listParticipantsPaginator
(Consumer<ListParticipantsRequest.Builder> listParticipantsRequest) Lists all participants in a specified stage session.default ListParticipantsIterable
listParticipantsPaginator
(ListParticipantsRequest listParticipantsRequest) Lists all participants in a specified stage session.default ListStagesResponse
listStages
(Consumer<ListStagesRequest.Builder> listStagesRequest) Gets summary information about all stages in your account, in the AWS region where the API request is processed.default ListStagesResponse
listStages
(ListStagesRequest listStagesRequest) Gets summary information about all stages in your account, in the AWS region where the API request is processed.default ListStageSessionsResponse
listStageSessions
(Consumer<ListStageSessionsRequest.Builder> listStageSessionsRequest) Gets all sessions for a specified stage.default ListStageSessionsResponse
listStageSessions
(ListStageSessionsRequest listStageSessionsRequest) Gets all sessions for a specified stage.default ListStageSessionsIterable
listStageSessionsPaginator
(Consumer<ListStageSessionsRequest.Builder> listStageSessionsRequest) Gets all sessions for a specified stage.default ListStageSessionsIterable
listStageSessionsPaginator
(ListStageSessionsRequest listStageSessionsRequest) Gets all sessions for a specified stage.default ListStagesIterable
listStagesPaginator
(Consumer<ListStagesRequest.Builder> listStagesRequest) Gets summary information about all stages in your account, in the AWS region where the API request is processed.default ListStagesIterable
listStagesPaginator
(ListStagesRequest listStagesRequest) Gets summary information about all stages in your account, in the AWS region where the API request is processed.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Gets information about AWS tags for the specified ARN.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Gets information about AWS tags for the specified ARN.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or updates tags for the AWS resource with the specified ARN.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds or updates tags for the AWS resource with the specified ARN.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the resource with the specified ARN.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes tags from the resource with the specified ARN.default UpdateStageResponse
updateStage
(Consumer<UpdateStageRequest.Builder> updateStageRequest) Updates a stage’s configuration.default UpdateStageResponse
updateStage
(UpdateStageRequest updateStageRequest) Updates a stage’s configuration.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
-
createParticipantToken
default CreateParticipantTokenResponse createParticipantToken(CreateParticipantTokenRequest createParticipantTokenRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, ServiceQuotaExceededException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created.
Encryption keys are owned by Amazon IVS and never used directly by your application.
- Parameters:
createParticipantTokenRequest
-- Returns:
- Result of the CreateParticipantToken operation returned by the service.
- See Also:
-
createParticipantToken
default CreateParticipantTokenResponse createParticipantToken(Consumer<CreateParticipantTokenRequest.Builder> createParticipantTokenRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, ServiceQuotaExceededException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created.
Encryption keys are owned by Amazon IVS and never used directly by your application.
This is a convenience which creates an instance of the
CreateParticipantTokenRequest.Builder
avoiding the need to create one manually viaCreateParticipantTokenRequest.builder()
- Parameters:
createParticipantTokenRequest
- AConsumer
that will call methods onCreateParticipantTokenRequest.Builder
to create a request.- Returns:
- Result of the CreateParticipantToken operation returned by the service.
- See Also:
-
createStage
default CreateStageResponse createStage(CreateStageRequest createStageRequest) throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Creates a new stage (and optionally participant tokens).
- Parameters:
createStageRequest
-- Returns:
- Result of the CreateStage operation returned by the service.
- See Also:
-
createStage
default CreateStageResponse createStage(Consumer<CreateStageRequest.Builder> createStageRequest) throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Creates a new stage (and optionally participant tokens).
This is a convenience which creates an instance of the
CreateStageRequest.Builder
avoiding the need to create one manually viaCreateStageRequest.builder()
- Parameters:
createStageRequest
- AConsumer
that will call methods onCreateStageRequest.Builder
to create a request.- Returns:
- Result of the CreateStage operation returned by the service.
- See Also:
-
deleteStage
default DeleteStageResponse deleteStage(DeleteStageRequest deleteStageRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, ConflictException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Shuts down and deletes the specified stage (disconnecting all participants).
- Parameters:
deleteStageRequest
-- Returns:
- Result of the DeleteStage operation returned by the service.
- See Also:
-
deleteStage
default DeleteStageResponse deleteStage(Consumer<DeleteStageRequest.Builder> deleteStageRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, ConflictException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Shuts down and deletes the specified stage (disconnecting all participants).
This is a convenience which creates an instance of the
DeleteStageRequest.Builder
avoiding the need to create one manually viaDeleteStageRequest.builder()
- Parameters:
deleteStageRequest
- AConsumer
that will call methods onDeleteStageRequest.Builder
to create a request.- Returns:
- Result of the DeleteStage operation returned by the service.
- See Also:
-
disconnectParticipant
default DisconnectParticipantResponse disconnectParticipant(DisconnectParticipantRequest disconnectParticipantRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Disconnects a specified participant and revokes the participant permanently from a specified stage.
- Parameters:
disconnectParticipantRequest
-- Returns:
- Result of the DisconnectParticipant operation returned by the service.
- See Also:
-
disconnectParticipant
default DisconnectParticipantResponse disconnectParticipant(Consumer<DisconnectParticipantRequest.Builder> disconnectParticipantRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Disconnects a specified participant and revokes the participant permanently from a specified stage.
This is a convenience which creates an instance of the
DisconnectParticipantRequest.Builder
avoiding the need to create one manually viaDisconnectParticipantRequest.builder()
- Parameters:
disconnectParticipantRequest
- AConsumer
that will call methods onDisconnectParticipantRequest.Builder
to create a request.- Returns:
- Result of the DisconnectParticipant operation returned by the service.
- See Also:
-
getParticipant
default GetParticipantResponse getParticipant(GetParticipantRequest getParticipantRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information about the specified participant token.
- Parameters:
getParticipantRequest
-- Returns:
- Result of the GetParticipant operation returned by the service.
- See Also:
-
getParticipant
default GetParticipantResponse getParticipant(Consumer<GetParticipantRequest.Builder> getParticipantRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information about the specified participant token.
This is a convenience which creates an instance of the
GetParticipantRequest.Builder
avoiding the need to create one manually viaGetParticipantRequest.builder()
- Parameters:
getParticipantRequest
- AConsumer
that will call methods onGetParticipantRequest.Builder
to create a request.- Returns:
- Result of the GetParticipant operation returned by the service.
- See Also:
-
getStage
default GetStageResponse getStage(GetStageRequest getStageRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information for the specified stage.
- Parameters:
getStageRequest
-- Returns:
- Result of the GetStage operation returned by the service.
- See Also:
-
getStage
default GetStageResponse getStage(Consumer<GetStageRequest.Builder> getStageRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information for the specified stage.
This is a convenience which creates an instance of the
GetStageRequest.Builder
avoiding the need to create one manually viaGetStageRequest.builder()
- Parameters:
getStageRequest
- AConsumer
that will call methods onGetStageRequest.Builder
to create a request.- Returns:
- Result of the GetStage operation returned by the service.
- See Also:
-
getStageSession
default GetStageSessionResponse getStageSession(GetStageSessionRequest getStageSessionRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information for the specified stage session.
- Parameters:
getStageSessionRequest
-- Returns:
- Result of the GetStageSession operation returned by the service.
- See Also:
-
getStageSession
default GetStageSessionResponse getStageSession(Consumer<GetStageSessionRequest.Builder> getStageSessionRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information for the specified stage session.
This is a convenience which creates an instance of the
GetStageSessionRequest.Builder
avoiding the need to create one manually viaGetStageSessionRequest.builder()
- Parameters:
getStageSessionRequest
- AConsumer
that will call methods onGetStageSessionRequest.Builder
to create a request.- Returns:
- Result of the GetStageSession operation returned by the service.
- See Also:
-
listParticipantEvents
default ListParticipantEventsResponse listParticipantEvents(ListParticipantEventsRequest listParticipantEventsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists events for a specified participant that occurred during a specified stage session.
- Parameters:
listParticipantEventsRequest
-- Returns:
- Result of the ListParticipantEvents operation returned by the service.
- See Also:
-
listParticipantEvents
default ListParticipantEventsResponse listParticipantEvents(Consumer<ListParticipantEventsRequest.Builder> listParticipantEventsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists events for a specified participant that occurred during a specified stage session.
This is a convenience which creates an instance of the
ListParticipantEventsRequest.Builder
avoiding the need to create one manually viaListParticipantEventsRequest.builder()
- Parameters:
listParticipantEventsRequest
- AConsumer
that will call methods onListParticipantEventsRequest.Builder
to create a request.- Returns:
- Result of the ListParticipantEvents operation returned by the service.
- See Also:
-
listParticipantEventsPaginator
default ListParticipantEventsIterable listParticipantEventsPaginator(ListParticipantEventsRequest listParticipantEventsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists events for a specified participant that occurred during a specified stage session.
This is a variant of
listParticipantEvents(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantEventsRequest)
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.ivsrealtime.paginators.ListParticipantEventsIterable responses = client.listParticipantEventsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantEventsIterable responses = client .listParticipantEventsPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListParticipantEventsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantEventsIterable responses = client.listParticipantEventsPaginator(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
listParticipantEvents(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantEventsRequest)
operation.- Parameters:
listParticipantEventsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listParticipantEventsPaginator
default ListParticipantEventsIterable listParticipantEventsPaginator(Consumer<ListParticipantEventsRequest.Builder> listParticipantEventsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists events for a specified participant that occurred during a specified stage session.
This is a variant of
listParticipantEvents(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantEventsRequest)
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.ivsrealtime.paginators.ListParticipantEventsIterable responses = client.listParticipantEventsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantEventsIterable responses = client .listParticipantEventsPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListParticipantEventsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantEventsIterable responses = client.listParticipantEventsPaginator(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
listParticipantEvents(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantEventsRequest)
operation.This is a convenience which creates an instance of the
ListParticipantEventsRequest.Builder
avoiding the need to create one manually viaListParticipantEventsRequest.builder()
- Parameters:
listParticipantEventsRequest
- AConsumer
that will call methods onListParticipantEventsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listParticipants
default ListParticipantsResponse listParticipants(ListParticipantsRequest listParticipantsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists all participants in a specified stage session.
- Parameters:
listParticipantsRequest
-- Returns:
- Result of the ListParticipants operation returned by the service.
- See Also:
-
listParticipants
default ListParticipantsResponse listParticipants(Consumer<ListParticipantsRequest.Builder> listParticipantsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists all participants in a specified stage session.
This is a convenience which creates an instance of the
ListParticipantsRequest.Builder
avoiding the need to create one manually viaListParticipantsRequest.builder()
- Parameters:
listParticipantsRequest
- AConsumer
that will call methods onListParticipantsRequest.Builder
to create a request.- Returns:
- Result of the ListParticipants operation returned by the service.
- See Also:
-
listParticipantsPaginator
default ListParticipantsIterable listParticipantsPaginator(ListParticipantsRequest listParticipantsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists all participants in a specified stage session.
This is a variant of
listParticipants(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantsRequest)
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.ivsrealtime.paginators.ListParticipantsIterable responses = client.listParticipantsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantsIterable responses = client .listParticipantsPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListParticipantsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantsIterable responses = client.listParticipantsPaginator(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
listParticipants(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantsRequest)
operation.- Parameters:
listParticipantsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listParticipantsPaginator
default ListParticipantsIterable listParticipantsPaginator(Consumer<ListParticipantsRequest.Builder> listParticipantsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Lists all participants in a specified stage session.
This is a variant of
listParticipants(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantsRequest)
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.ivsrealtime.paginators.ListParticipantsIterable responses = client.listParticipantsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantsIterable responses = client .listParticipantsPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListParticipantsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListParticipantsIterable responses = client.listParticipantsPaginator(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
listParticipants(software.amazon.awssdk.services.ivsrealtime.model.ListParticipantsRequest)
operation.This is a convenience which creates an instance of the
ListParticipantsRequest.Builder
avoiding the need to create one manually viaListParticipantsRequest.builder()
- Parameters:
listParticipantsRequest
- AConsumer
that will call methods onListParticipantsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listStageSessions
default ListStageSessionsResponse listStageSessions(ListStageSessionsRequest listStageSessionsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets all sessions for a specified stage.
- Parameters:
listStageSessionsRequest
-- Returns:
- Result of the ListStageSessions operation returned by the service.
- See Also:
-
listStageSessions
default ListStageSessionsResponse listStageSessions(Consumer<ListStageSessionsRequest.Builder> listStageSessionsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets all sessions for a specified stage.
This is a convenience which creates an instance of the
ListStageSessionsRequest.Builder
avoiding the need to create one manually viaListStageSessionsRequest.builder()
- Parameters:
listStageSessionsRequest
- AConsumer
that will call methods onListStageSessionsRequest.Builder
to create a request.- Returns:
- Result of the ListStageSessions operation returned by the service.
- See Also:
-
listStageSessionsPaginator
default ListStageSessionsIterable listStageSessionsPaginator(ListStageSessionsRequest listStageSessionsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets all sessions for a specified stage.
This is a variant of
listStageSessions(software.amazon.awssdk.services.ivsrealtime.model.ListStageSessionsRequest)
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.ivsrealtime.paginators.ListStageSessionsIterable responses = client.listStageSessionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListStageSessionsIterable responses = client .listStageSessionsPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListStageSessionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListStageSessionsIterable responses = client.listStageSessionsPaginator(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
listStageSessions(software.amazon.awssdk.services.ivsrealtime.model.ListStageSessionsRequest)
operation.- Parameters:
listStageSessionsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listStageSessionsPaginator
default ListStageSessionsIterable listStageSessionsPaginator(Consumer<ListStageSessionsRequest.Builder> listStageSessionsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, IvsRealTimeException Gets all sessions for a specified stage.
This is a variant of
listStageSessions(software.amazon.awssdk.services.ivsrealtime.model.ListStageSessionsRequest)
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.ivsrealtime.paginators.ListStageSessionsIterable responses = client.listStageSessionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListStageSessionsIterable responses = client .listStageSessionsPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListStageSessionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListStageSessionsIterable responses = client.listStageSessionsPaginator(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
listStageSessions(software.amazon.awssdk.services.ivsrealtime.model.ListStageSessionsRequest)
operation.This is a convenience which creates an instance of the
ListStageSessionsRequest.Builder
avoiding the need to create one manually viaListStageSessionsRequest.builder()
- Parameters:
listStageSessionsRequest
- AConsumer
that will call methods onListStageSessionsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listStages
default ListStagesResponse listStages(ListStagesRequest listStagesRequest) throws ValidationException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, IvsRealTimeException Gets summary information about all stages in your account, in the AWS region where the API request is processed.
- Parameters:
listStagesRequest
-- Returns:
- Result of the ListStages operation returned by the service.
- See Also:
-
listStages
default ListStagesResponse listStages(Consumer<ListStagesRequest.Builder> listStagesRequest) throws ValidationException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, IvsRealTimeException Gets summary information about all stages in your account, in the AWS region where the API request is processed.
This is a convenience which creates an instance of the
ListStagesRequest.Builder
avoiding the need to create one manually viaListStagesRequest.builder()
- Parameters:
listStagesRequest
- AConsumer
that will call methods onListStagesRequest.Builder
to create a request.- Returns:
- Result of the ListStages operation returned by the service.
- See Also:
-
listStagesPaginator
default ListStagesIterable listStagesPaginator(ListStagesRequest listStagesRequest) throws ValidationException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, IvsRealTimeException Gets summary information about all stages in your account, in the AWS region where the API request is processed.
This is a variant of
listStages(software.amazon.awssdk.services.ivsrealtime.model.ListStagesRequest)
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.ivsrealtime.paginators.ListStagesIterable responses = client.listStagesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListStagesIterable responses = client.listStagesPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListStagesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListStagesIterable responses = client.listStagesPaginator(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
listStages(software.amazon.awssdk.services.ivsrealtime.model.ListStagesRequest)
operation.- Parameters:
listStagesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listStagesPaginator
default ListStagesIterable listStagesPaginator(Consumer<ListStagesRequest.Builder> listStagesRequest) throws ValidationException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, IvsRealTimeException Gets summary information about all stages in your account, in the AWS region where the API request is processed.
This is a variant of
listStages(software.amazon.awssdk.services.ivsrealtime.model.ListStagesRequest)
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.ivsrealtime.paginators.ListStagesIterable responses = client.listStagesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.ivsrealtime.paginators.ListStagesIterable responses = client.listStagesPaginator(request); for (software.amazon.awssdk.services.ivsrealtime.model.ListStagesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.ivsrealtime.paginators.ListStagesIterable responses = client.listStagesPaginator(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
listStages(software.amazon.awssdk.services.ivsrealtime.model.ListStagesRequest)
operation.This is a convenience which creates an instance of the
ListStagesRequest.Builder
avoiding the need to create one manually viaListStagesRequest.builder()
- Parameters:
listStagesRequest
- AConsumer
that will call methods onListStagesRequest.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 ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information about AWS tags for the specified ARN.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, IvsRealTimeException Gets information about AWS tags for the specified ARN.
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:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, IvsRealTimeException Adds or updates tags for the AWS resource with the specified ARN.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, IvsRealTimeException Adds or updates tags for the AWS resource with the specified ARN.
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 ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, IvsRealTimeException Removes tags from the resource with the specified ARN.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, IvsRealTimeException Removes tags from the resource with the specified ARN.
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:
-
updateStage
default UpdateStageResponse updateStage(UpdateStageRequest updateStageRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, ServiceQuotaExceededException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Updates a stage’s configuration.
- Parameters:
updateStageRequest
-- Returns:
- Result of the UpdateStage operation returned by the service.
- See Also:
-
updateStage
default UpdateStageResponse updateStage(Consumer<UpdateStageRequest.Builder> updateStageRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, ServiceQuotaExceededException, PendingVerificationException, AwsServiceException, SdkClientException, IvsRealTimeException Updates a stage’s configuration.
This is a convenience which creates an instance of the
UpdateStageRequest.Builder
avoiding the need to create one manually viaUpdateStageRequest.builder()
- Parameters:
updateStageRequest
- AConsumer
that will call methods onUpdateStageRequest.Builder
to create a request.- Returns:
- Result of the UpdateStage operation returned by the service.
- See Also:
-
create
Create aIvsRealTimeClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aIvsRealTimeClient
. -
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
-