@Generated(value="OracleSDKGenerator", comments="API Version: 20211101") public class MediaServicesAsyncClient extends BaseAsyncClient implements MediaServicesAsync
Async client implementation for MediaServices service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response
to the call is an InputStream
, like getObject Api in object storage service,
developers need to process the stream in AsyncHandler, and not anywhere else, because the stream
will be closed right after the AsyncHandler is invoked.
2. Use Java Future: using Java Future, developers need to close the stream after they are done
with the Java Future.
Accessing the result should be done in a mutually exclusive manner, either through the Future or
the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the
AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine
whether or not the request was completed via Future.isDone/isCancelled.
Please refer to
https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
Modifier and Type | Class and Description |
---|---|
static class |
MediaServicesAsyncClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for MediaServices.
|
Constructor and Description |
---|
MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
MediaServicesAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
MediaServicesAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
MediaServicesAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for MediaServices.
public final String clientCommonLibraryVersion
@Deprecated public MediaServicesAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public MediaServicesAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public MediaServicesAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public MediaServicesAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see MediaServicesAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
public static MediaServicesAsyncClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
MediaServicesAsync
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
setRegion
in interface MediaServicesAsync
region
- The region of the service.public void setRegion(String regionId)
MediaServicesAsync
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
setRegion
in interface MediaServicesAsync
regionId
- The public region ID.public Future<AddMediaAssetLockResponse> addMediaAssetLock(AddMediaAssetLockRequest request, AsyncHandler<AddMediaAssetLockRequest,AddMediaAssetLockResponse> handler)
MediaServicesAsync
Add a lock to an MediaAsset.
addMediaAssetLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddMediaWorkflowConfigurationLockResponse> addMediaWorkflowConfigurationLock(AddMediaWorkflowConfigurationLockRequest request, AsyncHandler<AddMediaWorkflowConfigurationLockRequest,AddMediaWorkflowConfigurationLockResponse> handler)
MediaServicesAsync
Add a lock to a MediaWorkflowConfiguration.
addMediaWorkflowConfigurationLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddMediaWorkflowJobLockResponse> addMediaWorkflowJobLock(AddMediaWorkflowJobLockRequest request, AsyncHandler<AddMediaWorkflowJobLockRequest,AddMediaWorkflowJobLockResponse> handler)
MediaServicesAsync
Add a lock to a MediaWorkflowJob.
addMediaWorkflowJobLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddMediaWorkflowLockResponse> addMediaWorkflowLock(AddMediaWorkflowLockRequest request, AsyncHandler<AddMediaWorkflowLockRequest,AddMediaWorkflowLockResponse> handler)
MediaServicesAsync
Add a lock to a MediaWorkflow.
addMediaWorkflowLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddStreamCdnConfigLockResponse> addStreamCdnConfigLock(AddStreamCdnConfigLockRequest request, AsyncHandler<AddStreamCdnConfigLockRequest,AddStreamCdnConfigLockResponse> handler)
MediaServicesAsync
Add a lock to a StreamCdnConfig.
addStreamCdnConfigLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddStreamDistributionChannelLockResponse> addStreamDistributionChannelLock(AddStreamDistributionChannelLockRequest request, AsyncHandler<AddStreamDistributionChannelLockRequest,AddStreamDistributionChannelLockResponse> handler)
MediaServicesAsync
Add a lock to a StreamDistributionChannel.
addStreamDistributionChannelLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddStreamPackagingConfigLockResponse> addStreamPackagingConfigLock(AddStreamPackagingConfigLockRequest request, AsyncHandler<AddStreamPackagingConfigLockRequest,AddStreamPackagingConfigLockResponse> handler)
MediaServicesAsync
Add a lock to a StreamPackagingConfig.
addStreamPackagingConfigLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeMediaAssetCompartmentResponse> changeMediaAssetCompartment(ChangeMediaAssetCompartmentRequest request, AsyncHandler<ChangeMediaAssetCompartmentRequest,ChangeMediaAssetCompartmentResponse> handler)
MediaServicesAsync
Moves a MediaAsset resource from one compartment identifier to another.
changeMediaAssetCompartment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeMediaWorkflowCompartmentResponse> changeMediaWorkflowCompartment(ChangeMediaWorkflowCompartmentRequest request, AsyncHandler<ChangeMediaWorkflowCompartmentRequest,ChangeMediaWorkflowCompartmentResponse> handler)
MediaServicesAsync
Moves a MediaWorkflow resource from one compartment identifier to another.
changeMediaWorkflowCompartment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeMediaWorkflowConfigurationCompartmentResponse> changeMediaWorkflowConfigurationCompartment(ChangeMediaWorkflowConfigurationCompartmentRequest request, AsyncHandler<ChangeMediaWorkflowConfigurationCompartmentRequest,ChangeMediaWorkflowConfigurationCompartmentResponse> handler)
MediaServicesAsync
Moves a MediaWorkflowConfiguration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
changeMediaWorkflowConfigurationCompartment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeMediaWorkflowJobCompartmentResponse> changeMediaWorkflowJobCompartment(ChangeMediaWorkflowJobCompartmentRequest request, AsyncHandler<ChangeMediaWorkflowJobCompartmentRequest,ChangeMediaWorkflowJobCompartmentResponse> handler)
MediaServicesAsync
Moves a MediaWorkflowJob resource from one compartment identifier to another.
changeMediaWorkflowJobCompartment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeStreamDistributionChannelCompartmentResponse> changeStreamDistributionChannelCompartment(ChangeStreamDistributionChannelCompartmentRequest request, AsyncHandler<ChangeStreamDistributionChannelCompartmentRequest,ChangeStreamDistributionChannelCompartmentResponse> handler)
MediaServicesAsync
Moves a Stream Distribution Channel resource from one compartment identifier to another.
changeStreamDistributionChannelCompartment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateMediaAssetResponse> createMediaAsset(CreateMediaAssetRequest request, AsyncHandler<CreateMediaAssetRequest,CreateMediaAssetResponse> handler)
MediaServicesAsync
Creates a new MediaAsset.
createMediaAsset
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateMediaWorkflowResponse> createMediaWorkflow(CreateMediaWorkflowRequest request, AsyncHandler<CreateMediaWorkflowRequest,CreateMediaWorkflowResponse> handler)
MediaServicesAsync
Creates a new MediaWorkflow.
createMediaWorkflow
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateMediaWorkflowConfigurationResponse> createMediaWorkflowConfiguration(CreateMediaWorkflowConfigurationRequest request, AsyncHandler<CreateMediaWorkflowConfigurationRequest,CreateMediaWorkflowConfigurationResponse> handler)
MediaServicesAsync
Creates a new MediaWorkflowConfiguration.
createMediaWorkflowConfiguration
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateMediaWorkflowJobResponse> createMediaWorkflowJob(CreateMediaWorkflowJobRequest request, AsyncHandler<CreateMediaWorkflowJobRequest,CreateMediaWorkflowJobResponse> handler)
MediaServicesAsync
Run the MediaWorkflow according to the given mediaWorkflow definition and configuration.
createMediaWorkflowJob
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateStreamCdnConfigResponse> createStreamCdnConfig(CreateStreamCdnConfigRequest request, AsyncHandler<CreateStreamCdnConfigRequest,CreateStreamCdnConfigResponse> handler)
MediaServicesAsync
Creates a new CDN Configuration.
createStreamCdnConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateStreamDistributionChannelResponse> createStreamDistributionChannel(CreateStreamDistributionChannelRequest request, AsyncHandler<CreateStreamDistributionChannelRequest,CreateStreamDistributionChannelResponse> handler)
MediaServicesAsync
Creates a new Stream Distribution Channel.
createStreamDistributionChannel
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateStreamPackagingConfigResponse> createStreamPackagingConfig(CreateStreamPackagingConfigRequest request, AsyncHandler<CreateStreamPackagingConfigRequest,CreateStreamPackagingConfigResponse> handler)
MediaServicesAsync
Creates a new Packaging Configuration.
createStreamPackagingConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteMediaAssetResponse> deleteMediaAsset(DeleteMediaAssetRequest request, AsyncHandler<DeleteMediaAssetRequest,DeleteMediaAssetResponse> handler)
MediaServicesAsync
Deletes a MediaAsset resource by identifier. If DeleteChildren is passed in as the mode, all the assets with the parentMediaAssetId matching the ID will be deleted. If DeleteDerivatives is set as the mode, all the assets with the masterMediaAssetId matching the ID will be deleted.
deleteMediaAsset
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteMediaAssetDistributionChannelAttachmentResponse> deleteMediaAssetDistributionChannelAttachment(DeleteMediaAssetDistributionChannelAttachmentRequest request, AsyncHandler<DeleteMediaAssetDistributionChannelAttachmentRequest,DeleteMediaAssetDistributionChannelAttachmentResponse> handler)
MediaServicesAsync
Deletes a MediaAsset from the DistributionChannel by identifiers.
deleteMediaAssetDistributionChannelAttachment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteMediaWorkflowResponse> deleteMediaWorkflow(DeleteMediaWorkflowRequest request, AsyncHandler<DeleteMediaWorkflowRequest,DeleteMediaWorkflowResponse> handler)
MediaServicesAsync
The MediaWorkflow lifecycleState will change to DELETED.
deleteMediaWorkflow
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteMediaWorkflowConfigurationResponse> deleteMediaWorkflowConfiguration(DeleteMediaWorkflowConfigurationRequest request, AsyncHandler<DeleteMediaWorkflowConfigurationRequest,DeleteMediaWorkflowConfigurationResponse> handler)
MediaServicesAsync
Deletes a MediaWorkflowConfiguration resource by identifier.
deleteMediaWorkflowConfiguration
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteMediaWorkflowJobResponse> deleteMediaWorkflowJob(DeleteMediaWorkflowJobRequest request, AsyncHandler<DeleteMediaWorkflowJobRequest,DeleteMediaWorkflowJobResponse> handler)
MediaServicesAsync
This is an asynchronous operation. The MediaWorkflowJob lifecycleState will change to CANCELING temporarily until the job is completely CANCELED.
deleteMediaWorkflowJob
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteStreamCdnConfigResponse> deleteStreamCdnConfig(DeleteStreamCdnConfigRequest request, AsyncHandler<DeleteStreamCdnConfigRequest,DeleteStreamCdnConfigResponse> handler)
MediaServicesAsync
The StreamCdnConfig lifecycleState will change to DELETED.
deleteStreamCdnConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteStreamDistributionChannelResponse> deleteStreamDistributionChannel(DeleteStreamDistributionChannelRequest request, AsyncHandler<DeleteStreamDistributionChannelRequest,DeleteStreamDistributionChannelResponse> handler)
MediaServicesAsync
The Stream Distribution Channel lifecycleState will change to DELETED.
deleteStreamDistributionChannel
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteStreamPackagingConfigResponse> deleteStreamPackagingConfig(DeleteStreamPackagingConfigRequest request, AsyncHandler<DeleteStreamPackagingConfigRequest,DeleteStreamPackagingConfigResponse> handler)
MediaServicesAsync
The Stream Packaging Configuration lifecycleState will change to DELETED.
deleteStreamPackagingConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMediaAssetResponse> getMediaAsset(GetMediaAssetRequest request, AsyncHandler<GetMediaAssetRequest,GetMediaAssetResponse> handler)
MediaServicesAsync
Gets a MediaAsset by identifier.
getMediaAsset
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMediaAssetDistributionChannelAttachmentResponse> getMediaAssetDistributionChannelAttachment(GetMediaAssetDistributionChannelAttachmentRequest request, AsyncHandler<GetMediaAssetDistributionChannelAttachmentRequest,GetMediaAssetDistributionChannelAttachmentResponse> handler)
MediaServicesAsync
Gets a MediaAssetDistributionChannelAttachment for a MediaAsset by identifiers.
getMediaAssetDistributionChannelAttachment
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMediaWorkflowResponse> getMediaWorkflow(GetMediaWorkflowRequest request, AsyncHandler<GetMediaWorkflowRequest,GetMediaWorkflowResponse> handler)
MediaServicesAsync
Gets a MediaWorkflow by identifier.
getMediaWorkflow
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMediaWorkflowConfigurationResponse> getMediaWorkflowConfiguration(GetMediaWorkflowConfigurationRequest request, AsyncHandler<GetMediaWorkflowConfigurationRequest,GetMediaWorkflowConfigurationResponse> handler)
MediaServicesAsync
Gets a MediaWorkflowConfiguration by identifier
getMediaWorkflowConfiguration
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMediaWorkflowJobResponse> getMediaWorkflowJob(GetMediaWorkflowJobRequest request, AsyncHandler<GetMediaWorkflowJobRequest,GetMediaWorkflowJobResponse> handler)
MediaServicesAsync
Gets the MediaWorkflowJob.
getMediaWorkflowJob
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetStreamCdnConfigResponse> getStreamCdnConfig(GetStreamCdnConfigRequest request, AsyncHandler<GetStreamCdnConfigRequest,GetStreamCdnConfigResponse> handler)
MediaServicesAsync
Gets a StreamCdnConfig by identifier.
getStreamCdnConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetStreamDistributionChannelResponse> getStreamDistributionChannel(GetStreamDistributionChannelRequest request, AsyncHandler<GetStreamDistributionChannelRequest,GetStreamDistributionChannelResponse> handler)
MediaServicesAsync
Gets a Stream Distribution Channel by identifier.
getStreamDistributionChannel
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetStreamPackagingConfigResponse> getStreamPackagingConfig(GetStreamPackagingConfigRequest request, AsyncHandler<GetStreamPackagingConfigRequest,GetStreamPackagingConfigResponse> handler)
MediaServicesAsync
Gets a Stream Packaging Configuration by identifier.
getStreamPackagingConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<IngestStreamDistributionChannelResponse> ingestStreamDistributionChannel(IngestStreamDistributionChannelRequest request, AsyncHandler<IngestStreamDistributionChannelRequest,IngestStreamDistributionChannelResponse> handler)
MediaServicesAsync
Ingests an Asset into a Distribution Channel.
ingestStreamDistributionChannel
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMediaAssetDistributionChannelAttachmentsResponse> listMediaAssetDistributionChannelAttachments(ListMediaAssetDistributionChannelAttachmentsRequest request, AsyncHandler<ListMediaAssetDistributionChannelAttachmentsRequest,ListMediaAssetDistributionChannelAttachmentsResponse> handler)
MediaServicesAsync
Lists the MediaAssetDistributionChannelAttachments for a MediaAsset by identifier.
listMediaAssetDistributionChannelAttachments
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMediaAssetsResponse> listMediaAssets(ListMediaAssetsRequest request, AsyncHandler<ListMediaAssetsRequest,ListMediaAssetsResponse> handler)
MediaServicesAsync
Returns a list of MediaAssetSummary.
listMediaAssets
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMediaWorkflowConfigurationsResponse> listMediaWorkflowConfigurations(ListMediaWorkflowConfigurationsRequest request, AsyncHandler<ListMediaWorkflowConfigurationsRequest,ListMediaWorkflowConfigurationsResponse> handler)
MediaServicesAsync
Returns a list of MediaWorkflowConfigurations.
listMediaWorkflowConfigurations
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMediaWorkflowJobsResponse> listMediaWorkflowJobs(ListMediaWorkflowJobsRequest request, AsyncHandler<ListMediaWorkflowJobsRequest,ListMediaWorkflowJobsResponse> handler)
MediaServicesAsync
Lists the MediaWorkflowJobs.
listMediaWorkflowJobs
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMediaWorkflowTaskDeclarationsResponse> listMediaWorkflowTaskDeclarations(ListMediaWorkflowTaskDeclarationsRequest request, AsyncHandler<ListMediaWorkflowTaskDeclarationsRequest,ListMediaWorkflowTaskDeclarationsResponse> handler)
MediaServicesAsync
Returns a list of MediaWorkflowTaskDeclarations.
listMediaWorkflowTaskDeclarations
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMediaWorkflowsResponse> listMediaWorkflows(ListMediaWorkflowsRequest request, AsyncHandler<ListMediaWorkflowsRequest,ListMediaWorkflowsResponse> handler)
MediaServicesAsync
Lists the MediaWorkflows.
listMediaWorkflows
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListStreamCdnConfigsResponse> listStreamCdnConfigs(ListStreamCdnConfigsRequest request, AsyncHandler<ListStreamCdnConfigsRequest,ListStreamCdnConfigsResponse> handler)
MediaServicesAsync
Lists the StreamCdnConfig.
listStreamCdnConfigs
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListStreamDistributionChannelsResponse> listStreamDistributionChannels(ListStreamDistributionChannelsRequest request, AsyncHandler<ListStreamDistributionChannelsRequest,ListStreamDistributionChannelsResponse> handler)
MediaServicesAsync
Lists the Stream Distribution Channels.
listStreamDistributionChannels
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListStreamPackagingConfigsResponse> listStreamPackagingConfigs(ListStreamPackagingConfigsRequest request, AsyncHandler<ListStreamPackagingConfigsRequest,ListStreamPackagingConfigsResponse> handler)
MediaServicesAsync
Lists the Stream Packaging Configurations.
listStreamPackagingConfigs
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListSystemMediaWorkflowsResponse> listSystemMediaWorkflows(ListSystemMediaWorkflowsRequest request, AsyncHandler<ListSystemMediaWorkflowsRequest,ListSystemMediaWorkflowsResponse> handler)
MediaServicesAsync
Lists the SystemMediaWorkflows that can be used to run a job by name or as a template to create a MediaWorkflow.
listSystemMediaWorkflows
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveMediaAssetLockResponse> removeMediaAssetLock(RemoveMediaAssetLockRequest request, AsyncHandler<RemoveMediaAssetLockRequest,RemoveMediaAssetLockResponse> handler)
MediaServicesAsync
Remove a lock to an MediaAsset.
removeMediaAssetLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveMediaWorkflowConfigurationLockResponse> removeMediaWorkflowConfigurationLock(RemoveMediaWorkflowConfigurationLockRequest request, AsyncHandler<RemoveMediaWorkflowConfigurationLockRequest,RemoveMediaWorkflowConfigurationLockResponse> handler)
MediaServicesAsync
Remove a lock from a MediaWorkflowConfiguration.
removeMediaWorkflowConfigurationLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveMediaWorkflowJobLockResponse> removeMediaWorkflowJobLock(RemoveMediaWorkflowJobLockRequest request, AsyncHandler<RemoveMediaWorkflowJobLockRequest,RemoveMediaWorkflowJobLockResponse> handler)
MediaServicesAsync
Remove a lock from a MediaWorkflowJob.
removeMediaWorkflowJobLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveMediaWorkflowLockResponse> removeMediaWorkflowLock(RemoveMediaWorkflowLockRequest request, AsyncHandler<RemoveMediaWorkflowLockRequest,RemoveMediaWorkflowLockResponse> handler)
MediaServicesAsync
Remove a lock from a MediaWorkflow.
removeMediaWorkflowLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveStreamCdnConfigLockResponse> removeStreamCdnConfigLock(RemoveStreamCdnConfigLockRequest request, AsyncHandler<RemoveStreamCdnConfigLockRequest,RemoveStreamCdnConfigLockResponse> handler)
MediaServicesAsync
Remove a lock from a StreamCdnConfig.
removeStreamCdnConfigLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveStreamDistributionChannelLockResponse> removeStreamDistributionChannelLock(RemoveStreamDistributionChannelLockRequest request, AsyncHandler<RemoveStreamDistributionChannelLockRequest,RemoveStreamDistributionChannelLockResponse> handler)
MediaServicesAsync
Remove a lock to a StreamDistributionChannel.
removeStreamDistributionChannelLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveStreamPackagingConfigLockResponse> removeStreamPackagingConfigLock(RemoveStreamPackagingConfigLockRequest request, AsyncHandler<RemoveStreamPackagingConfigLockRequest,RemoveStreamPackagingConfigLockResponse> handler)
MediaServicesAsync
Remove a lock from a StreamPackagingConfig.
removeStreamPackagingConfigLock
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateMediaAssetResponse> updateMediaAsset(UpdateMediaAssetRequest request, AsyncHandler<UpdateMediaAssetRequest,UpdateMediaAssetResponse> handler)
MediaServicesAsync
Updates the MediaAsset.
updateMediaAsset
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateMediaWorkflowResponse> updateMediaWorkflow(UpdateMediaWorkflowRequest request, AsyncHandler<UpdateMediaWorkflowRequest,UpdateMediaWorkflowResponse> handler)
MediaServicesAsync
Updates the MediaWorkflow.
updateMediaWorkflow
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateMediaWorkflowConfigurationResponse> updateMediaWorkflowConfiguration(UpdateMediaWorkflowConfigurationRequest request, AsyncHandler<UpdateMediaWorkflowConfigurationRequest,UpdateMediaWorkflowConfigurationResponse> handler)
MediaServicesAsync
Updates the MediaWorkflowConfiguration.
updateMediaWorkflowConfiguration
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateMediaWorkflowJobResponse> updateMediaWorkflowJob(UpdateMediaWorkflowJobRequest request, AsyncHandler<UpdateMediaWorkflowJobRequest,UpdateMediaWorkflowJobResponse> handler)
MediaServicesAsync
Updates the MediaWorkflowJob.
updateMediaWorkflowJob
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateStreamCdnConfigResponse> updateStreamCdnConfig(UpdateStreamCdnConfigRequest request, AsyncHandler<UpdateStreamCdnConfigRequest,UpdateStreamCdnConfigResponse> handler)
MediaServicesAsync
Updates the StreamCdnConfig.
updateStreamCdnConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateStreamDistributionChannelResponse> updateStreamDistributionChannel(UpdateStreamDistributionChannelRequest request, AsyncHandler<UpdateStreamDistributionChannelRequest,UpdateStreamDistributionChannelResponse> handler)
MediaServicesAsync
Updates the Stream Distribution Channel.
updateStreamDistributionChannel
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateStreamPackagingConfigResponse> updateStreamPackagingConfig(UpdateStreamPackagingConfigRequest request, AsyncHandler<UpdateStreamPackagingConfigRequest,UpdateStreamPackagingConfigResponse> handler)
MediaServicesAsync
Updates the Stream Packaging Configuration.
updateStreamPackagingConfig
in interface MediaServicesAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
Copyright © 2016–2024. All rights reserved.