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

software.amazon.awssdk.services.m2.M2Client Maven / Gradle / Ivy

Go to download

The AWS Java SDK for M2 module holds the client classes that are used for communicating with M2.

There is a newer version: 2.31.2
Show newest version
/*
 * 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.m2;

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.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.m2.model.AccessDeniedException;
import software.amazon.awssdk.services.m2.model.CancelBatchJobExecutionRequest;
import software.amazon.awssdk.services.m2.model.CancelBatchJobExecutionResponse;
import software.amazon.awssdk.services.m2.model.ConflictException;
import software.amazon.awssdk.services.m2.model.CreateApplicationRequest;
import software.amazon.awssdk.services.m2.model.CreateApplicationResponse;
import software.amazon.awssdk.services.m2.model.CreateDataSetImportTaskRequest;
import software.amazon.awssdk.services.m2.model.CreateDataSetImportTaskResponse;
import software.amazon.awssdk.services.m2.model.CreateDeploymentRequest;
import software.amazon.awssdk.services.m2.model.CreateDeploymentResponse;
import software.amazon.awssdk.services.m2.model.CreateEnvironmentRequest;
import software.amazon.awssdk.services.m2.model.CreateEnvironmentResponse;
import software.amazon.awssdk.services.m2.model.DeleteApplicationFromEnvironmentRequest;
import software.amazon.awssdk.services.m2.model.DeleteApplicationFromEnvironmentResponse;
import software.amazon.awssdk.services.m2.model.DeleteApplicationRequest;
import software.amazon.awssdk.services.m2.model.DeleteApplicationResponse;
import software.amazon.awssdk.services.m2.model.DeleteEnvironmentRequest;
import software.amazon.awssdk.services.m2.model.DeleteEnvironmentResponse;
import software.amazon.awssdk.services.m2.model.ExecutionTimeoutException;
import software.amazon.awssdk.services.m2.model.GetApplicationRequest;
import software.amazon.awssdk.services.m2.model.GetApplicationResponse;
import software.amazon.awssdk.services.m2.model.GetApplicationVersionRequest;
import software.amazon.awssdk.services.m2.model.GetApplicationVersionResponse;
import software.amazon.awssdk.services.m2.model.GetBatchJobExecutionRequest;
import software.amazon.awssdk.services.m2.model.GetBatchJobExecutionResponse;
import software.amazon.awssdk.services.m2.model.GetDataSetDetailsRequest;
import software.amazon.awssdk.services.m2.model.GetDataSetDetailsResponse;
import software.amazon.awssdk.services.m2.model.GetDataSetImportTaskRequest;
import software.amazon.awssdk.services.m2.model.GetDataSetImportTaskResponse;
import software.amazon.awssdk.services.m2.model.GetDeploymentRequest;
import software.amazon.awssdk.services.m2.model.GetDeploymentResponse;
import software.amazon.awssdk.services.m2.model.GetEnvironmentRequest;
import software.amazon.awssdk.services.m2.model.GetEnvironmentResponse;
import software.amazon.awssdk.services.m2.model.GetSignedBluinsightsUrlRequest;
import software.amazon.awssdk.services.m2.model.GetSignedBluinsightsUrlResponse;
import software.amazon.awssdk.services.m2.model.InternalServerException;
import software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest;
import software.amazon.awssdk.services.m2.model.ListApplicationVersionsResponse;
import software.amazon.awssdk.services.m2.model.ListApplicationsRequest;
import software.amazon.awssdk.services.m2.model.ListApplicationsResponse;
import software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest;
import software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsResponse;
import software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest;
import software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsResponse;
import software.amazon.awssdk.services.m2.model.ListBatchJobRestartPointsRequest;
import software.amazon.awssdk.services.m2.model.ListBatchJobRestartPointsResponse;
import software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest;
import software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryResponse;
import software.amazon.awssdk.services.m2.model.ListDataSetsRequest;
import software.amazon.awssdk.services.m2.model.ListDataSetsResponse;
import software.amazon.awssdk.services.m2.model.ListDeploymentsRequest;
import software.amazon.awssdk.services.m2.model.ListDeploymentsResponse;
import software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest;
import software.amazon.awssdk.services.m2.model.ListEngineVersionsResponse;
import software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest;
import software.amazon.awssdk.services.m2.model.ListEnvironmentsResponse;
import software.amazon.awssdk.services.m2.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.m2.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.m2.model.M2Exception;
import software.amazon.awssdk.services.m2.model.ResourceNotFoundException;
import software.amazon.awssdk.services.m2.model.ServiceQuotaExceededException;
import software.amazon.awssdk.services.m2.model.ServiceUnavailableException;
import software.amazon.awssdk.services.m2.model.StartApplicationRequest;
import software.amazon.awssdk.services.m2.model.StartApplicationResponse;
import software.amazon.awssdk.services.m2.model.StartBatchJobRequest;
import software.amazon.awssdk.services.m2.model.StartBatchJobResponse;
import software.amazon.awssdk.services.m2.model.StopApplicationRequest;
import software.amazon.awssdk.services.m2.model.StopApplicationResponse;
import software.amazon.awssdk.services.m2.model.TagResourceRequest;
import software.amazon.awssdk.services.m2.model.TagResourceResponse;
import software.amazon.awssdk.services.m2.model.ThrottlingException;
import software.amazon.awssdk.services.m2.model.UntagResourceRequest;
import software.amazon.awssdk.services.m2.model.UntagResourceResponse;
import software.amazon.awssdk.services.m2.model.UpdateApplicationRequest;
import software.amazon.awssdk.services.m2.model.UpdateApplicationResponse;
import software.amazon.awssdk.services.m2.model.UpdateEnvironmentRequest;
import software.amazon.awssdk.services.m2.model.UpdateEnvironmentResponse;
import software.amazon.awssdk.services.m2.model.ValidationException;
import software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable;
import software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable;
import software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable;
import software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable;
import software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable;
import software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable;
import software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable;
import software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable;
import software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable;

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

* Amazon Web Services Mainframe Modernization provides tools and resources to help you plan and implement migration and * modernization from mainframes to Amazon Web Services managed runtime environments. It provides tools for analyzing * existing mainframe applications, developing or updating mainframe applications using COBOL or PL/I, and implementing * an automated pipeline for continuous integration and continuous delivery (CI/CD) of the applications. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface M2Client extends AwsClient { String SERVICE_NAME = "m2"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "m2"; /** *

* Cancels the running of a specific batch job execution. *

* * @param cancelBatchJobExecutionRequest * @return Result of the CancelBatchJobExecution operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CancelBatchJobExecution * @see AWS * API Documentation */ default CancelBatchJobExecutionResponse cancelBatchJobExecution(CancelBatchJobExecutionRequest cancelBatchJobExecutionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Cancels the running of a specific batch job execution. *

*
*

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

* * @param cancelBatchJobExecutionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.CancelBatchJobExecutionRequest.Builder} to create a * request. * @return Result of the CancelBatchJobExecution operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CancelBatchJobExecution * @see AWS * API Documentation */ default CancelBatchJobExecutionResponse cancelBatchJobExecution( Consumer cancelBatchJobExecutionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return cancelBatchJobExecution(CancelBatchJobExecutionRequest.builder().applyMutation(cancelBatchJobExecutionRequest) .build()); } /** *

* Creates a new application with given parameters. Requires an existing runtime environment and application * definition file. *

* * @param createApplicationRequest * @return Result of the CreateApplication operation returned by the service. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateApplication * @see AWS API * Documentation */ default CreateApplicationResponse createApplication(CreateApplicationRequest createApplicationRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Creates a new application with given parameters. Requires an existing runtime environment and application * definition file. *

*
*

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

* * @param createApplicationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.CreateApplicationRequest.Builder} to create a request. * @return Result of the CreateApplication operation returned by the service. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateApplication * @see AWS API * Documentation */ default CreateApplicationResponse createApplication(Consumer createApplicationRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return createApplication(CreateApplicationRequest.builder().applyMutation(createApplicationRequest).build()); } /** *

* Starts a data set import task for a specific application. *

* * @param createDataSetImportTaskRequest * @return Result of the CreateDataSetImportTask operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateDataSetImportTask * @see AWS * API Documentation */ default CreateDataSetImportTaskResponse createDataSetImportTask(CreateDataSetImportTaskRequest createDataSetImportTaskRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Starts a data set import task for a specific application. *

*
*

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

* * @param createDataSetImportTaskRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.CreateDataSetImportTaskRequest.Builder} to create a * request. * @return Result of the CreateDataSetImportTask operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateDataSetImportTask * @see AWS * API Documentation */ default CreateDataSetImportTaskResponse createDataSetImportTask( Consumer createDataSetImportTaskRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return createDataSetImportTask(CreateDataSetImportTaskRequest.builder().applyMutation(createDataSetImportTaskRequest) .build()); } /** *

* Creates and starts a deployment to deploy an application into a runtime environment. *

* * @param createDeploymentRequest * @return Result of the CreateDeployment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateDeployment * @see AWS API * Documentation */ default CreateDeploymentResponse createDeployment(CreateDeploymentRequest createDeploymentRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Creates and starts a deployment to deploy an application into a runtime environment. *

*
*

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

* * @param createDeploymentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.CreateDeploymentRequest.Builder} to create a request. * @return Result of the CreateDeployment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateDeployment * @see AWS API * Documentation */ default CreateDeploymentResponse createDeployment(Consumer createDeploymentRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return createDeployment(CreateDeploymentRequest.builder().applyMutation(createDeploymentRequest).build()); } /** *

* Creates a runtime environment for a given runtime engine. *

* * @param createEnvironmentRequest * @return Result of the CreateEnvironment operation returned by the service. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateEnvironment * @see AWS API * Documentation */ default CreateEnvironmentResponse createEnvironment(CreateEnvironmentRequest createEnvironmentRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Creates a runtime environment for a given runtime engine. *

*
*

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

* * @param createEnvironmentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.CreateEnvironmentRequest.Builder} to create a request. * @return Result of the CreateEnvironment operation returned by the service. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.CreateEnvironment * @see AWS API * Documentation */ default CreateEnvironmentResponse createEnvironment(Consumer createEnvironmentRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return createEnvironment(CreateEnvironmentRequest.builder().applyMutation(createEnvironmentRequest).build()); } /** *

* Deletes a specific application. You cannot delete a running application. *

* * @param deleteApplicationRequest * @return Result of the DeleteApplication operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.DeleteApplication * @see AWS API * Documentation */ default DeleteApplicationResponse deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Deletes a specific application. You cannot delete a running application. *

