All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.codeguruprofiler.CodeGuruProfilerAsyncClient Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.codeguruprofiler;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.services.codeguruprofiler.model.AddNotificationChannelsRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.AddNotificationChannelsResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.BatchGetFrameMetricDataRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.BatchGetFrameMetricDataResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.ConfigureAgentRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.ConfigureAgentResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.CreateProfilingGroupRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.CreateProfilingGroupResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.DeleteProfilingGroupRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.DeleteProfilingGroupResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.DescribeProfilingGroupRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.DescribeProfilingGroupResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.GetNotificationConfigurationRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.GetNotificationConfigurationResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.GetPolicyRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.GetPolicyResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.GetProfileRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.GetProfileResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.GetRecommendationsRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.GetRecommendationsResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.PostAgentProfileRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.PostAgentProfileResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.PutPermissionRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.PutPermissionResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.RemoveNotificationChannelRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.RemoveNotificationChannelResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.RemovePermissionRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.RemovePermissionResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.SubmitFeedbackRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.SubmitFeedbackResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.TagResourceRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.TagResourceResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.UntagResourceRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.UntagResourceResponse;
import software.amazon.awssdk.services.codeguruprofiler.model.UpdateProfilingGroupRequest;
import software.amazon.awssdk.services.codeguruprofiler.model.UpdateProfilingGroupResponse;
import software.amazon.awssdk.services.codeguruprofiler.paginators.GetFindingsReportAccountSummaryPublisher;
import software.amazon.awssdk.services.codeguruprofiler.paginators.ListFindingsReportsPublisher;
import software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfileTimesPublisher;
import software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfilingGroupsPublisher;

