@Generated(value="OracleSDKGenerator", comments="API Version: 20230601") public interface JavaDownloadAsync extends AutoCloseable
The APIs for the Java Download feature of Java Management Service.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
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.
region
- The region of the service.void setRegion(String regionId)
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
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<CancelWorkRequestResponse> cancelWorkRequest(CancelWorkRequestRequest request, AsyncHandler<CancelWorkRequestRequest,CancelWorkRequestResponse> handler)
Cancels the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateJavaDownloadReportResponse> createJavaDownloadReport(CreateJavaDownloadReportRequest request, AsyncHandler<CreateJavaDownloadReportRequest,CreateJavaDownloadReportResponse> handler)
Create a new report in the specified format containing the download details for the tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateJavaDownloadTokenResponse> createJavaDownloadToken(CreateJavaDownloadTokenRequest request, AsyncHandler<CreateJavaDownloadTokenRequest,CreateJavaDownloadTokenResponse> handler)
Creates a new JavaDownloadToken in the tenancy with specified attributes. Ensure that you review the license terms before token generation. Visit the <a href="https://www.oracle.com/java/technologies/downloads"/>Oracle Java Downloads page to understand the license terms of the Java version for which you are generating a token. By generating a token, you agree to the associated license terms. See <a href="https://www.oracle.com/cis/java/technologies/javase/jdk-faqs.html">Oracle JDK Licensing - FAQs for detailed information.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateJavaLicenseAcceptanceRecordResponse> createJavaLicenseAcceptanceRecord(CreateJavaLicenseAcceptanceRecordRequest request, AsyncHandler<CreateJavaLicenseAcceptanceRecordRequest,CreateJavaLicenseAcceptanceRecordResponse> handler)
Creates a Java license acceptance record for the specified license type in a tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteJavaDownloadReportResponse> deleteJavaDownloadReport(DeleteJavaDownloadReportRequest request, AsyncHandler<DeleteJavaDownloadReportRequest,DeleteJavaDownloadReportResponse> handler)
Deletes a JavaDownloadReport resource by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteJavaDownloadTokenResponse> deleteJavaDownloadToken(DeleteJavaDownloadTokenRequest request, AsyncHandler<DeleteJavaDownloadTokenRequest,DeleteJavaDownloadTokenResponse> handler)
Deletes a JavaDownloadToken resource by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteJavaLicenseAcceptanceRecordResponse> deleteJavaLicenseAcceptanceRecord(DeleteJavaLicenseAcceptanceRecordRequest request, AsyncHandler<DeleteJavaLicenseAcceptanceRecordRequest,DeleteJavaLicenseAcceptanceRecordResponse> handler)
Deletes a Java license acceptance record with the specified identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GenerateArtifactDownloadUrlResponse> generateArtifactDownloadUrl(GenerateArtifactDownloadUrlRequest request, AsyncHandler<GenerateArtifactDownloadUrlRequest,GenerateArtifactDownloadUrlResponse> handler)
Generates a download URL and returns it in the response payload. The URL in the response can then be used for downloading the specific Java runtime artifact.
Use the getJavaRelease
API to get information about available artifacts for a specific release. Each artifact is
uniquely identified by an `artifactId`. Refer javaArtifact
for more details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaDownloadReportResponse> getJavaDownloadReport(GetJavaDownloadReportRequest request, AsyncHandler<GetJavaDownloadReportRequest,GetJavaDownloadReportResponse> handler)
Gets a JavaDownloadReport by the specified identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaDownloadReportContentResponse> getJavaDownloadReportContent(GetJavaDownloadReportContentRequest request, AsyncHandler<GetJavaDownloadReportContentRequest,GetJavaDownloadReportContentResponse> handler)
Retrieve a Java download report with the specified identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaDownloadTokenResponse> getJavaDownloadToken(GetJavaDownloadTokenRequest request, AsyncHandler<GetJavaDownloadTokenRequest,GetJavaDownloadTokenResponse> handler)
Gets a JavaDownloadToken by identifier
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaLicenseResponse> getJavaLicense(GetJavaLicenseRequest request, AsyncHandler<GetJavaLicenseRequest,GetJavaLicenseResponse> handler)
Return details of the specified Java license type.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaLicenseAcceptanceRecordResponse> getJavaLicenseAcceptanceRecord(GetJavaLicenseAcceptanceRecordRequest request, AsyncHandler<GetJavaLicenseAcceptanceRecordRequest,GetJavaLicenseAcceptanceRecordResponse> handler)
Returns a specific Java license acceptance record in a tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets details of the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaDownloadRecordsResponse> listJavaDownloadRecords(ListJavaDownloadRecordsRequest request, AsyncHandler<ListJavaDownloadRecordsRequest,ListJavaDownloadRecordsResponse> handler)
Returns a list of Java download records in a tenancy based on specified parameters. See
listJavaReleases
for
possible values of javaFamilyVersion
and javaReleaseVersion
parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaDownloadReportsResponse> listJavaDownloadReports(ListJavaDownloadReportsRequest request, AsyncHandler<ListJavaDownloadReportsRequest,ListJavaDownloadReportsResponse> handler)
Returns a list of JavaDownloadReports.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaDownloadTokensResponse> listJavaDownloadTokens(ListJavaDownloadTokensRequest request, AsyncHandler<ListJavaDownloadTokensRequest,ListJavaDownloadTokensResponse> handler)
Returns a list of JavaDownloadTokens.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaLicenseAcceptanceRecordsResponse> listJavaLicenseAcceptanceRecords(ListJavaLicenseAcceptanceRecordsRequest request, AsyncHandler<ListJavaLicenseAcceptanceRecordsRequest,ListJavaLicenseAcceptanceRecordsResponse> handler)
Returns a list of all the Java license acceptance records in a tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaLicensesResponse> listJavaLicenses(ListJavaLicensesRequest request, AsyncHandler<ListJavaLicensesRequest,ListJavaLicensesResponse> handler)
Return a list with details of all Java licenses.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Returns a (paginated) list of errors for the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Returns a (paginated) list of logs for the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RequestSummarizedJavaDownloadCountsResponse> requestSummarizedJavaDownloadCounts(RequestSummarizedJavaDownloadCountsRequest request, AsyncHandler<RequestSummarizedJavaDownloadCountsRequest,RequestSummarizedJavaDownloadCountsResponse> handler)
Returns list of download counts grouped by the specified property.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateJavaDownloadTokenResponse> updateJavaDownloadToken(UpdateJavaDownloadTokenRequest request, AsyncHandler<UpdateJavaDownloadTokenRequest,UpdateJavaDownloadTokenResponse> handler)
Updates the JavaDownloadToken specified by the identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateJavaLicenseAcceptanceRecordResponse> updateJavaLicenseAcceptanceRecord(UpdateJavaLicenseAcceptanceRecordRequest request, AsyncHandler<UpdateJavaLicenseAcceptanceRecordRequest,UpdateJavaLicenseAcceptanceRecordResponse> handler)
Updates a specific Java license acceptance record in a tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.