*
*

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

* * @param deleteApplicationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.DeleteApplicationRequest.Builder} to create a request. * @return Result of the DeleteApplication operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.DeleteApplication * @see AWS API * Documentation */ default DeleteApplicationResponse deleteApplication(Consumer deleteApplicationRequest) throws ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return deleteApplication(DeleteApplicationRequest.builder().applyMutation(deleteApplicationRequest).build()); } /** *

* Deletes a specific application from the specific runtime environment where it was previously deployed. You cannot * delete a runtime environment using DeleteEnvironment if any application has ever been deployed to it. This API * removes the association of the application with the runtime environment so you can delete the environment * smoothly. *

* * @param deleteApplicationFromEnvironmentRequest * @return Result of the DeleteApplicationFromEnvironment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.DeleteApplicationFromEnvironment * @see AWS API Documentation */ default DeleteApplicationFromEnvironmentResponse deleteApplicationFromEnvironment( DeleteApplicationFromEnvironmentRequest deleteApplicationFromEnvironmentRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Deletes a specific application from the specific runtime environment where it was previously deployed. You cannot * delete a runtime environment using DeleteEnvironment if any application has ever been deployed to it. This API * removes the association of the application with the runtime environment so you can delete the environment * smoothly. *

*
*

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

* * @param deleteApplicationFromEnvironmentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.DeleteApplicationFromEnvironmentRequest.Builder} to create * a request. * @return Result of the DeleteApplicationFromEnvironment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.DeleteApplicationFromEnvironment * @see AWS API Documentation */ default DeleteApplicationFromEnvironmentResponse deleteApplicationFromEnvironment( Consumer deleteApplicationFromEnvironmentRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return deleteApplicationFromEnvironment(DeleteApplicationFromEnvironmentRequest.builder() .applyMutation(deleteApplicationFromEnvironmentRequest).build()); } /** *

* Deletes a specific runtime environment. The environment cannot contain deployed applications. If it does, you * must delete those applications before you delete the environment. *

* * @param deleteEnvironmentRequest * @return Result of the DeleteEnvironment operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.DeleteEnvironment * @see AWS API * Documentation */ default DeleteEnvironmentResponse deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) throws ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Deletes a specific runtime environment. The environment cannot contain deployed applications. If it does, you * must delete those applications before you delete the environment. *

*
*

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

* * @param deleteEnvironmentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.DeleteEnvironmentRequest.Builder} to create a request. * @return Result of the DeleteEnvironment operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.DeleteEnvironment * @see AWS API * Documentation */ default DeleteEnvironmentResponse deleteEnvironment(Consumer deleteEnvironmentRequest) throws ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return deleteEnvironment(DeleteEnvironmentRequest.builder().applyMutation(deleteEnvironmentRequest).build()); } /** *

* Describes the details of a specific application. *

* * @param getApplicationRequest * @return Result of the GetApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetApplication * @see AWS API * Documentation */ default GetApplicationResponse getApplication(GetApplicationRequest getApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Describes the details of a specific application. *

*
*

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

* * @param getApplicationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetApplicationRequest.Builder} to create a request. * @return Result of the GetApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetApplication * @see AWS API * Documentation */ default GetApplicationResponse getApplication(Consumer getApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getApplication(GetApplicationRequest.builder().applyMutation(getApplicationRequest).build()); } /** *

* Returns details about a specific version of a specific application. *

* * @param getApplicationVersionRequest * @return Result of the GetApplicationVersion operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetApplicationVersion * @see AWS API * Documentation */ default GetApplicationVersionResponse getApplicationVersion(GetApplicationVersionRequest getApplicationVersionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Returns details about a specific version of a specific application. *

*
*

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

* * @param getApplicationVersionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetApplicationVersionRequest.Builder} to create a request. * @return Result of the GetApplicationVersion operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetApplicationVersion * @see AWS API * Documentation */ default GetApplicationVersionResponse getApplicationVersion( Consumer getApplicationVersionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getApplicationVersion(GetApplicationVersionRequest.builder().applyMutation(getApplicationVersionRequest).build()); } /** *

* Gets the details of a specific batch job execution for a specific application. *

* * @param getBatchJobExecutionRequest * @return Result of the GetBatchJobExecution operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetBatchJobExecution * @see AWS API * Documentation */ default GetBatchJobExecutionResponse getBatchJobExecution(GetBatchJobExecutionRequest getBatchJobExecutionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Gets the details of a specific batch job execution for a specific application. *

*
*

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

* * @param getBatchJobExecutionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetBatchJobExecutionRequest.Builder} to create a request. * @return Result of the GetBatchJobExecution operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetBatchJobExecution * @see AWS API * Documentation */ default GetBatchJobExecutionResponse getBatchJobExecution( Consumer getBatchJobExecutionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getBatchJobExecution(GetBatchJobExecutionRequest.builder().applyMutation(getBatchJobExecutionRequest).build()); } /** *

* Gets the details of a specific data set. *

* * @param getDataSetDetailsRequest * @return Result of the GetDataSetDetails operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ExecutionTimeoutException * Failed to connect to server, or didn’t receive response within expected time period. * @throws ServiceUnavailableException * Server cannot process the request at the moment. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetDataSetDetails * @see AWS API * Documentation */ default GetDataSetDetailsResponse getDataSetDetails(GetDataSetDetailsRequest getDataSetDetailsRequest) throws ResourceNotFoundException, ExecutionTimeoutException, ServiceUnavailableException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Gets the details of a specific data set. *

*
*

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