/**
 * Service client for accessing Amazon CodeGuru Profiler asynchronously. This can be created using the static
 * {@link #builder()} method.
 *
 * 

* This section provides documentation for the Amazon CodeGuru Profiler API operations. *

*

* Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations * that can help you fine-tune your application performance. Using machine learning algorithms, CodeGuru Profiler can * help you find your most expensive lines of code and suggest ways you can improve efficiency and remove CPU * bottlenecks. *

*

* Amazon CodeGuru Profiler provides different visualizations of profiling data to help you identify what code is * running on the CPU, see how much time is consumed, and suggest ways to reduce CPU utilization. *

* *

* Amazon CodeGuru Profiler currently supports applications written in all Java virtual machine (JVM) languages and * Python. While CodeGuru Profiler supports both visualizations and recommendations for applications written in Java, it * can also generate visualizations and a subset of recommendations for applications written in other JVM languages and * Python. *

*
*

* For more information, see What is Amazon CodeGuru * Profiler in the Amazon CodeGuru Profiler User Guide. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface CodeGuruProfilerAsyncClient extends SdkClient { String SERVICE_NAME = "codeguru-profiler"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "codeguru-profiler"; /** * Create a {@link CodeGuruProfilerAsyncClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static CodeGuruProfilerAsyncClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link CodeGuruProfilerAsyncClient}. */ static CodeGuruProfilerAsyncClientBuilder builder() { return new DefaultCodeGuruProfilerAsyncClientBuilder(); } /** *

* Add up to 2 anomaly notifications channels for a profiling group. *

* * @param addNotificationChannelsRequest * The structure representing the AddNotificationChannelsRequest. * @return A Java Future containing the result of the AddNotificationChannels operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, * remove some of the relevant resources, or use Service Quotas to * request a service quota increase.
  • *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.AddNotificationChannels * @see AWS API Documentation */ default CompletableFuture addNotificationChannels( AddNotificationChannelsRequest addNotificationChannelsRequest) { throw new UnsupportedOperationException(); } /** *

* Add up to 2 anomaly notifications channels for a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link AddNotificationChannelsRequest.Builder} avoiding * the need to create one manually via {@link AddNotificationChannelsRequest#builder()} *

* * @param addNotificationChannelsRequest * A {@link Consumer} that will call methods on {@link AddNotificationChannelsRequest.Builder} to create a * request. The structure representing the AddNotificationChannelsRequest. * @return A Java Future containing the result of the AddNotificationChannels operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, * remove some of the relevant resources, or use Service Quotas to * request a service quota increase.
  • *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.AddNotificationChannels * @see AWS API Documentation */ default CompletableFuture addNotificationChannels( Consumer addNotificationChannelsRequest) { return addNotificationChannels(AddNotificationChannelsRequest.builder().applyMutation(addNotificationChannelsRequest) .build()); } /** *

* Returns the time series of values for a requested list of frame metrics from a time period. *

* * @param batchGetFrameMetricDataRequest * The structure representing the BatchGetFrameMetricDataRequest. * @return A Java Future containing the result of the BatchGetFrameMetricData operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.BatchGetFrameMetricData * @see AWS API Documentation */ default CompletableFuture batchGetFrameMetricData( BatchGetFrameMetricDataRequest batchGetFrameMetricDataRequest) { throw new UnsupportedOperationException(); } /** *

* Returns the time series of values for a requested list of frame metrics from a time period. *

*
*

* This is a convenience which creates an instance of the {@link BatchGetFrameMetricDataRequest.Builder} avoiding * the need to create one manually via {@link BatchGetFrameMetricDataRequest#builder()} *

* * @param batchGetFrameMetricDataRequest * A {@link Consumer} that will call methods on {@link BatchGetFrameMetricDataRequest.Builder} to create a * request. The structure representing the BatchGetFrameMetricDataRequest. * @return A Java Future containing the result of the BatchGetFrameMetricData operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.BatchGetFrameMetricData * @see AWS API Documentation */ default CompletableFuture batchGetFrameMetricData( Consumer batchGetFrameMetricDataRequest) { return batchGetFrameMetricData(BatchGetFrameMetricDataRequest.builder().applyMutation(batchGetFrameMetricDataRequest) .build()); } /** *

* Used by profiler agents to report their current state and to receive remote configuration updates. For example, * ConfigureAgent can be used to tell an agent whether to profile or not and for how long to return * profiling data. *

* * @param configureAgentRequest * The structure representing the configureAgentRequest. * @return A Java Future containing the result of the ConfigureAgent operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ConfigureAgent * @see AWS API Documentation */ default CompletableFuture configureAgent(ConfigureAgentRequest configureAgentRequest) { throw new UnsupportedOperationException(); } /** *

* Used by profiler agents to report their current state and to receive remote configuration updates. For example, * ConfigureAgent can be used to tell an agent whether to profile or not and for how long to return * profiling data. *

*
*

* This is a convenience which creates an instance of the {@link ConfigureAgentRequest.Builder} avoiding the need to * create one manually via {@link ConfigureAgentRequest#builder()} *

* * @param configureAgentRequest * A {@link Consumer} that will call methods on {@link ConfigureAgentRequest.Builder} to create a request. * The structure representing the configureAgentRequest. * @return A Java Future containing the result of the ConfigureAgent operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ConfigureAgent * @see AWS API Documentation */ default CompletableFuture configureAgent(Consumer configureAgentRequest) { return configureAgent(ConfigureAgentRequest.builder().applyMutation(configureAgentRequest).build()); } /** *

* Creates a profiling group. *

* * @param createProfilingGroupRequest * The structure representing the createProfiliingGroupRequest. * @return A Java Future containing the result of the CreateProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, * remove some of the relevant resources, or use Service Quotas to * request a service quota increase.
  • *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.CreateProfilingGroup * @see AWS API Documentation */ default CompletableFuture createProfilingGroup( CreateProfilingGroupRequest createProfilingGroupRequest) { throw new UnsupportedOperationException(); } /** *

* Creates a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link CreateProfilingGroupRequest.Builder} avoiding the * need to create one manually via {@link CreateProfilingGroupRequest#builder()} *

* * @param createProfilingGroupRequest * A {@link Consumer} that will call methods on {@link CreateProfilingGroupRequest.Builder} to create a * request. The structure representing the createProfiliingGroupRequest. * @return A Java Future containing the result of the CreateProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ServiceQuotaExceededException You have exceeded your service quota. To perform the requested action, * remove some of the relevant resources, or use Service Quotas to * request a service quota increase.
  • *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.CreateProfilingGroup * @see AWS API Documentation */ default CompletableFuture createProfilingGroup( Consumer createProfilingGroupRequest) { return createProfilingGroup(CreateProfilingGroupRequest.builder().applyMutation(createProfilingGroupRequest).build()); } /** *

* Deletes a profiling group. *

* * @param deleteProfilingGroupRequest * The structure representing the deleteProfilingGroupRequest. * @return A Java Future containing the result of the DeleteProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.DeleteProfilingGroup * @see AWS API Documentation */ default CompletableFuture deleteProfilingGroup( DeleteProfilingGroupRequest deleteProfilingGroupRequest) { throw new UnsupportedOperationException(); } /** *

* Deletes a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link DeleteProfilingGroupRequest.Builder} avoiding the * need to create one manually via {@link DeleteProfilingGroupRequest#builder()} *

* * @param deleteProfilingGroupRequest * A {@link Consumer} that will call methods on {@link DeleteProfilingGroupRequest.Builder} to create a * request. The structure representing the deleteProfilingGroupRequest. * @return A Java Future containing the result of the DeleteProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.DeleteProfilingGroup * @see AWS API Documentation */ default CompletableFuture deleteProfilingGroup( Consumer deleteProfilingGroupRequest) { return deleteProfilingGroup(DeleteProfilingGroupRequest.builder().applyMutation(deleteProfilingGroupRequest).build()); } /** *

* Returns a * ProfilingGroupDescription object that contains information about the requested profiling group. *

* * @param describeProfilingGroupRequest * The structure representing the describeProfilingGroupRequest. * @return A Java Future containing the result of the DescribeProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.DescribeProfilingGroup * @see AWS API Documentation */ default CompletableFuture describeProfilingGroup( DescribeProfilingGroupRequest describeProfilingGroupRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a * ProfilingGroupDescription object that contains information about the requested profiling group. *

*
*

* This is a convenience which creates an instance of the {@link DescribeProfilingGroupRequest.Builder} avoiding the * need to create one manually via {@link DescribeProfilingGroupRequest#builder()} *

* * @param describeProfilingGroupRequest * A {@link Consumer} that will call methods on {@link DescribeProfilingGroupRequest.Builder} to create a * request. The structure representing the describeProfilingGroupRequest. * @return A Java Future containing the result of the DescribeProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.DescribeProfilingGroup * @see AWS API Documentation */ default CompletableFuture describeProfilingGroup( Consumer describeProfilingGroupRequest) { return describeProfilingGroup(DescribeProfilingGroupRequest.builder().applyMutation(describeProfilingGroupRequest) .build()); } /** *

* Returns a list of * FindingsReportSummary objects that contain analysis results for all profiling groups in your * AWS account. *

* * @param getFindingsReportAccountSummaryRequest * The structure representing the GetFindingsReportAccountSummaryRequest. * @return A Java Future containing the result of the GetFindingsReportAccountSummary operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetFindingsReportAccountSummary * @see AWS API Documentation */ default CompletableFuture getFindingsReportAccountSummary( GetFindingsReportAccountSummaryRequest getFindingsReportAccountSummaryRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of * FindingsReportSummary objects that contain analysis results for all profiling groups in your * AWS account. *

*
*

* This is a convenience which creates an instance of the {@link GetFindingsReportAccountSummaryRequest.Builder} * avoiding the need to create one manually via {@link GetFindingsReportAccountSummaryRequest#builder()} *

* * @param getFindingsReportAccountSummaryRequest * A {@link Consumer} that will call methods on {@link GetFindingsReportAccountSummaryRequest.Builder} to * create a request. The structure representing the GetFindingsReportAccountSummaryRequest. * @return A Java Future containing the result of the GetFindingsReportAccountSummary operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetFindingsReportAccountSummary * @see AWS API Documentation */ default CompletableFuture getFindingsReportAccountSummary( Consumer getFindingsReportAccountSummaryRequest) { return getFindingsReportAccountSummary(GetFindingsReportAccountSummaryRequest.builder() .applyMutation(getFindingsReportAccountSummaryRequest).build()); } /** *

* Returns a list of * FindingsReportSummary objects that contain analysis results for all profiling groups in your * AWS account. *

*
*

* This is a variant of * {@link #getFindingsReportAccountSummary(software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.GetFindingsReportAccountSummaryPublisher publisher = client.getFindingsReportAccountSummaryPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.GetFindingsReportAccountSummaryPublisher publisher = client.getFindingsReportAccountSummaryPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #getFindingsReportAccountSummary(software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryRequest)} * operation. *

* * @param getFindingsReportAccountSummaryRequest * The structure representing the GetFindingsReportAccountSummaryRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetFindingsReportAccountSummary * @see AWS API Documentation */ default GetFindingsReportAccountSummaryPublisher getFindingsReportAccountSummaryPaginator( GetFindingsReportAccountSummaryRequest getFindingsReportAccountSummaryRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of * FindingsReportSummary objects that contain analysis results for all profiling groups in your * AWS account. *

*
*

* This is a variant of * {@link #getFindingsReportAccountSummary(software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.GetFindingsReportAccountSummaryPublisher publisher = client.getFindingsReportAccountSummaryPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.GetFindingsReportAccountSummaryPublisher publisher = client.getFindingsReportAccountSummaryPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #getFindingsReportAccountSummary(software.amazon.awssdk.services.codeguruprofiler.model.GetFindingsReportAccountSummaryRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link GetFindingsReportAccountSummaryRequest.Builder} * avoiding the need to create one manually via {@link GetFindingsReportAccountSummaryRequest#builder()} *

* * @param getFindingsReportAccountSummaryRequest * A {@link Consumer} that will call methods on {@link GetFindingsReportAccountSummaryRequest.Builder} to * create a request. The structure representing the GetFindingsReportAccountSummaryRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetFindingsReportAccountSummary * @see AWS API Documentation */ default GetFindingsReportAccountSummaryPublisher getFindingsReportAccountSummaryPaginator( Consumer getFindingsReportAccountSummaryRequest) { return getFindingsReportAccountSummaryPaginator(GetFindingsReportAccountSummaryRequest.builder() .applyMutation(getFindingsReportAccountSummaryRequest).build()); } /** *

* Get the current configuration for anomaly notifications for a profiling group. *

* * @param getNotificationConfigurationRequest * The structure representing the GetNotificationConfigurationRequest. * @return A Java Future containing the result of the GetNotificationConfiguration operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetNotificationConfiguration * @see AWS API Documentation */ default CompletableFuture getNotificationConfiguration( GetNotificationConfigurationRequest getNotificationConfigurationRequest) { throw new UnsupportedOperationException(); } /** *

* Get the current configuration for anomaly notifications for a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link GetNotificationConfigurationRequest.Builder} * avoiding the need to create one manually via {@link GetNotificationConfigurationRequest#builder()} *

* * @param getNotificationConfigurationRequest * A {@link Consumer} that will call methods on {@link GetNotificationConfigurationRequest.Builder} to create * a request. The structure representing the GetNotificationConfigurationRequest. * @return A Java Future containing the result of the GetNotificationConfiguration operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetNotificationConfiguration * @see AWS API Documentation */ default CompletableFuture getNotificationConfiguration( Consumer getNotificationConfigurationRequest) { return getNotificationConfiguration(GetNotificationConfigurationRequest.builder() .applyMutation(getNotificationConfigurationRequest).build()); } /** *

* Returns the JSON-formatted resource-based policy on a profiling group. *

* * @param getPolicyRequest * The structure representing the getPolicyRequest. * @return A Java Future containing the result of the GetPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetPolicy * @see AWS * API Documentation */ default CompletableFuture getPolicy(GetPolicyRequest getPolicyRequest) { throw new UnsupportedOperationException(); } /** *

* Returns the JSON-formatted resource-based policy on a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link GetPolicyRequest.Builder} avoiding the need to * create one manually via {@link GetPolicyRequest#builder()} *

* * @param getPolicyRequest * A {@link Consumer} that will call methods on {@link GetPolicyRequest.Builder} to create a request. The * structure representing the getPolicyRequest. * @return A Java Future containing the result of the GetPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetPolicy * @see AWS * API Documentation */ default CompletableFuture getPolicy(Consumer getPolicyRequest) { return getPolicy(GetPolicyRequest.builder().applyMutation(getPolicyRequest).build()); } /** *

* Gets the aggregated profile of a profiling group for a specified time range. Amazon CodeGuru Profiler collects * posted agent profiles for a profiling group into aggregated profiles. *

* *
     *  <note> <p> Because aggregated profiles expire over time <code>GetProfile</code> is not idempotent. </p> </note> <p> Specify the time range for the requested aggregated profile using 1 or 2 of the following parameters: <code>startTime</code>, <code>endTime</code>, <code>period</code>. The maximum time range allowed is 7 days. If you specify all 3 parameters, an exception is thrown. If you specify only <code>period</code>, the latest aggregated profile is returned. </p> <p> Aggregated profiles are available with aggregation periods of 5 minutes, 1 hour, and 1 day, aligned to UTC. The aggregation period of an aggregated profile determines how long it is retained. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html"> <code>AggregatedProfileTime</code> </a>. The aggregated profile's aggregation period determines how long it is retained by CodeGuru Profiler. </p> <ul> <li> <p> If the aggregation period is 5 minutes, the aggregated profile is retained for 15 days. </p> </li> <li> <p> If the aggregation period is 1 hour, the aggregated profile is retained for 60 days. </p> </li> <li> <p> If the aggregation period is 1 day, the aggregated profile is retained for 3 years. </p> </li> </ul> <p>There are two use cases for calling <code>GetProfile</code>.</p> <ol> <li> <p> If you want to return an aggregated profile that already exists, use <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ListProfileTimes.html"> <code>ListProfileTimes</code> </a> to view the time ranges of existing aggregated profiles. Use them in a <code>GetProfile</code> request to return a specific, existing aggregated profile. </p> </li> <li> <p> If you want to return an aggregated profile for a time range that doesn't align with an existing aggregated profile, then CodeGuru Profiler makes a best effort to combine existing aggregated profiles from the requested time range and return them as one aggregated profile. </p> <p> If aggregated profiles do not exist for the full time range requested, then aggregated profiles for a smaller time range are returned. For example, if the requested time range is from 00:00 to 00:20, and the existing aggregated profiles are from 00:15 and 00:25, then the aggregated profiles from 00:15 to 00:20 are returned. </p> </li> </ol> 
     * 
* * @param getProfileRequest * The structure representing the getProfileRequest. * @return A Java Future containing the result of the GetProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetProfile * @see AWS * API Documentation */ default CompletableFuture getProfile(GetProfileRequest getProfileRequest) { throw new UnsupportedOperationException(); } /** *

* Gets the aggregated profile of a profiling group for a specified time range. Amazon CodeGuru Profiler collects * posted agent profiles for a profiling group into aggregated profiles. *

* *
     *  <note> <p> Because aggregated profiles expire over time <code>GetProfile</code> is not idempotent. </p> </note> <p> Specify the time range for the requested aggregated profile using 1 or 2 of the following parameters: <code>startTime</code>, <code>endTime</code>, <code>period</code>. The maximum time range allowed is 7 days. If you specify all 3 parameters, an exception is thrown. If you specify only <code>period</code>, the latest aggregated profile is returned. </p> <p> Aggregated profiles are available with aggregation periods of 5 minutes, 1 hour, and 1 day, aligned to UTC. The aggregation period of an aggregated profile determines how long it is retained. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html"> <code>AggregatedProfileTime</code> </a>. The aggregated profile's aggregation period determines how long it is retained by CodeGuru Profiler. </p> <ul> <li> <p> If the aggregation period is 5 minutes, the aggregated profile is retained for 15 days. </p> </li> <li> <p> If the aggregation period is 1 hour, the aggregated profile is retained for 60 days. </p> </li> <li> <p> If the aggregation period is 1 day, the aggregated profile is retained for 3 years. </p> </li> </ul> <p>There are two use cases for calling <code>GetProfile</code>.</p> <ol> <li> <p> If you want to return an aggregated profile that already exists, use <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ListProfileTimes.html"> <code>ListProfileTimes</code> </a> to view the time ranges of existing aggregated profiles. Use them in a <code>GetProfile</code> request to return a specific, existing aggregated profile. </p> </li> <li> <p> If you want to return an aggregated profile for a time range that doesn't align with an existing aggregated profile, then CodeGuru Profiler makes a best effort to combine existing aggregated profiles from the requested time range and return them as one aggregated profile. </p> <p> If aggregated profiles do not exist for the full time range requested, then aggregated profiles for a smaller time range are returned. For example, if the requested time range is from 00:00 to 00:20, and the existing aggregated profiles are from 00:15 and 00:25, then the aggregated profiles from 00:15 to 00:20 are returned. </p> </li> </ol> 
     * 
* *
*

* This is a convenience which creates an instance of the {@link GetProfileRequest.Builder} avoiding the need to * create one manually via {@link GetProfileRequest#builder()} *

* * @param getProfileRequest * A {@link Consumer} that will call methods on {@link GetProfileRequest.Builder} to create a request. The * structure representing the getProfileRequest. * @return A Java Future containing the result of the GetProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetProfile * @see AWS * API Documentation */ default CompletableFuture getProfile(Consumer getProfileRequest) { return getProfile(GetProfileRequest.builder().applyMutation(getProfileRequest).build()); } /** *

* Returns a list of * Recommendation objects that contain recommendations for a profiling group for a given time * period. A list of * Anomaly objects that contains details about anomalies detected in the profiling group for the * same time period is also returned. *

* * @param getRecommendationsRequest * The structure representing the GetRecommendationsRequest. * @return A Java Future containing the result of the GetRecommendations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetRecommendations * @see AWS API Documentation */ default CompletableFuture getRecommendations(GetRecommendationsRequest getRecommendationsRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of * Recommendation objects that contain recommendations for a profiling group for a given time * period. A list of * Anomaly objects that contains details about anomalies detected in the profiling group for the * same time period is also returned. *

*
*

* This is a convenience which creates an instance of the {@link GetRecommendationsRequest.Builder} avoiding the * need to create one manually via {@link GetRecommendationsRequest#builder()} *

* * @param getRecommendationsRequest * A {@link Consumer} that will call methods on {@link GetRecommendationsRequest.Builder} to create a * request. The structure representing the GetRecommendationsRequest. * @return A Java Future containing the result of the GetRecommendations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.GetRecommendations * @see AWS API Documentation */ default CompletableFuture getRecommendations( Consumer getRecommendationsRequest) { return getRecommendations(GetRecommendationsRequest.builder().applyMutation(getRecommendationsRequest).build()); } /** *

* List the available reports for a given profiling group and time range. *

* * @param listFindingsReportsRequest * The structure representing the ListFindingsReportsRequest. * @return A Java Future containing the result of the ListFindingsReports operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListFindingsReports * @see AWS API Documentation */ default CompletableFuture listFindingsReports( ListFindingsReportsRequest listFindingsReportsRequest) { throw new UnsupportedOperationException(); } /** *

* List the available reports for a given profiling group and time range. *

*
*

* This is a convenience which creates an instance of the {@link ListFindingsReportsRequest.Builder} avoiding the * need to create one manually via {@link ListFindingsReportsRequest#builder()} *

* * @param listFindingsReportsRequest * A {@link Consumer} that will call methods on {@link ListFindingsReportsRequest.Builder} to create a * request. The structure representing the ListFindingsReportsRequest. * @return A Java Future containing the result of the ListFindingsReports operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListFindingsReports * @see AWS API Documentation */ default CompletableFuture listFindingsReports( Consumer listFindingsReportsRequest) { return listFindingsReports(ListFindingsReportsRequest.builder().applyMutation(listFindingsReportsRequest).build()); } /** *

* List the available reports for a given profiling group and time range. *

*
*

* This is a variant of * {@link #listFindingsReports(software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListFindingsReportsPublisher publisher = client.listFindingsReportsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListFindingsReportsPublisher publisher = client.listFindingsReportsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #listFindingsReports(software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsRequest)} * operation. *

* * @param listFindingsReportsRequest * The structure representing the ListFindingsReportsRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListFindingsReports * @see AWS API Documentation */ default ListFindingsReportsPublisher listFindingsReportsPaginator(ListFindingsReportsRequest listFindingsReportsRequest) { throw new UnsupportedOperationException(); } /** *

* List the available reports for a given profiling group and time range. *

*
*

* This is a variant of * {@link #listFindingsReports(software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListFindingsReportsPublisher publisher = client.listFindingsReportsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListFindingsReportsPublisher publisher = client.listFindingsReportsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #listFindingsReports(software.amazon.awssdk.services.codeguruprofiler.model.ListFindingsReportsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListFindingsReportsRequest.Builder} avoiding the * need to create one manually via {@link ListFindingsReportsRequest#builder()} *

* * @param listFindingsReportsRequest * A {@link Consumer} that will call methods on {@link ListFindingsReportsRequest.Builder} to create a * request. The structure representing the ListFindingsReportsRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListFindingsReports * @see AWS API Documentation */ default ListFindingsReportsPublisher listFindingsReportsPaginator( Consumer listFindingsReportsRequest) { return listFindingsReportsPaginator(ListFindingsReportsRequest.builder().applyMutation(listFindingsReportsRequest) .build()); } /** *

* Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within * the specified time range. *

* * @param listProfileTimesRequest * The structure representing the listProfileTimesRequest. * @return A Java Future containing the result of the ListProfileTimes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfileTimes * @see AWS API Documentation */ default CompletableFuture listProfileTimes(ListProfileTimesRequest listProfileTimesRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within * the specified time range. *

*
*

* This is a convenience which creates an instance of the {@link ListProfileTimesRequest.Builder} avoiding the need * to create one manually via {@link ListProfileTimesRequest#builder()} *

* * @param listProfileTimesRequest * A {@link Consumer} that will call methods on {@link ListProfileTimesRequest.Builder} to create a request. * The structure representing the listProfileTimesRequest. * @return A Java Future containing the result of the ListProfileTimes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfileTimes * @see AWS API Documentation */ default CompletableFuture listProfileTimes( Consumer listProfileTimesRequest) { return listProfileTimes(ListProfileTimesRequest.builder().applyMutation(listProfileTimesRequest).build()); } /** *

* Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within * the specified time range. *

*
*

* This is a variant of * {@link #listProfileTimes(software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfileTimesPublisher publisher = client.listProfileTimesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfileTimesPublisher publisher = client.listProfileTimesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #listProfileTimes(software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesRequest)} * operation. *

* * @param listProfileTimesRequest * The structure representing the listProfileTimesRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfileTimes * @see AWS API Documentation */ default ListProfileTimesPublisher listProfileTimesPaginator(ListProfileTimesRequest listProfileTimesRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within * the specified time range. *

*
*

* This is a variant of * {@link #listProfileTimes(software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfileTimesPublisher publisher = client.listProfileTimesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfileTimesPublisher publisher = client.listProfileTimesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #listProfileTimes(software.amazon.awssdk.services.codeguruprofiler.model.ListProfileTimesRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListProfileTimesRequest.Builder} avoiding the need * to create one manually via {@link ListProfileTimesRequest#builder()} *

* * @param listProfileTimesRequest * A {@link Consumer} that will call methods on {@link ListProfileTimesRequest.Builder} to create a request. * The structure representing the listProfileTimesRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfileTimes * @see AWS API Documentation */ default ListProfileTimesPublisher listProfileTimesPaginator(Consumer listProfileTimesRequest) { return listProfileTimesPaginator(ListProfileTimesRequest.builder().applyMutation(listProfileTimesRequest).build()); } /** *

* Returns a list of profiling groups. The profiling groups are returned as * ProfilingGroupDescription objects. *

* * @param listProfilingGroupsRequest * The structure representing the listProfilingGroupsRequest. * @return A Java Future containing the result of the ListProfilingGroups operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfilingGroups * @see AWS API Documentation */ default CompletableFuture listProfilingGroups( ListProfilingGroupsRequest listProfilingGroupsRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of profiling groups. The profiling groups are returned as * ProfilingGroupDescription objects. *

*
*

* This is a convenience which creates an instance of the {@link ListProfilingGroupsRequest.Builder} avoiding the * need to create one manually via {@link ListProfilingGroupsRequest#builder()} *

* * @param listProfilingGroupsRequest * A {@link Consumer} that will call methods on {@link ListProfilingGroupsRequest.Builder} to create a * request. The structure representing the listProfilingGroupsRequest. * @return A Java Future containing the result of the ListProfilingGroups operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfilingGroups * @see AWS API Documentation */ default CompletableFuture listProfilingGroups( Consumer listProfilingGroupsRequest) { return listProfilingGroups(ListProfilingGroupsRequest.builder().applyMutation(listProfilingGroupsRequest).build()); } /** *

* Returns a list of profiling groups. The profiling groups are returned as * ProfilingGroupDescription objects. *

*
*

* This is a variant of * {@link #listProfilingGroups(software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfilingGroupsPublisher publisher = client.listProfilingGroupsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfilingGroupsPublisher publisher = client.listProfilingGroupsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #listProfilingGroups(software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsRequest)} * operation. *

* * @param listProfilingGroupsRequest * The structure representing the listProfilingGroupsRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfilingGroups * @see AWS API Documentation */ default ListProfilingGroupsPublisher listProfilingGroupsPaginator(ListProfilingGroupsRequest listProfilingGroupsRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of profiling groups. The profiling groups are returned as * ProfilingGroupDescription objects. *

*
*

* This is a variant of * {@link #listProfilingGroups(software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfilingGroupsPublisher publisher = client.listProfilingGroupsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.codeguruprofiler.paginators.ListProfilingGroupsPublisher publisher = client.listProfilingGroupsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* 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 * {@link #listProfilingGroups(software.amazon.awssdk.services.codeguruprofiler.model.ListProfilingGroupsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListProfilingGroupsRequest.Builder} avoiding the * need to create one manually via {@link ListProfilingGroupsRequest#builder()} *

* * @param listProfilingGroupsRequest * A {@link Consumer} that will call methods on {@link ListProfilingGroupsRequest.Builder} to create a * request. The structure representing the listProfilingGroupsRequest. * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListProfilingGroups * @see AWS API Documentation */ default ListProfilingGroupsPublisher listProfilingGroupsPaginator( Consumer listProfilingGroupsRequest) { return listProfilingGroupsPaginator(ListProfilingGroupsRequest.builder().applyMutation(listProfilingGroupsRequest) .build()); } /** *

* Returns a list of the tags that are assigned to a specified resource. *

* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListTagsForResource * @see AWS API Documentation */ default CompletableFuture listTagsForResource( ListTagsForResourceRequest listTagsForResourceRequest) { throw new UnsupportedOperationException(); } /** *

* Returns a list of the tags that are assigned to a specified resource. *

*
*

* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the * need to create one manually via {@link ListTagsForResourceRequest#builder()} *

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a * request. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.ListTagsForResource * @see AWS API Documentation */ default CompletableFuture listTagsForResource( Consumer listTagsForResourceRequest) { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is * created with this profiling data, use GetProfile * . *

* * @param postAgentProfileRequest * The structure representing the postAgentProfileRequest. * @return A Java Future containing the result of the PostAgentProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.PostAgentProfile * @see AWS API Documentation */ default CompletableFuture postAgentProfile(PostAgentProfileRequest postAgentProfileRequest) { throw new UnsupportedOperationException(); } /** *

* Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is * created with this profiling data, use GetProfile * . *

*
*

* This is a convenience which creates an instance of the {@link PostAgentProfileRequest.Builder} avoiding the need * to create one manually via {@link PostAgentProfileRequest#builder()} *

* * @param postAgentProfileRequest * A {@link Consumer} that will call methods on {@link PostAgentProfileRequest.Builder} to create a request. * The structure representing the postAgentProfileRequest. * @return A Java Future containing the result of the PostAgentProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.PostAgentProfile * @see AWS API Documentation */ default CompletableFuture postAgentProfile( Consumer postAgentProfileRequest) { return postAgentProfile(PostAgentProfileRequest.builder().applyMutation(postAgentProfileRequest).build()); } /** *

* Adds permissions to a profiling group's resource-based policy that are provided using an action group. If a * profiling group doesn't have a resource-based policy, one is created for it using the permissions in the action * group and the roles and users in the principals parameter. *

* *
     *  <p> The one supported action group that can be added is <code>agentPermission</code> which grants <code>ConfigureAgent</code> and <code>PostAgent</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html">Resource-based policies in CodeGuru Profiler</a> in the <i>Amazon CodeGuru Profiler User Guide</i>, <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html"> <code>ConfigureAgent</code> </a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html"> <code>PostAgentProfile</code> </a>. </p> <p> The first time you call <code>PutPermission</code> on a profiling group, do not specify a <code>revisionId</code> because it doesn't have a resource-based policy. Subsequent calls must provide a <code>revisionId</code> to specify which revision of the resource-based policy to add the permissions to. </p> <p> The response contains the profiling group's JSON-formatted resource policy. </p> 
     * 
* * @param putPermissionRequest * The structure representing the putPermissionRequest. * @return A Java Future containing the result of the PutPermission operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.PutPermission * @see AWS API Documentation */ default CompletableFuture putPermission(PutPermissionRequest putPermissionRequest) { throw new UnsupportedOperationException(); } /** *

* Adds permissions to a profiling group's resource-based policy that are provided using an action group. If a * profiling group doesn't have a resource-based policy, one is created for it using the permissions in the action * group and the roles and users in the principals parameter. *

* *
     *  <p> The one supported action group that can be added is <code>agentPermission</code> which grants <code>ConfigureAgent</code> and <code>PostAgent</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html">Resource-based policies in CodeGuru Profiler</a> in the <i>Amazon CodeGuru Profiler User Guide</i>, <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html"> <code>ConfigureAgent</code> </a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html"> <code>PostAgentProfile</code> </a>. </p> <p> The first time you call <code>PutPermission</code> on a profiling group, do not specify a <code>revisionId</code> because it doesn't have a resource-based policy. Subsequent calls must provide a <code>revisionId</code> to specify which revision of the resource-based policy to add the permissions to. </p> <p> The response contains the profiling group's JSON-formatted resource policy. </p> 
     * 
* *
*

* This is a convenience which creates an instance of the {@link PutPermissionRequest.Builder} avoiding the need to * create one manually via {@link PutPermissionRequest#builder()} *

* * @param putPermissionRequest * A {@link Consumer} that will call methods on {@link PutPermissionRequest.Builder} to create a request. The * structure representing the putPermissionRequest. * @return A Java Future containing the result of the PutPermission operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.PutPermission * @see AWS API Documentation */ default CompletableFuture putPermission(Consumer putPermissionRequest) { return putPermission(PutPermissionRequest.builder().applyMutation(putPermissionRequest).build()); } /** *

* Remove one anomaly notifications channel for a profiling group. *

* * @param removeNotificationChannelRequest * The structure representing the RemoveNotificationChannelRequest. * @return A Java Future containing the result of the RemoveNotificationChannel operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.RemoveNotificationChannel * @see AWS API Documentation */ default CompletableFuture removeNotificationChannel( RemoveNotificationChannelRequest removeNotificationChannelRequest) { throw new UnsupportedOperationException(); } /** *

* Remove one anomaly notifications channel for a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link RemoveNotificationChannelRequest.Builder} avoiding * the need to create one manually via {@link RemoveNotificationChannelRequest#builder()} *

* * @param removeNotificationChannelRequest * A {@link Consumer} that will call methods on {@link RemoveNotificationChannelRequest.Builder} to create a * request. The structure representing the RemoveNotificationChannelRequest. * @return A Java Future containing the result of the RemoveNotificationChannel operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.RemoveNotificationChannel * @see AWS API Documentation */ default CompletableFuture removeNotificationChannel( Consumer removeNotificationChannelRequest) { return removeNotificationChannel(RemoveNotificationChannelRequest.builder() .applyMutation(removeNotificationChannelRequest).build()); } /** *

* Removes permissions from a profiling group's resource-based policy that are provided using an action group. The * one supported action group that can be removed is agentPermission which grants * ConfigureAgent and PostAgent permissions. For more information, see Resource-based * policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide, * ConfigureAgent , and * PostAgentProfile . *

* * @param removePermissionRequest *
     *  The structure representing the <code>removePermissionRequest</code>.</p> 
     * @return A Java Future containing the result of the RemovePermission operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.RemovePermission * @see AWS API Documentation */ default CompletableFuture removePermission(RemovePermissionRequest removePermissionRequest) { throw new UnsupportedOperationException(); } /** *

* Removes permissions from a profiling group's resource-based policy that are provided using an action group. The * one supported action group that can be removed is agentPermission which grants * ConfigureAgent and PostAgent permissions. For more information, see Resource-based * policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide, * ConfigureAgent , and * PostAgentProfile . *

*
*

* This is a convenience which creates an instance of the {@link RemovePermissionRequest.Builder} avoiding the need * to create one manually via {@link RemovePermissionRequest#builder()} *

* * @param removePermissionRequest * A {@link Consumer} that will call methods on {@link RemovePermissionRequest.Builder} to create a request. * *
     *  The structure representing the <code>removePermissionRequest</code>.</p> 
     * @return A Java Future containing the result of the RemovePermission operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.RemovePermission * @see AWS API Documentation */ default CompletableFuture removePermission( Consumer removePermissionRequest) { return removePermission(RemovePermissionRequest.builder().applyMutation(removePermissionRequest).build()); } /** *

* Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not. *

* * @param submitFeedbackRequest * The structure representing the SubmitFeedbackRequest. * @return A Java Future containing the result of the SubmitFeedback operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.SubmitFeedback * @see AWS API Documentation */ default CompletableFuture submitFeedback(SubmitFeedbackRequest submitFeedbackRequest) { throw new UnsupportedOperationException(); } /** *

* Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not. *

*
*

* This is a convenience which creates an instance of the {@link SubmitFeedbackRequest.Builder} avoiding the need to * create one manually via {@link SubmitFeedbackRequest#builder()} *

* * @param submitFeedbackRequest * A {@link Consumer} that will call methods on {@link SubmitFeedbackRequest.Builder} to create a request. * The structure representing the SubmitFeedbackRequest. * @return A Java Future containing the result of the SubmitFeedback operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.SubmitFeedback * @see AWS API Documentation */ default CompletableFuture submitFeedback(Consumer submitFeedbackRequest) { return submitFeedback(SubmitFeedbackRequest.builder().applyMutation(submitFeedbackRequest).build()); } /** *

* Use to assign one or more tags to a resource. *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.TagResource * @see AWS * API Documentation */ default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) { throw new UnsupportedOperationException(); } /** *

* Use to assign one or more tags to a resource. *

*
*

* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to * create one manually via {@link TagResourceRequest#builder()} *

* * @param tagResourceRequest * A {@link Consumer} that will call methods on {@link TagResourceRequest.Builder} to create a request. * @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.TagResource * @see AWS * API Documentation */ default CompletableFuture tagResource(Consumer tagResourceRequest) { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Use to remove one or more tags from a resource. *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.UntagResource * @see AWS API Documentation */ default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) { throw new UnsupportedOperationException(); } /** *

* Use to remove one or more tags from a resource. *

*
*

* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to * create one manually via {@link UntagResourceRequest#builder()} *

* * @param untagResourceRequest * A {@link Consumer} that will call methods on {@link UntagResourceRequest.Builder} to create a request. * @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.UntagResource * @see AWS API Documentation */ default CompletableFuture untagResource(Consumer untagResourceRequest) { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* Updates a profiling group. *

* * @param updateProfilingGroupRequest * The structure representing the updateProfilingGroupRequest. * @return A Java Future containing the result of the UpdateProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.UpdateProfilingGroup * @see AWS API Documentation */ default CompletableFuture updateProfilingGroup( UpdateProfilingGroupRequest updateProfilingGroupRequest) { throw new UnsupportedOperationException(); } /** *

* Updates a profiling group. *

*
*

* This is a convenience which creates an instance of the {@link UpdateProfilingGroupRequest.Builder} avoiding the * need to create one manually via {@link UpdateProfilingGroupRequest#builder()} *

* * @param updateProfilingGroupRequest * A {@link Consumer} that will call methods on {@link UpdateProfilingGroupRequest.Builder} to create a * request. The structure representing the updateProfilingGroupRequest. * @return A Java Future containing the result of the UpdateProfilingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServerException The server encountered an internal error and is unable to complete the * request.
  • *
  • ConflictException The requested operation would cause a conflict with the current state of a service * resource associated with the request. Resolve the conflict before retrying this request.
  • *
  • ValidationException The parameter is not valid.
  • *
  • ThrottlingException The request was denied due to request throttling.
  • *
  • ResourceNotFoundException The resource specified in the request does not exist.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • CodeGuruProfilerException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample CodeGuruProfilerAsyncClient.UpdateProfilingGroup * @see AWS API Documentation */ default CompletableFuture updateProfilingGroup( Consumer updateProfilingGroupRequest) { return updateProfilingGroup(UpdateProfilingGroupRequest.builder().applyMutation(updateProfilingGroupRequest).build()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy