@Generated(value="OracleSDKGenerator", comments="API Version: 20200531") public class LoggingManagementAsyncClient extends Object implements LoggingManagementAsync
Async client implementation for LoggingManagement service.
There are two ways to use async client:
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. | Modifier and Type | Class and Description |
|---|---|
static class |
LoggingManagementAsyncClient.Builder
Builder class for this client.
|
| Modifier and Type | Field and Description |
|---|---|
static Service |
SERVICE
Service instance for LoggingManagement.
|
| Constructor and Description |
|---|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
public static final Service SERVICE
Service instance for LoggingManagement.
public LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider - The authentication details provider, required.public LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.public LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)restClientFactoryBuilder - the builder for the RestClientFactorypublic static LoggingManagementAsyncClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
LoggingManagementAsyncSets the endpoint to call (ex, https://www.example.com).
setEndpoint in interface LoggingManagementAsyncendpoint - The endpoint of the serice.public String getEndpoint()
LoggingManagementAsyncGets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint in interface LoggingManagementAsyncpublic void setRegion(Region region)
LoggingManagementAsyncSets 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 LoggingManagementAsyncregion - The region of the service.public void setRegion(String regionId)
LoggingManagementAsyncSets 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 LoggingManagementAsyncregionId - The public region ID.public void close()
close in interface AutoCloseablepublic Future<ChangeLogGroupCompartmentResponse> changeLogGroupCompartment(ChangeLogGroupCompartmentRequest request, AsyncHandler<ChangeLogGroupCompartmentRequest,ChangeLogGroupCompartmentResponse> handler)
LoggingManagementAsyncMoves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. For information about moving resources between compartments, see Moving Resources Between Compartments.
changeLogGroupCompartment in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ChangeLogLogGroupResponse> changeLogLogGroup(ChangeLogLogGroupRequest request, AsyncHandler<ChangeLogLogGroupRequest,ChangeLogLogGroupResponse> handler)
LoggingManagementAsyncMoves a log into a different log group within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource.
changeLogLogGroup in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ChangeLogSavedSearchCompartmentResponse> changeLogSavedSearchCompartment(ChangeLogSavedSearchCompartmentRequest request, AsyncHandler<ChangeLogSavedSearchCompartmentRequest,ChangeLogSavedSearchCompartmentResponse> handler)
LoggingManagementAsyncMoves a saved search into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeLogSavedSearchCompartment in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ChangeUnifiedAgentConfigurationCompartmentResponse> changeUnifiedAgentConfigurationCompartment(ChangeUnifiedAgentConfigurationCompartmentRequest request, AsyncHandler<ChangeUnifiedAgentConfigurationCompartmentRequest,ChangeUnifiedAgentConfigurationCompartmentResponse> handler)
LoggingManagementAsyncMoves the unified agent configuration into a different compartment within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. For information about moving resources between compartments, see Moving Resources Between Compartments.
changeUnifiedAgentConfigurationCompartment in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<CreateLogResponse> createLog(CreateLogRequest request, AsyncHandler<CreateLogRequest,CreateLogResponse> handler)
LoggingManagementAsyncCreates a log within the specified log group. This call fails if a log group has already been created with the same displayName or (service, resource, category) triplet.
createLog in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<CreateLogGroupResponse> createLogGroup(CreateLogGroupRequest request, AsyncHandler<CreateLogGroupRequest,CreateLogGroupResponse> handler)
LoggingManagementAsyncCreate a new log group with a unique display name. This call fails if the log group is already created with the same displayName in the compartment.
createLogGroup in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<CreateLogSavedSearchResponse> createLogSavedSearch(CreateLogSavedSearchRequest request, AsyncHandler<CreateLogSavedSearchRequest,CreateLogSavedSearchResponse> handler)
LoggingManagementAsyncCreates a new LogSavedSearch.
createLogSavedSearch in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<CreateUnifiedAgentConfigurationResponse> createUnifiedAgentConfiguration(CreateUnifiedAgentConfigurationRequest request, AsyncHandler<CreateUnifiedAgentConfigurationRequest,CreateUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsyncCreate unified agent configuration registration.
createUnifiedAgentConfiguration in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<DeleteLogResponse> deleteLog(DeleteLogRequest request, AsyncHandler<DeleteLogRequest,DeleteLogResponse> handler)
LoggingManagementAsyncDeletes the log object in a log group.
deleteLog in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<DeleteLogGroupResponse> deleteLogGroup(DeleteLogGroupRequest request, AsyncHandler<DeleteLogGroupRequest,DeleteLogGroupResponse> handler)
LoggingManagementAsyncDeletes the specified log group.
deleteLogGroup in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<DeleteLogSavedSearchResponse> deleteLogSavedSearch(DeleteLogSavedSearchRequest request, AsyncHandler<DeleteLogSavedSearchRequest,DeleteLogSavedSearchResponse> handler)
LoggingManagementAsyncDeletes the specified log saved search.
deleteLogSavedSearch in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<DeleteUnifiedAgentConfigurationResponse> deleteUnifiedAgentConfiguration(DeleteUnifiedAgentConfigurationRequest request, AsyncHandler<DeleteUnifiedAgentConfigurationRequest,DeleteUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsyncDelete unified agent configuration.
deleteUnifiedAgentConfiguration in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<DeleteWorkRequestResponse> deleteWorkRequest(DeleteWorkRequestRequest request, AsyncHandler<DeleteWorkRequestRequest,DeleteWorkRequestResponse> handler)
LoggingManagementAsyncCancel a work request that has not started yet.
deleteWorkRequest in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<GetLogResponse> getLog(GetLogRequest request, AsyncHandler<GetLogRequest,GetLogResponse> handler)
LoggingManagementAsyncGets the log object configuration for the log object OCID.
getLog in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<GetLogGroupResponse> getLogGroup(GetLogGroupRequest request, AsyncHandler<GetLogGroupRequest,GetLogGroupResponse> handler)
LoggingManagementAsyncGet the specified log group’s information.
getLogGroup in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<GetLogIncludedSearchResponse> getLogIncludedSearch(GetLogIncludedSearchRequest request, AsyncHandler<GetLogIncludedSearchRequest,GetLogIncludedSearchResponse> handler)
LoggingManagementAsyncRetrieves a LogIncludedSearch.
getLogIncludedSearch in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<GetLogSavedSearchResponse> getLogSavedSearch(GetLogSavedSearchRequest request, AsyncHandler<GetLogSavedSearchRequest,GetLogSavedSearchResponse> handler)
LoggingManagementAsyncRetrieves a log saved search.
getLogSavedSearch in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<GetUnifiedAgentConfigurationResponse> getUnifiedAgentConfiguration(GetUnifiedAgentConfigurationRequest request, AsyncHandler<GetUnifiedAgentConfigurationRequest,GetUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsyncGet the unified agent configuration for an ID.
getUnifiedAgentConfiguration in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
LoggingManagementAsyncGets the details of the work request with the given ID.
getWorkRequest in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListLogGroupsResponse> listLogGroups(ListLogGroupsRequest request, AsyncHandler<ListLogGroupsRequest,ListLogGroupsResponse> handler)
LoggingManagementAsyncLists all log groups for the specified compartment or tenancy.
listLogGroups in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListLogIncludedSearchesResponse> listLogIncludedSearches(ListLogIncludedSearchesRequest request, AsyncHandler<ListLogIncludedSearchesRequest,ListLogIncludedSearchesResponse> handler)
LoggingManagementAsyncLists Logging Included Searches for this compartment.
listLogIncludedSearches in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListLogSavedSearchesResponse> listLogSavedSearches(ListLogSavedSearchesRequest request, AsyncHandler<ListLogSavedSearchesRequest,ListLogSavedSearchesResponse> handler)
LoggingManagementAsyncLists Logging Saved Searches for this compartment.
listLogSavedSearches in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListLogsResponse> listLogs(ListLogsRequest request, AsyncHandler<ListLogsRequest,ListLogsResponse> handler)
LoggingManagementAsyncLists the specified log group’s log objects.
listLogs in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListServicesResponse> listServices(ListServicesRequest request, AsyncHandler<ListServicesRequest,ListServicesResponse> handler)
LoggingManagementAsyncLists all services that support logging.
listServices in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListUnifiedAgentConfigurationsResponse> listUnifiedAgentConfigurations(ListUnifiedAgentConfigurationsRequest request, AsyncHandler<ListUnifiedAgentConfigurationsRequest,ListUnifiedAgentConfigurationsResponse> handler)
LoggingManagementAsyncLists all unified agent configurations in the specified compartment.
listUnifiedAgentConfigurations in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
LoggingManagementAsyncReturn a list of errors for a given work request.
listWorkRequestErrors in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
LoggingManagementAsyncReturn a list of logs for a given work request.
listWorkRequestLogs in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
LoggingManagementAsyncLists the work requests in a compartment.
listWorkRequests in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<UpdateLogResponse> updateLog(UpdateLogRequest request, AsyncHandler<UpdateLogRequest,UpdateLogResponse> handler)
LoggingManagementAsyncUpdates the existing log object with the associated configuration. This call fails if the log object does not exist.
updateLog in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<UpdateLogGroupResponse> updateLogGroup(UpdateLogGroupRequest request, AsyncHandler<UpdateLogGroupRequest,UpdateLogGroupResponse> handler)
LoggingManagementAsyncUpdates the existing log group with the associated configuration. This call fails if the log group does not exist.
updateLogGroup in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<UpdateLogSavedSearchResponse> updateLogSavedSearch(UpdateLogSavedSearchRequest request, AsyncHandler<UpdateLogSavedSearchRequest,UpdateLogSavedSearchResponse> handler)
LoggingManagementAsyncUpdates an existing log saved search.
updateLogSavedSearch in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<UpdateUnifiedAgentConfigurationResponse> updateUnifiedAgentConfiguration(UpdateUnifiedAgentConfigurationRequest request, AsyncHandler<UpdateUnifiedAgentConfigurationRequest,UpdateUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsyncUpdate an existing unified agent configuration. This call fails if the log group does not exist.
updateUnifiedAgentConfiguration in interface LoggingManagementAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Copyright © 2016–2021. All rights reserved.