* * @param getDataSetDetailsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetDataSetDetailsRequest.Builder} to create a request. * @return Result of the GetDataSetDetails operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ExecutionTimeoutException * Failed to connect to server, or didn’t receive response within expected time period. * @throws ServiceUnavailableException * Server cannot process the request at the moment. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetDataSetDetails * @see AWS API * Documentation */ default GetDataSetDetailsResponse getDataSetDetails(Consumer getDataSetDetailsRequest) throws ResourceNotFoundException, ExecutionTimeoutException, ServiceUnavailableException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getDataSetDetails(GetDataSetDetailsRequest.builder().applyMutation(getDataSetDetailsRequest).build()); } /** *

* Gets the status of a data set import task initiated with the CreateDataSetImportTask operation. *

* * @param getDataSetImportTaskRequest * @return Result of the GetDataSetImportTask operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetDataSetImportTask * @see AWS API * Documentation */ default GetDataSetImportTaskResponse getDataSetImportTask(GetDataSetImportTaskRequest getDataSetImportTaskRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Gets the status of a data set import task initiated with the CreateDataSetImportTask operation. *

*
*

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

* * @param getDataSetImportTaskRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetDataSetImportTaskRequest.Builder} to create a request. * @return Result of the GetDataSetImportTask operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetDataSetImportTask * @see AWS API * Documentation */ default GetDataSetImportTaskResponse getDataSetImportTask( Consumer getDataSetImportTaskRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getDataSetImportTask(GetDataSetImportTaskRequest.builder().applyMutation(getDataSetImportTaskRequest).build()); } /** *

* Gets details of a specific deployment with a given deployment identifier. *

* * @param getDeploymentRequest * @return Result of the GetDeployment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetDeployment * @see AWS API * Documentation */ default GetDeploymentResponse getDeployment(GetDeploymentRequest getDeploymentRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Gets details of a specific deployment with a given deployment identifier. *

*
*

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

* * @param getDeploymentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetDeploymentRequest.Builder} to create a request. * @return Result of the GetDeployment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetDeployment * @see AWS API * Documentation */ default GetDeploymentResponse getDeployment(Consumer getDeploymentRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getDeployment(GetDeploymentRequest.builder().applyMutation(getDeploymentRequest).build()); } /** *

* Describes a specific runtime environment. *

* * @param getEnvironmentRequest * @return Result of the GetEnvironment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetEnvironment * @see AWS API * Documentation */ default GetEnvironmentResponse getEnvironment(GetEnvironmentRequest getEnvironmentRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Describes a specific runtime environment. *

*
*

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

* * @param getEnvironmentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetEnvironmentRequest.Builder} to create a request. * @return Result of the GetEnvironment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetEnvironment * @see AWS API * Documentation */ default GetEnvironmentResponse getEnvironment(Consumer getEnvironmentRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getEnvironment(GetEnvironmentRequest.builder().applyMutation(getEnvironmentRequest).build()); } /** *

* Gets a single sign-on URL that can be used to connect to AWS Blu Insights. *

* * @param getSignedBluinsightsUrlRequest * @return Result of the GetSignedBluinsightsUrl operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetSignedBluinsightsUrl * @see AWS * API Documentation */ default GetSignedBluinsightsUrlResponse getSignedBluinsightsUrl(GetSignedBluinsightsUrlRequest getSignedBluinsightsUrlRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Gets a single sign-on URL that can be used to connect to AWS Blu Insights. *

*
*

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

* * @param getSignedBluinsightsUrlRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.GetSignedBluinsightsUrlRequest.Builder} to create a * request. * @return Result of the GetSignedBluinsightsUrl operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.GetSignedBluinsightsUrl * @see AWS * API Documentation */ default GetSignedBluinsightsUrlResponse getSignedBluinsightsUrl( Consumer getSignedBluinsightsUrlRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return getSignedBluinsightsUrl(GetSignedBluinsightsUrlRequest.builder().applyMutation(getSignedBluinsightsUrlRequest) .build()); } /** *

* Returns a list of the application versions for a specific application. *

* * @param listApplicationVersionsRequest * @return Result of the ListApplicationVersions operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplicationVersions * @see AWS * API Documentation */ default ListApplicationVersionsResponse listApplicationVersions(ListApplicationVersionsRequest listApplicationVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Returns a list of the application versions for a specific application. *

*
*

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

* * @param listApplicationVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest.Builder} to create a * request. * @return Result of the ListApplicationVersions operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplicationVersions * @see AWS * API Documentation */ default ListApplicationVersionsResponse listApplicationVersions( Consumer listApplicationVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listApplicationVersions(ListApplicationVersionsRequest.builder().applyMutation(listApplicationVersionsRequest) .build()); } /** *

* This is a variant of * {@link #listApplicationVersions(software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable responses = client
     *             .listApplicationVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListApplicationVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listApplicationVersions(software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest)} * operation. *

* * @param listApplicationVersionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplicationVersions * @see AWS * API Documentation */ default ListApplicationVersionsIterable listApplicationVersionsPaginator( ListApplicationVersionsRequest listApplicationVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListApplicationVersionsIterable(this, listApplicationVersionsRequest); } /** *

* This is a variant of * {@link #listApplicationVersions(software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable responses = client
     *             .listApplicationVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListApplicationVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listApplicationVersions(software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest)} * operation. *

*
*

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

* * @param listApplicationVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListApplicationVersionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplicationVersions * @see AWS * API Documentation */ default ListApplicationVersionsIterable listApplicationVersionsPaginator( Consumer listApplicationVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listApplicationVersionsPaginator(ListApplicationVersionsRequest.builder() .applyMutation(listApplicationVersionsRequest).build()); } /** *

* Lists the applications associated with a specific Amazon Web Services account. You can provide the unique * identifier of a specific runtime environment in a query parameter to see all applications associated with that * environment. *

* * @param listApplicationsRequest * @return Result of the ListApplications operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplications * @see AWS API * Documentation */ default ListApplicationsResponse listApplications(ListApplicationsRequest listApplicationsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists the applications associated with a specific Amazon Web Services account. You can provide the unique * identifier of a specific runtime environment in a query parameter to see all applications associated with that * environment. *

*
*

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

* * @param listApplicationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListApplicationsRequest.Builder} to create a request. * @return Result of the ListApplications operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplications * @see AWS API * Documentation */ default ListApplicationsResponse listApplications(Consumer listApplicationsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listApplications(ListApplicationsRequest.builder().applyMutation(listApplicationsRequest).build()); } /** *

* This is a variant of {@link #listApplications(software.amazon.awssdk.services.m2.model.ListApplicationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListApplicationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listApplications(software.amazon.awssdk.services.m2.model.ListApplicationsRequest)} operation. *

* * @param listApplicationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplications * @see AWS API * Documentation */ default ListApplicationsIterable listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListApplicationsIterable(this, listApplicationsRequest); } /** *

* This is a variant of {@link #listApplications(software.amazon.awssdk.services.m2.model.ListApplicationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListApplicationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listApplications(software.amazon.awssdk.services.m2.model.ListApplicationsRequest)} operation. *

*
*

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

* * @param listApplicationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListApplicationsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListApplications * @see AWS API * Documentation */ default ListApplicationsIterable listApplicationsPaginator(Consumer listApplicationsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listApplicationsPaginator(ListApplicationsRequest.builder().applyMutation(listApplicationsRequest).build()); } /** *

* Lists all the available batch job definitions based on the batch job resources uploaded during the application * creation. You can use the batch job definitions in the list to start a batch job. *

* * @param listBatchJobDefinitionsRequest * @return Result of the ListBatchJobDefinitions operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobDefinitions * @see AWS * API Documentation */ default ListBatchJobDefinitionsResponse listBatchJobDefinitions(ListBatchJobDefinitionsRequest listBatchJobDefinitionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists all the available batch job definitions based on the batch job resources uploaded during the application * creation. You can use the batch job definitions in the list to start a batch job. *

*
*

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

* * @param listBatchJobDefinitionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest.Builder} to create a * request. * @return Result of the ListBatchJobDefinitions operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobDefinitions * @see AWS * API Documentation */ default ListBatchJobDefinitionsResponse listBatchJobDefinitions( Consumer listBatchJobDefinitionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listBatchJobDefinitions(ListBatchJobDefinitionsRequest.builder().applyMutation(listBatchJobDefinitionsRequest) .build()); } /** *

* This is a variant of * {@link #listBatchJobDefinitions(software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable responses = client.listBatchJobDefinitionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable responses = client
     *             .listBatchJobDefinitionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable responses = client.listBatchJobDefinitionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listBatchJobDefinitions(software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest)} * operation. *

* * @param listBatchJobDefinitionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobDefinitions * @see AWS * API Documentation */ default ListBatchJobDefinitionsIterable listBatchJobDefinitionsPaginator( ListBatchJobDefinitionsRequest listBatchJobDefinitionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListBatchJobDefinitionsIterable(this, listBatchJobDefinitionsRequest); } /** *

* This is a variant of * {@link #listBatchJobDefinitions(software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable responses = client.listBatchJobDefinitionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable responses = client
     *             .listBatchJobDefinitionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobDefinitionsIterable responses = client.listBatchJobDefinitionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listBatchJobDefinitions(software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest)} * operation. *

*
*

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

* * @param listBatchJobDefinitionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListBatchJobDefinitionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobDefinitions * @see AWS * API Documentation */ default ListBatchJobDefinitionsIterable listBatchJobDefinitionsPaginator( Consumer listBatchJobDefinitionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listBatchJobDefinitionsPaginator(ListBatchJobDefinitionsRequest.builder() .applyMutation(listBatchJobDefinitionsRequest).build()); } /** *

* Lists historical, current, and scheduled batch job executions for a specific application. *

* * @param listBatchJobExecutionsRequest * @return Result of the ListBatchJobExecutions operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobExecutions * @see AWS API * Documentation */ default ListBatchJobExecutionsResponse listBatchJobExecutions(ListBatchJobExecutionsRequest listBatchJobExecutionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists historical, current, and scheduled batch job executions for a specific application. *

*
*

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

* * @param listBatchJobExecutionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest.Builder} to create a * request. * @return Result of the ListBatchJobExecutions operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobExecutions * @see AWS API * Documentation */ default ListBatchJobExecutionsResponse listBatchJobExecutions( Consumer listBatchJobExecutionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listBatchJobExecutions(ListBatchJobExecutionsRequest.builder().applyMutation(listBatchJobExecutionsRequest) .build()); } /** *

* This is a variant of * {@link #listBatchJobExecutions(software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable responses = client.listBatchJobExecutionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable responses = client
     *             .listBatchJobExecutionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable responses = client.listBatchJobExecutionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listBatchJobExecutions(software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest)} * operation. *

* * @param listBatchJobExecutionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobExecutions * @see AWS API * Documentation */ default ListBatchJobExecutionsIterable listBatchJobExecutionsPaginator( ListBatchJobExecutionsRequest listBatchJobExecutionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListBatchJobExecutionsIterable(this, listBatchJobExecutionsRequest); } /** *

* This is a variant of * {@link #listBatchJobExecutions(software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable responses = client.listBatchJobExecutionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable responses = client
     *             .listBatchJobExecutionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListBatchJobExecutionsIterable responses = client.listBatchJobExecutionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listBatchJobExecutions(software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest)} * operation. *

*
*

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

* * @param listBatchJobExecutionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListBatchJobExecutionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobExecutions * @see AWS API * Documentation */ default ListBatchJobExecutionsIterable listBatchJobExecutionsPaginator( Consumer listBatchJobExecutionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listBatchJobExecutionsPaginator(ListBatchJobExecutionsRequest.builder() .applyMutation(listBatchJobExecutionsRequest).build()); } /** *

* Lists all the job steps for JCL files to restart a batch job. This is only applicable for Micro Focus engine with * versions 8.0.6 and above. *

* * @param listBatchJobRestartPointsRequest * @return Result of the ListBatchJobRestartPoints operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobRestartPoints * @see AWS * API Documentation */ default ListBatchJobRestartPointsResponse listBatchJobRestartPoints( ListBatchJobRestartPointsRequest listBatchJobRestartPointsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists all the job steps for JCL files to restart a batch job. This is only applicable for Micro Focus engine with * versions 8.0.6 and above. *

*
*

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

* * @param listBatchJobRestartPointsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListBatchJobRestartPointsRequest.Builder} to create a * request. * @return Result of the ListBatchJobRestartPoints operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListBatchJobRestartPoints * @see AWS * API Documentation */ default ListBatchJobRestartPointsResponse listBatchJobRestartPoints( Consumer listBatchJobRestartPointsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listBatchJobRestartPoints(ListBatchJobRestartPointsRequest.builder() .applyMutation(listBatchJobRestartPointsRequest).build()); } /** *

* Lists the data set imports for the specified application. *

* * @param listDataSetImportHistoryRequest * @return Result of the ListDataSetImportHistory operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSetImportHistory * @see AWS * API Documentation */ default ListDataSetImportHistoryResponse listDataSetImportHistory( ListDataSetImportHistoryRequest listDataSetImportHistoryRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists the data set imports for the specified application. *

*
*

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

* * @param listDataSetImportHistoryRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest.Builder} to create a * request. * @return Result of the ListDataSetImportHistory operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSetImportHistory * @see AWS * API Documentation */ default ListDataSetImportHistoryResponse listDataSetImportHistory( Consumer listDataSetImportHistoryRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listDataSetImportHistory(ListDataSetImportHistoryRequest.builder().applyMutation(listDataSetImportHistoryRequest) .build()); } /** *

* This is a variant of * {@link #listDataSetImportHistory(software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable responses = client.listDataSetImportHistoryPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable responses = client
     *             .listDataSetImportHistoryPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable responses = client.listDataSetImportHistoryPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDataSetImportHistory(software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest)} * operation. *

* * @param listDataSetImportHistoryRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSetImportHistory * @see AWS * API Documentation */ default ListDataSetImportHistoryIterable listDataSetImportHistoryPaginator( ListDataSetImportHistoryRequest listDataSetImportHistoryRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListDataSetImportHistoryIterable(this, listDataSetImportHistoryRequest); } /** *

* This is a variant of * {@link #listDataSetImportHistory(software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable responses = client.listDataSetImportHistoryPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable responses = client
     *             .listDataSetImportHistoryPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetImportHistoryIterable responses = client.listDataSetImportHistoryPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDataSetImportHistory(software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest)} * operation. *

*
*

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

* * @param listDataSetImportHistoryRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListDataSetImportHistoryRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSetImportHistory * @see AWS * API Documentation */ default ListDataSetImportHistoryIterable listDataSetImportHistoryPaginator( Consumer listDataSetImportHistoryRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listDataSetImportHistoryPaginator(ListDataSetImportHistoryRequest.builder() .applyMutation(listDataSetImportHistoryRequest).build()); } /** *

* Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data * sets are associated with applications deployed on runtime environments. This is known as importing data sets. * Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask. *

* * @param listDataSetsRequest * @return Result of the ListDataSets operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ExecutionTimeoutException * Failed to connect to server, or didn’t receive response within expected time period. * @throws ServiceUnavailableException * Server cannot process the request at the moment. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSets * @see AWS API * Documentation */ default ListDataSetsResponse listDataSets(ListDataSetsRequest listDataSetsRequest) throws ResourceNotFoundException, ExecutionTimeoutException, ServiceUnavailableException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data * sets are associated with applications deployed on runtime environments. This is known as importing data sets. * Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask. *

*
*

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

* * @param listDataSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListDataSetsRequest.Builder} to create a request. * @return Result of the ListDataSets operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ExecutionTimeoutException * Failed to connect to server, or didn’t receive response within expected time period. * @throws ServiceUnavailableException * Server cannot process the request at the moment. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSets * @see AWS API * Documentation */ default ListDataSetsResponse listDataSets(Consumer listDataSetsRequest) throws ResourceNotFoundException, ExecutionTimeoutException, ServiceUnavailableException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listDataSets(ListDataSetsRequest.builder().applyMutation(listDataSetsRequest).build()); } /** *

* This is a variant of {@link #listDataSets(software.amazon.awssdk.services.m2.model.ListDataSetsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListDataSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDataSets(software.amazon.awssdk.services.m2.model.ListDataSetsRequest)} operation. *

* * @param listDataSetsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ExecutionTimeoutException * Failed to connect to server, or didn’t receive response within expected time period. * @throws ServiceUnavailableException * Server cannot process the request at the moment. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSets * @see AWS API * Documentation */ default ListDataSetsIterable listDataSetsPaginator(ListDataSetsRequest listDataSetsRequest) throws ResourceNotFoundException, ExecutionTimeoutException, ServiceUnavailableException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListDataSetsIterable(this, listDataSetsRequest); } /** *

* This is a variant of {@link #listDataSets(software.amazon.awssdk.services.m2.model.ListDataSetsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListDataSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDataSets(software.amazon.awssdk.services.m2.model.ListDataSetsRequest)} operation. *

*
*

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

* * @param listDataSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListDataSetsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ExecutionTimeoutException * Failed to connect to server, or didn’t receive response within expected time period. * @throws ServiceUnavailableException * Server cannot process the request at the moment. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDataSets * @see AWS API * Documentation */ default ListDataSetsIterable listDataSetsPaginator(Consumer listDataSetsRequest) throws ResourceNotFoundException, ExecutionTimeoutException, ServiceUnavailableException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listDataSetsPaginator(ListDataSetsRequest.builder().applyMutation(listDataSetsRequest).build()); } /** *

* Returns a list of all deployments of a specific application. A deployment is a combination of a specific * application and a specific version of that application. Each deployment is mapped to a particular application * version. *

* * @param listDeploymentsRequest * @return Result of the ListDeployments operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDeployments * @see AWS API * Documentation */ default ListDeploymentsResponse listDeployments(ListDeploymentsRequest listDeploymentsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Returns a list of all deployments of a specific application. A deployment is a combination of a specific * application and a specific version of that application. Each deployment is mapped to a particular application * version. *

*
*

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

* * @param listDeploymentsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListDeploymentsRequest.Builder} to create a request. * @return Result of the ListDeployments operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDeployments * @see AWS API * Documentation */ default ListDeploymentsResponse listDeployments(Consumer listDeploymentsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listDeployments(ListDeploymentsRequest.builder().applyMutation(listDeploymentsRequest).build()); } /** *

* This is a variant of {@link #listDeployments(software.amazon.awssdk.services.m2.model.ListDeploymentsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListDeploymentsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDeployments(software.amazon.awssdk.services.m2.model.ListDeploymentsRequest)} operation. *

* * @param listDeploymentsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDeployments * @see AWS API * Documentation */ default ListDeploymentsIterable listDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListDeploymentsIterable(this, listDeploymentsRequest); } /** *

* This is a variant of {@link #listDeployments(software.amazon.awssdk.services.m2.model.ListDeploymentsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListDeploymentsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listDeployments(software.amazon.awssdk.services.m2.model.ListDeploymentsRequest)} operation. *

*
*

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

* * @param listDeploymentsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListDeploymentsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListDeployments * @see AWS API * Documentation */ default ListDeploymentsIterable listDeploymentsPaginator(Consumer listDeploymentsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listDeploymentsPaginator(ListDeploymentsRequest.builder().applyMutation(listDeploymentsRequest).build()); } /** *

* Lists the available engine versions. *

* * @param listEngineVersionsRequest * @return Result of the ListEngineVersions operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEngineVersions * @see AWS API * Documentation */ default ListEngineVersionsResponse listEngineVersions(ListEngineVersionsRequest listEngineVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists the available engine versions. *

*
*

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

* * @param listEngineVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest.Builder} to create a request. * @return Result of the ListEngineVersions operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEngineVersions * @see AWS API * Documentation */ default ListEngineVersionsResponse listEngineVersions(Consumer listEngineVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listEngineVersions(ListEngineVersionsRequest.builder().applyMutation(listEngineVersionsRequest).build()); } /** *

* This is a variant of * {@link #listEngineVersions(software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable responses = client.listEngineVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable responses = client
     *             .listEngineVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListEngineVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable responses = client.listEngineVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEngineVersions(software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest)} operation. *

* * @param listEngineVersionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEngineVersions * @see AWS API * Documentation */ default ListEngineVersionsIterable listEngineVersionsPaginator(ListEngineVersionsRequest listEngineVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListEngineVersionsIterable(this, listEngineVersionsRequest); } /** *

* This is a variant of * {@link #listEngineVersions(software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest)} operation. The * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle * making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable responses = client.listEngineVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable responses = client
     *             .listEngineVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListEngineVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEngineVersionsIterable responses = client.listEngineVersionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEngineVersions(software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest)} operation. *

*
*

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

* * @param listEngineVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListEngineVersionsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEngineVersions * @see AWS API * Documentation */ default ListEngineVersionsIterable listEngineVersionsPaginator( Consumer listEngineVersionsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listEngineVersionsPaginator(ListEngineVersionsRequest.builder().applyMutation(listEngineVersionsRequest).build()); } /** *

* Lists the runtime environments. *

* * @param listEnvironmentsRequest * @return Result of the ListEnvironments operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEnvironments * @see AWS API * Documentation */ default ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists the runtime environments. *

*
*

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

* * @param listEnvironmentsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest.Builder} to create a request. * @return Result of the ListEnvironments operation returned by the service. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEnvironments * @see AWS API * Documentation */ default ListEnvironmentsResponse listEnvironments(Consumer listEnvironmentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listEnvironments(ListEnvironmentsRequest.builder().applyMutation(listEnvironmentsRequest).build()); } /** *

* This is a variant of {@link #listEnvironments(software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListEnvironmentsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEnvironments(software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest)} operation. *

* * @param listEnvironmentsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEnvironments * @see AWS API * Documentation */ default ListEnvironmentsIterable listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return new ListEnvironmentsIterable(this, listEnvironmentsRequest); } /** *

* This is a variant of {@link #listEnvironments(software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
     *     for (software.amazon.awssdk.services.m2.model.ListEnvironmentsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.m2.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEnvironments(software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest)} operation. *

*
*

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

* * @param listEnvironmentsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.ListEnvironmentsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListEnvironments * @see AWS API * Documentation */ default ListEnvironmentsIterable listEnvironmentsPaginator(Consumer listEnvironmentsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listEnvironmentsPaginator(ListEnvironmentsRequest.builder().applyMutation(listEnvironmentsRequest).build()); } /** *

* Lists the tags for the specified resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListTagsForResource * @see AWS API * Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Lists the tags for the 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 software.amazon.awssdk.services.m2.model.ListTagsForResourceRequest.Builder} to create a request. * @return Result of the ListTagsForResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.ListTagsForResource * @see AWS API * Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Starts an application that is currently stopped. *

* * @param startApplicationRequest * @return Result of the StartApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.StartApplication * @see AWS API * Documentation */ default StartApplicationResponse startApplication(StartApplicationRequest startApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Starts an application that is currently stopped. *

*
*

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

* * @param startApplicationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.StartApplicationRequest.Builder} to create a request. * @return Result of the StartApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.StartApplication * @see AWS API * Documentation */ default StartApplicationResponse startApplication(Consumer startApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return startApplication(StartApplicationRequest.builder().applyMutation(startApplicationRequest).build()); } /** *

* Starts a batch job and returns the unique identifier of this execution of the batch job. The associated * application must be running in order to start the batch job. *

* * @param startBatchJobRequest * @return Result of the StartBatchJob operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.StartBatchJob * @see AWS API * Documentation */ default StartBatchJobResponse startBatchJob(StartBatchJobRequest startBatchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Starts a batch job and returns the unique identifier of this execution of the batch job. The associated * application must be running in order to start the batch job. *

*
*

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

* * @param startBatchJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.StartBatchJobRequest.Builder} to create a request. * @return Result of the StartBatchJob operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.StartBatchJob * @see AWS API * Documentation */ default StartBatchJobResponse startBatchJob(Consumer startBatchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return startBatchJob(StartBatchJobRequest.builder().applyMutation(startBatchJobRequest).build()); } /** *

* Stops a running application. *

* * @param stopApplicationRequest * @return Result of the StopApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.StopApplication * @see AWS API * Documentation */ default StopApplicationResponse stopApplication(StopApplicationRequest stopApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Stops a running application. *

*
*

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

* * @param stopApplicationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.StopApplicationRequest.Builder} to create a request. * @return Result of the StopApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.StopApplication * @see AWS API * Documentation */ default StopApplicationResponse stopApplication(Consumer stopApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return stopApplication(StopApplicationRequest.builder().applyMutation(stopApplicationRequest).build()); } /** *

* Adds one or more tags to the specified resource. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Adds one or more tags to the specified 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 software.amazon.awssdk.services.m2.model.TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Removes one or more tags from the specified resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Removes one or more tags from the specified 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 software.amazon.awssdk.services.m2.model.UntagResourceRequest.Builder} to create a request. * @return Result of the UntagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* Updates an application and creates a new version. *

* * @param updateApplicationRequest * @return Result of the UpdateApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.UpdateApplication * @see AWS API * Documentation */ default UpdateApplicationResponse updateApplication(UpdateApplicationRequest updateApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Updates an application and creates a new version. *

*
*

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

* * @param updateApplicationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.UpdateApplicationRequest.Builder} to create a request. * @return Result of the UpdateApplication operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.UpdateApplication * @see AWS API * Documentation */ default UpdateApplicationResponse updateApplication(Consumer updateApplicationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return updateApplication(UpdateApplicationRequest.builder().applyMutation(updateApplicationRequest).build()); } /** *

* Updates the configuration details for a specific runtime environment. *

* * @param updateEnvironmentRequest * @return Result of the UpdateEnvironment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.UpdateEnvironment * @see AWS API * Documentation */ default UpdateEnvironmentResponse updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { throw new UnsupportedOperationException(); } /** *

* Updates the configuration details for a specific runtime environment. *

*
*

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

* * @param updateEnvironmentRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.m2.model.UpdateEnvironmentRequest.Builder} to create a request. * @return Result of the UpdateEnvironment operation returned by the service. * @throws ResourceNotFoundException * The specified resource was not found. * @throws ServiceQuotaExceededException * One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. * @throws ThrottlingException * The number of requests made exceeds the limit. * @throws AccessDeniedException * The account or role doesn't have the right permissions to make the request. * @throws ConflictException * The parameters provided in the request conflict with existing resources. * @throws ValidationException * One or more parameters provided in the request is not valid. * @throws InternalServerException * An unexpected error occurred during the processing of the request. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws M2Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample M2Client.UpdateEnvironment * @see AWS API * Documentation */ default UpdateEnvironmentResponse updateEnvironment(Consumer updateEnvironmentRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, M2Exception { return updateEnvironment(UpdateEnvironmentRequest.builder().applyMutation(updateEnvironmentRequest).build()); } /** * Create a {@link M2Client} 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 M2Client create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link M2Client}. */ static M2ClientBuilder builder() { return new DefaultM2ClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default M2ServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy