/* * Copyright 2018-2023 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 com.amazonaws.services.omics; import org.w3c.dom.*; import java.net.*; import java.util.*; import javax.annotation.Generated; import org.apache.commons.logging.*; import com.amazonaws.*; import com.amazonaws.annotation.SdkInternalApi; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.internal.auth.*; import com.amazonaws.metrics.*; import com.amazonaws.regions.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.protocol.json.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.annotation.ThreadSafe; import com.amazonaws.client.AwsSyncClientParams; import com.amazonaws.client.builder.AdvancedConfig; import com.amazonaws.services.omics.AmazonOmicsClientBuilder; import com.amazonaws.services.omics.waiters.AmazonOmicsWaiters; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.omics.model.*; import com.amazonaws.services.omics.model.transform.*; /** * Client for accessing Amazon Omics. All service calls made using this client are blocking, and will not return until * the service call completes. *

*

* This is the AWS HealthOmics API Reference. For an introduction to the service, see What is AWS HealthOmics? in the AWS HealthOmics User * Guide. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonOmicsClient extends AmazonWebServiceClient implements AmazonOmics { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AmazonOmics.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "omics"; private volatile AmazonOmicsWaiters waiters; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("RangeNotSatisfiableException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.RangeNotSatisfiableExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceQuotaExceededException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.ServiceQuotaExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalServerException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.InternalServerExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("RequestTimeoutException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.RequestTimeoutExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("NotSupportedOperationException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.NotSupportedOperationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.omics.model.transform.ConflictExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.omics.model.AmazonOmicsException.class)); public static AmazonOmicsClientBuilder builder() { return AmazonOmicsClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Amazon Omics using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonOmicsClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Amazon Omics using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonOmicsClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("omics.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/omics/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/omics/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *

* Stops a multipart upload. *

* * @param abortMultipartReadSetUploadRequest * @return Result of the AbortMultipartReadSetUpload operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws NotSupportedOperationException * The operation is not supported by Amazon Omics, or the API does not exist. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.AbortMultipartReadSetUpload * @see AWS API Documentation */ @Override public AbortMultipartReadSetUploadResult abortMultipartReadSetUpload(AbortMultipartReadSetUploadRequest request) { request = beforeClientExecution(request); return executeAbortMultipartReadSetUpload(request); } @SdkInternalApi final AbortMultipartReadSetUploadResult executeAbortMultipartReadSetUpload(AbortMultipartReadSetUploadRequest abortMultipartReadSetUploadRequest) { ExecutionContext executionContext = createExecutionContext(abortMultipartReadSetUploadRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AbortMultipartReadSetUploadRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(abortMultipartReadSetUploadRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AbortMultipartReadSetUpload"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AbortMultipartReadSetUploadResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes one or more read sets. *

* * @param batchDeleteReadSetRequest * @return Result of the BatchDeleteReadSet operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.BatchDeleteReadSet * @see AWS API * Documentation */ @Override public BatchDeleteReadSetResult batchDeleteReadSet(BatchDeleteReadSetRequest request) { request = beforeClientExecution(request); return executeBatchDeleteReadSet(request); } @SdkInternalApi final BatchDeleteReadSetResult executeBatchDeleteReadSet(BatchDeleteReadSetRequest batchDeleteReadSetRequest) { ExecutionContext executionContext = createExecutionContext(batchDeleteReadSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new BatchDeleteReadSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(batchDeleteReadSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchDeleteReadSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new BatchDeleteReadSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Cancels an annotation import job. *

* * @param cancelAnnotationImportJobRequest * @return Result of the CancelAnnotationImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.CancelAnnotationImportJob * @see AWS API Documentation */ @Override public CancelAnnotationImportJobResult cancelAnnotationImportJob(CancelAnnotationImportJobRequest request) { request = beforeClientExecution(request); return executeCancelAnnotationImportJob(request); } @SdkInternalApi final CancelAnnotationImportJobResult executeCancelAnnotationImportJob(CancelAnnotationImportJobRequest cancelAnnotationImportJobRequest) { ExecutionContext executionContext = createExecutionContext(cancelAnnotationImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CancelAnnotationImportJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(cancelAnnotationImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelAnnotationImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelAnnotationImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Cancels a run. *

* * @param cancelRunRequest * @return Result of the CancelRun operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CancelRun * @see AWS API * Documentation */ @Override public CancelRunResult cancelRun(CancelRunRequest request) { request = beforeClientExecution(request); return executeCancelRun(request); } @SdkInternalApi final CancelRunResult executeCancelRun(CancelRunRequest cancelRunRequest) { ExecutionContext executionContext = createExecutionContext(cancelRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CancelRunRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cancelRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Cancels a variant import job. *

* * @param cancelVariantImportJobRequest * @return Result of the CancelVariantImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.CancelVariantImportJob * @see AWS * API Documentation */ @Override public CancelVariantImportJobResult cancelVariantImportJob(CancelVariantImportJobRequest request) { request = beforeClientExecution(request); return executeCancelVariantImportJob(request); } @SdkInternalApi final CancelVariantImportJobResult executeCancelVariantImportJob(CancelVariantImportJobRequest cancelVariantImportJobRequest) { ExecutionContext executionContext = createExecutionContext(cancelVariantImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CancelVariantImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cancelVariantImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelVariantImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelVariantImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Concludes a multipart upload once you have uploaded all the components. *

* * @param completeMultipartReadSetUploadRequest * @return Result of the CompleteMultipartReadSetUpload operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws NotSupportedOperationException * The operation is not supported by Amazon Omics, or the API does not exist. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CompleteMultipartReadSetUpload * @see AWS API Documentation */ @Override public CompleteMultipartReadSetUploadResult completeMultipartReadSetUpload(CompleteMultipartReadSetUploadRequest request) { request = beforeClientExecution(request); return executeCompleteMultipartReadSetUpload(request); } @SdkInternalApi final CompleteMultipartReadSetUploadResult executeCompleteMultipartReadSetUpload(CompleteMultipartReadSetUploadRequest completeMultipartReadSetUploadRequest) { ExecutionContext executionContext = createExecutionContext(completeMultipartReadSetUploadRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CompleteMultipartReadSetUploadRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(completeMultipartReadSetUploadRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CompleteMultipartReadSetUpload"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "storage-"; String resolvedHostPrefix = String.format("storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CompleteMultipartReadSetUploadResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an annotation store. *

* * @param createAnnotationStoreRequest * @return Result of the CreateAnnotationStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.CreateAnnotationStore * @see AWS * API Documentation */ @Override public CreateAnnotationStoreResult createAnnotationStore(CreateAnnotationStoreRequest request) { request = beforeClientExecution(request); return executeCreateAnnotationStore(request); } @SdkInternalApi final CreateAnnotationStoreResult executeCreateAnnotationStore(CreateAnnotationStoreRequest createAnnotationStoreRequest) { ExecutionContext executionContext = createExecutionContext(createAnnotationStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAnnotationStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAnnotationStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAnnotationStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAnnotationStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Begins a multipart read set upload. *

* * @param createMultipartReadSetUploadRequest * @return Result of the CreateMultipartReadSetUpload operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws NotSupportedOperationException * The operation is not supported by Amazon Omics, or the API does not exist. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CreateMultipartReadSetUpload * @see AWS API Documentation */ @Override public CreateMultipartReadSetUploadResult createMultipartReadSetUpload(CreateMultipartReadSetUploadRequest request) { request = beforeClientExecution(request); return executeCreateMultipartReadSetUpload(request); } @SdkInternalApi final CreateMultipartReadSetUploadResult executeCreateMultipartReadSetUpload(CreateMultipartReadSetUploadRequest createMultipartReadSetUploadRequest) { ExecutionContext executionContext = createExecutionContext(createMultipartReadSetUploadRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateMultipartReadSetUploadRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createMultipartReadSetUploadRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateMultipartReadSetUpload"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateMultipartReadSetUploadResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a reference store. *

* * @param createReferenceStoreRequest * @return Result of the CreateReferenceStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CreateReferenceStore * @see AWS API * Documentation */ @Override public CreateReferenceStoreResult createReferenceStore(CreateReferenceStoreRequest request) { request = beforeClientExecution(request); return executeCreateReferenceStore(request); } @SdkInternalApi final CreateReferenceStoreResult executeCreateReferenceStore(CreateReferenceStoreRequest createReferenceStoreRequest) { ExecutionContext executionContext = createExecutionContext(createReferenceStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateReferenceStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createReferenceStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateReferenceStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateReferenceStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a run group. *

* * @param createRunGroupRequest * @return Result of the CreateRunGroup operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CreateRunGroup * @see AWS API * Documentation */ @Override public CreateRunGroupResult createRunGroup(CreateRunGroupRequest request) { request = beforeClientExecution(request); return executeCreateRunGroup(request); } @SdkInternalApi final CreateRunGroupResult executeCreateRunGroup(CreateRunGroupRequest createRunGroupRequest) { ExecutionContext executionContext = createExecutionContext(createRunGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRunGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createRunGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRunGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateRunGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a sequence store. *

* * @param createSequenceStoreRequest * @return Result of the CreateSequenceStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CreateSequenceStore * @see AWS API * Documentation */ @Override public CreateSequenceStoreResult createSequenceStore(CreateSequenceStoreRequest request) { request = beforeClientExecution(request); return executeCreateSequenceStore(request); } @SdkInternalApi final CreateSequenceStoreResult executeCreateSequenceStore(CreateSequenceStoreRequest createSequenceStoreRequest) { ExecutionContext executionContext = createExecutionContext(createSequenceStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateSequenceStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createSequenceStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSequenceStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateSequenceStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a variant store. *

* * @param createVariantStoreRequest * @return Result of the CreateVariantStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.CreateVariantStore * @see AWS API * Documentation */ @Override public CreateVariantStoreResult createVariantStore(CreateVariantStoreRequest request) { request = beforeClientExecution(request); return executeCreateVariantStore(request); } @SdkInternalApi final CreateVariantStoreResult executeCreateVariantStore(CreateVariantStoreRequest createVariantStoreRequest) { ExecutionContext executionContext = createExecutionContext(createVariantStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateVariantStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createVariantStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateVariantStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateVariantStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a workflow. *

* * @param createWorkflowRequest * @return Result of the CreateWorkflow operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.CreateWorkflow * @see AWS API * Documentation */ @Override public CreateWorkflowResult createWorkflow(CreateWorkflowRequest request) { request = beforeClientExecution(request); return executeCreateWorkflow(request); } @SdkInternalApi final CreateWorkflowResult executeCreateWorkflow(CreateWorkflowRequest createWorkflowRequest) { ExecutionContext executionContext = createExecutionContext(createWorkflowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateWorkflowRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createWorkflowRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateWorkflow"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateWorkflowResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an annotation store. *

* * @param deleteAnnotationStoreRequest * @return Result of the DeleteAnnotationStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.DeleteAnnotationStore * @see AWS * API Documentation */ @Override public DeleteAnnotationStoreResult deleteAnnotationStore(DeleteAnnotationStoreRequest request) { request = beforeClientExecution(request); return executeDeleteAnnotationStore(request); } @SdkInternalApi final DeleteAnnotationStoreResult executeDeleteAnnotationStore(DeleteAnnotationStoreRequest deleteAnnotationStoreRequest) { ExecutionContext executionContext = createExecutionContext(deleteAnnotationStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAnnotationStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAnnotationStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAnnotationStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAnnotationStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a genome reference. *

* * @param deleteReferenceRequest * @return Result of the DeleteReference operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.DeleteReference * @see AWS API * Documentation */ @Override public DeleteReferenceResult deleteReference(DeleteReferenceRequest request) { request = beforeClientExecution(request); return executeDeleteReference(request); } @SdkInternalApi final DeleteReferenceResult executeDeleteReference(DeleteReferenceRequest deleteReferenceRequest) { ExecutionContext executionContext = createExecutionContext(deleteReferenceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteReferenceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteReferenceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteReference"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteReferenceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a genome reference store. *

* * @param deleteReferenceStoreRequest * @return Result of the DeleteReferenceStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.DeleteReferenceStore * @see AWS API * Documentation */ @Override public DeleteReferenceStoreResult deleteReferenceStore(DeleteReferenceStoreRequest request) { request = beforeClientExecution(request); return executeDeleteReferenceStore(request); } @SdkInternalApi final DeleteReferenceStoreResult executeDeleteReferenceStore(DeleteReferenceStoreRequest deleteReferenceStoreRequest) { ExecutionContext executionContext = createExecutionContext(deleteReferenceStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteReferenceStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteReferenceStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteReferenceStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteReferenceStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a workflow run. *

* * @param deleteRunRequest * @return Result of the DeleteRun operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.DeleteRun * @see AWS API * Documentation */ @Override public DeleteRunResult deleteRun(DeleteRunRequest request) { request = beforeClientExecution(request); return executeDeleteRun(request); } @SdkInternalApi final DeleteRunResult executeDeleteRun(DeleteRunRequest deleteRunRequest) { ExecutionContext executionContext = createExecutionContext(deleteRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteRunRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a workflow run group. *

* * @param deleteRunGroupRequest * @return Result of the DeleteRunGroup operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.DeleteRunGroup * @see AWS API * Documentation */ @Override public DeleteRunGroupResult deleteRunGroup(DeleteRunGroupRequest request) { request = beforeClientExecution(request); return executeDeleteRunGroup(request); } @SdkInternalApi final DeleteRunGroupResult executeDeleteRunGroup(DeleteRunGroupRequest deleteRunGroupRequest) { ExecutionContext executionContext = createExecutionContext(deleteRunGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteRunGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteRunGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRunGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteRunGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a sequence store. *

* * @param deleteSequenceStoreRequest * @return Result of the DeleteSequenceStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.DeleteSequenceStore * @see AWS API * Documentation */ @Override public DeleteSequenceStoreResult deleteSequenceStore(DeleteSequenceStoreRequest request) { request = beforeClientExecution(request); return executeDeleteSequenceStore(request); } @SdkInternalApi final DeleteSequenceStoreResult executeDeleteSequenceStore(DeleteSequenceStoreRequest deleteSequenceStoreRequest) { ExecutionContext executionContext = createExecutionContext(deleteSequenceStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteSequenceStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteSequenceStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteSequenceStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteSequenceStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a variant store. *

* * @param deleteVariantStoreRequest * @return Result of the DeleteVariantStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.DeleteVariantStore * @see AWS API * Documentation */ @Override public DeleteVariantStoreResult deleteVariantStore(DeleteVariantStoreRequest request) { request = beforeClientExecution(request); return executeDeleteVariantStore(request); } @SdkInternalApi final DeleteVariantStoreResult executeDeleteVariantStore(DeleteVariantStoreRequest deleteVariantStoreRequest) { ExecutionContext executionContext = createExecutionContext(deleteVariantStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteVariantStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteVariantStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteVariantStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteVariantStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a workflow. *

* * @param deleteWorkflowRequest * @return Result of the DeleteWorkflow operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.DeleteWorkflow * @see AWS API * Documentation */ @Override public DeleteWorkflowResult deleteWorkflow(DeleteWorkflowRequest request) { request = beforeClientExecution(request); return executeDeleteWorkflow(request); } @SdkInternalApi final DeleteWorkflowResult executeDeleteWorkflow(DeleteWorkflowRequest deleteWorkflowRequest) { ExecutionContext executionContext = createExecutionContext(deleteWorkflowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteWorkflowRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteWorkflowRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteWorkflow"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteWorkflowResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about an annotation import job. *

* * @param getAnnotationImportJobRequest * @return Result of the GetAnnotationImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.GetAnnotationImportJob * @see AWS * API Documentation */ @Override public GetAnnotationImportJobResult getAnnotationImportJob(GetAnnotationImportJobRequest request) { request = beforeClientExecution(request); return executeGetAnnotationImportJob(request); } @SdkInternalApi final GetAnnotationImportJobResult executeGetAnnotationImportJob(GetAnnotationImportJobRequest getAnnotationImportJobRequest) { ExecutionContext executionContext = createExecutionContext(getAnnotationImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetAnnotationImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAnnotationImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAnnotationImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAnnotationImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about an annotation store. *

* * @param getAnnotationStoreRequest * @return Result of the GetAnnotationStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.GetAnnotationStore * @see AWS API * Documentation */ @Override public GetAnnotationStoreResult getAnnotationStore(GetAnnotationStoreRequest request) { request = beforeClientExecution(request); return executeGetAnnotationStore(request); } @SdkInternalApi final GetAnnotationStoreResult executeGetAnnotationStore(GetAnnotationStoreRequest getAnnotationStoreRequest) { ExecutionContext executionContext = createExecutionContext(getAnnotationStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetAnnotationStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAnnotationStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAnnotationStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAnnotationStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a file from a read set. *

* * @param getReadSetRequest * @return Result of the GetReadSet operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws RangeNotSatisfiableException * The ranges specified in the request are not valid. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReadSet * @see AWS API * Documentation */ @Override public GetReadSetResult getReadSet(GetReadSetRequest request) { request = beforeClientExecution(request); return executeGetReadSet(request); } @SdkInternalApi final GetReadSetResult executeGetReadSet(GetReadSetRequest getReadSetRequest) { ExecutionContext executionContext = createExecutionContext(getReadSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReadSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReadSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReadSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "storage-"; String resolvedHostPrefix = String.format("storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(false).withHasStreamingSuccessResponse(true), new GetReadSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); request.addHandlerContext(HandlerContextKey.HAS_STREAMING_OUTPUT, Boolean.TRUE); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a read set activation job. *

* * @param getReadSetActivationJobRequest * @return Result of the GetReadSetActivationJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReadSetActivationJob * @see AWS * API Documentation */ @Override public GetReadSetActivationJobResult getReadSetActivationJob(GetReadSetActivationJobRequest request) { request = beforeClientExecution(request); return executeGetReadSetActivationJob(request); } @SdkInternalApi final GetReadSetActivationJobResult executeGetReadSetActivationJob(GetReadSetActivationJobRequest getReadSetActivationJobRequest) { ExecutionContext executionContext = createExecutionContext(getReadSetActivationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReadSetActivationJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getReadSetActivationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReadSetActivationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReadSetActivationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a read set export job. *

* * @param getReadSetExportJobRequest * @return Result of the GetReadSetExportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReadSetExportJob * @see AWS API * Documentation */ @Override public GetReadSetExportJobResult getReadSetExportJob(GetReadSetExportJobRequest request) { request = beforeClientExecution(request); return executeGetReadSetExportJob(request); } @SdkInternalApi final GetReadSetExportJobResult executeGetReadSetExportJob(GetReadSetExportJobRequest getReadSetExportJobRequest) { ExecutionContext executionContext = createExecutionContext(getReadSetExportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReadSetExportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReadSetExportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReadSetExportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReadSetExportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a read set import job. *

* * @param getReadSetImportJobRequest * @return Result of the GetReadSetImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReadSetImportJob * @see AWS API * Documentation */ @Override public GetReadSetImportJobResult getReadSetImportJob(GetReadSetImportJobRequest request) { request = beforeClientExecution(request); return executeGetReadSetImportJob(request); } @SdkInternalApi final GetReadSetImportJobResult executeGetReadSetImportJob(GetReadSetImportJobRequest getReadSetImportJobRequest) { ExecutionContext executionContext = createExecutionContext(getReadSetImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReadSetImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReadSetImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReadSetImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReadSetImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets details about a read set. *

* * @param getReadSetMetadataRequest * @return Result of the GetReadSetMetadata operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReadSetMetadata * @see AWS API * Documentation */ @Override public GetReadSetMetadataResult getReadSetMetadata(GetReadSetMetadataRequest request) { request = beforeClientExecution(request); return executeGetReadSetMetadata(request); } @SdkInternalApi final GetReadSetMetadataResult executeGetReadSetMetadata(GetReadSetMetadataRequest getReadSetMetadataRequest) { ExecutionContext executionContext = createExecutionContext(getReadSetMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReadSetMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReadSetMetadataRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReadSetMetadata"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReadSetMetadataResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a reference file. *

* * @param getReferenceRequest * @return Result of the GetReference operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws RangeNotSatisfiableException * The ranges specified in the request are not valid. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReference * @see AWS API * Documentation */ @Override public GetReferenceResult getReference(GetReferenceRequest request) { request = beforeClientExecution(request); return executeGetReference(request); } @SdkInternalApi final GetReferenceResult executeGetReference(GetReferenceRequest getReferenceRequest) { ExecutionContext executionContext = createExecutionContext(getReferenceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReferenceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReferenceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReference"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "storage-"; String resolvedHostPrefix = String.format("storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(false).withHasStreamingSuccessResponse(true), new GetReferenceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); request.addHandlerContext(HandlerContextKey.HAS_STREAMING_OUTPUT, Boolean.TRUE); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a reference import job. *

* * @param getReferenceImportJobRequest * @return Result of the GetReferenceImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReferenceImportJob * @see AWS * API Documentation */ @Override public GetReferenceImportJobResult getReferenceImportJob(GetReferenceImportJobRequest request) { request = beforeClientExecution(request); return executeGetReferenceImportJob(request); } @SdkInternalApi final GetReferenceImportJobResult executeGetReferenceImportJob(GetReferenceImportJobRequest getReferenceImportJobRequest) { ExecutionContext executionContext = createExecutionContext(getReferenceImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReferenceImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReferenceImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReferenceImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReferenceImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a genome reference's metadata. *

* * @param getReferenceMetadataRequest * @return Result of the GetReferenceMetadata operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReferenceMetadata * @see AWS API * Documentation */ @Override public GetReferenceMetadataResult getReferenceMetadata(GetReferenceMetadataRequest request) { request = beforeClientExecution(request); return executeGetReferenceMetadata(request); } @SdkInternalApi final GetReferenceMetadataResult executeGetReferenceMetadata(GetReferenceMetadataRequest getReferenceMetadataRequest) { ExecutionContext executionContext = createExecutionContext(getReferenceMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReferenceMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReferenceMetadataRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReferenceMetadata"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReferenceMetadataResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a reference store. *

* * @param getReferenceStoreRequest * @return Result of the GetReferenceStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetReferenceStore * @see AWS API * Documentation */ @Override public GetReferenceStoreResult getReferenceStore(GetReferenceStoreRequest request) { request = beforeClientExecution(request); return executeGetReferenceStore(request); } @SdkInternalApi final GetReferenceStoreResult executeGetReferenceStore(GetReferenceStoreRequest getReferenceStoreRequest) { ExecutionContext executionContext = createExecutionContext(getReferenceStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetReferenceStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getReferenceStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReferenceStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetReferenceStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a workflow run. *

* * @param getRunRequest * @return Result of the GetRun operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetRun * @see AWS API * Documentation */ @Override public GetRunResult getRun(GetRunRequest request) { request = beforeClientExecution(request); return executeGetRun(request); } @SdkInternalApi final GetRunResult executeGetRun(GetRunRequest getRunRequest) { ExecutionContext executionContext = createExecutionContext(getRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetRunRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a workflow run group. *

* * @param getRunGroupRequest * @return Result of the GetRunGroup operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetRunGroup * @see AWS API * Documentation */ @Override public GetRunGroupResult getRunGroup(GetRunGroupRequest request) { request = beforeClientExecution(request); return executeGetRunGroup(request); } @SdkInternalApi final GetRunGroupResult executeGetRunGroup(GetRunGroupRequest getRunGroupRequest) { ExecutionContext executionContext = createExecutionContext(getRunGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetRunGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getRunGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetRunGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetRunGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a workflow run task. *

* * @param getRunTaskRequest * @return Result of the GetRunTask operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetRunTask * @see AWS API * Documentation */ @Override public GetRunTaskResult getRunTask(GetRunTaskRequest request) { request = beforeClientExecution(request); return executeGetRunTask(request); } @SdkInternalApi final GetRunTaskResult executeGetRunTask(GetRunTaskRequest getRunTaskRequest) { ExecutionContext executionContext = createExecutionContext(getRunTaskRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetRunTaskRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getRunTaskRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetRunTask"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetRunTaskResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a sequence store. *

* * @param getSequenceStoreRequest * @return Result of the GetSequenceStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetSequenceStore * @see AWS API * Documentation */ @Override public GetSequenceStoreResult getSequenceStore(GetSequenceStoreRequest request) { request = beforeClientExecution(request); return executeGetSequenceStore(request); } @SdkInternalApi final GetSequenceStoreResult executeGetSequenceStore(GetSequenceStoreRequest getSequenceStoreRequest) { ExecutionContext executionContext = createExecutionContext(getSequenceStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSequenceStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getSequenceStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSequenceStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSequenceStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a variant import job. *

* * @param getVariantImportJobRequest * @return Result of the GetVariantImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.GetVariantImportJob * @see AWS API * Documentation */ @Override public GetVariantImportJobResult getVariantImportJob(GetVariantImportJobRequest request) { request = beforeClientExecution(request); return executeGetVariantImportJob(request); } @SdkInternalApi final GetVariantImportJobResult executeGetVariantImportJob(GetVariantImportJobRequest getVariantImportJobRequest) { ExecutionContext executionContext = createExecutionContext(getVariantImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetVariantImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getVariantImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetVariantImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetVariantImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a variant store. *

* * @param getVariantStoreRequest * @return Result of the GetVariantStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.GetVariantStore * @see AWS API * Documentation */ @Override public GetVariantStoreResult getVariantStore(GetVariantStoreRequest request) { request = beforeClientExecution(request); return executeGetVariantStore(request); } @SdkInternalApi final GetVariantStoreResult executeGetVariantStore(GetVariantStoreRequest getVariantStoreRequest) { ExecutionContext executionContext = createExecutionContext(getVariantStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetVariantStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getVariantStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetVariantStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetVariantStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a workflow. *

* * @param getWorkflowRequest * @return Result of the GetWorkflow operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.GetWorkflow * @see AWS API * Documentation */ @Override public GetWorkflowResult getWorkflow(GetWorkflowRequest request) { request = beforeClientExecution(request); return executeGetWorkflow(request); } @SdkInternalApi final GetWorkflowResult executeGetWorkflow(GetWorkflowRequest getWorkflowRequest) { ExecutionContext executionContext = createExecutionContext(getWorkflowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetWorkflowRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getWorkflowRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetWorkflow"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetWorkflowResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of annotation import jobs. *

* * @param listAnnotationImportJobsRequest * @return Result of the ListAnnotationImportJobs operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.ListAnnotationImportJobs * @see AWS * API Documentation */ @Override public ListAnnotationImportJobsResult listAnnotationImportJobs(ListAnnotationImportJobsRequest request) { request = beforeClientExecution(request); return executeListAnnotationImportJobs(request); } @SdkInternalApi final ListAnnotationImportJobsResult executeListAnnotationImportJobs(ListAnnotationImportJobsRequest listAnnotationImportJobsRequest) { ExecutionContext executionContext = createExecutionContext(listAnnotationImportJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAnnotationImportJobsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listAnnotationImportJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAnnotationImportJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAnnotationImportJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of annotation stores. *

* * @param listAnnotationStoresRequest * @return Result of the ListAnnotationStores operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.ListAnnotationStores * @see AWS API * Documentation */ @Override public ListAnnotationStoresResult listAnnotationStores(ListAnnotationStoresRequest request) { request = beforeClientExecution(request); return executeListAnnotationStores(request); } @SdkInternalApi final ListAnnotationStoresResult executeListAnnotationStores(ListAnnotationStoresRequest listAnnotationStoresRequest) { ExecutionContext executionContext = createExecutionContext(listAnnotationStoresRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAnnotationStoresRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAnnotationStoresRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAnnotationStores"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAnnotationStoresResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all multipart read set uploads and their statuses. *

* * @param listMultipartReadSetUploadsRequest * @return Result of the ListMultipartReadSetUploads operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws NotSupportedOperationException * The operation is not supported by Amazon Omics, or the API does not exist. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListMultipartReadSetUploads * @see AWS API Documentation */ @Override public ListMultipartReadSetUploadsResult listMultipartReadSetUploads(ListMultipartReadSetUploadsRequest request) { request = beforeClientExecution(request); return executeListMultipartReadSetUploads(request); } @SdkInternalApi final ListMultipartReadSetUploadsResult executeListMultipartReadSetUploads(ListMultipartReadSetUploadsRequest listMultipartReadSetUploadsRequest) { ExecutionContext executionContext = createExecutionContext(listMultipartReadSetUploadsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMultipartReadSetUploadsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listMultipartReadSetUploadsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMultipartReadSetUploads"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMultipartReadSetUploadsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of read set activation jobs. *

* * @param listReadSetActivationJobsRequest * @return Result of the ListReadSetActivationJobs operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReadSetActivationJobs * @see AWS API Documentation */ @Override public ListReadSetActivationJobsResult listReadSetActivationJobs(ListReadSetActivationJobsRequest request) { request = beforeClientExecution(request); return executeListReadSetActivationJobs(request); } @SdkInternalApi final ListReadSetActivationJobsResult executeListReadSetActivationJobs(ListReadSetActivationJobsRequest listReadSetActivationJobsRequest) { ExecutionContext executionContext = createExecutionContext(listReadSetActivationJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReadSetActivationJobsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listReadSetActivationJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReadSetActivationJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReadSetActivationJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of read set export jobs. *

* * @param listReadSetExportJobsRequest * @return Result of the ListReadSetExportJobs operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReadSetExportJobs * @see AWS * API Documentation */ @Override public ListReadSetExportJobsResult listReadSetExportJobs(ListReadSetExportJobsRequest request) { request = beforeClientExecution(request); return executeListReadSetExportJobs(request); } @SdkInternalApi final ListReadSetExportJobsResult executeListReadSetExportJobs(ListReadSetExportJobsRequest listReadSetExportJobsRequest) { ExecutionContext executionContext = createExecutionContext(listReadSetExportJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReadSetExportJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listReadSetExportJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReadSetExportJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReadSetExportJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of read set import jobs. *

* * @param listReadSetImportJobsRequest * @return Result of the ListReadSetImportJobs operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReadSetImportJobs * @see AWS * API Documentation */ @Override public ListReadSetImportJobsResult listReadSetImportJobs(ListReadSetImportJobsRequest request) { request = beforeClientExecution(request); return executeListReadSetImportJobs(request); } @SdkInternalApi final ListReadSetImportJobsResult executeListReadSetImportJobs(ListReadSetImportJobsRequest listReadSetImportJobsRequest) { ExecutionContext executionContext = createExecutionContext(listReadSetImportJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReadSetImportJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listReadSetImportJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReadSetImportJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReadSetImportJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* This operation will list all parts in a requested multipart upload for a sequence store. *

* * @param listReadSetUploadPartsRequest * @return Result of the ListReadSetUploadParts operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws NotSupportedOperationException * The operation is not supported by Amazon Omics, or the API does not exist. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReadSetUploadParts * @see AWS * API Documentation */ @Override public ListReadSetUploadPartsResult listReadSetUploadParts(ListReadSetUploadPartsRequest request) { request = beforeClientExecution(request); return executeListReadSetUploadParts(request); } @SdkInternalApi final ListReadSetUploadPartsResult executeListReadSetUploadParts(ListReadSetUploadPartsRequest listReadSetUploadPartsRequest) { ExecutionContext executionContext = createExecutionContext(listReadSetUploadPartsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReadSetUploadPartsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listReadSetUploadPartsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReadSetUploadParts"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReadSetUploadPartsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of read sets. *

* * @param listReadSetsRequest * @return Result of the ListReadSets operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReadSets * @see AWS API * Documentation */ @Override public ListReadSetsResult listReadSets(ListReadSetsRequest request) { request = beforeClientExecution(request); return executeListReadSets(request); } @SdkInternalApi final ListReadSetsResult executeListReadSets(ListReadSetsRequest listReadSetsRequest) { ExecutionContext executionContext = createExecutionContext(listReadSetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReadSetsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listReadSetsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReadSets"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReadSetsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of reference import jobs. *

* * @param listReferenceImportJobsRequest * @return Result of the ListReferenceImportJobs operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReferenceImportJobs * @see AWS * API Documentation */ @Override public ListReferenceImportJobsResult listReferenceImportJobs(ListReferenceImportJobsRequest request) { request = beforeClientExecution(request); return executeListReferenceImportJobs(request); } @SdkInternalApi final ListReferenceImportJobsResult executeListReferenceImportJobs(ListReferenceImportJobsRequest listReferenceImportJobsRequest) { ExecutionContext executionContext = createExecutionContext(listReferenceImportJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReferenceImportJobsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listReferenceImportJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReferenceImportJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReferenceImportJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of reference stores. *

* * @param listReferenceStoresRequest * @return Result of the ListReferenceStores operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReferenceStores * @see AWS API * Documentation */ @Override public ListReferenceStoresResult listReferenceStores(ListReferenceStoresRequest request) { request = beforeClientExecution(request); return executeListReferenceStores(request); } @SdkInternalApi final ListReferenceStoresResult executeListReferenceStores(ListReferenceStoresRequest listReferenceStoresRequest) { ExecutionContext executionContext = createExecutionContext(listReferenceStoresRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReferenceStoresRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listReferenceStoresRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReferenceStores"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReferenceStoresResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of references. *

* * @param listReferencesRequest * @return Result of the ListReferences operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListReferences * @see AWS API * Documentation */ @Override public ListReferencesResult listReferences(ListReferencesRequest request) { request = beforeClientExecution(request); return executeListReferences(request); } @SdkInternalApi final ListReferencesResult executeListReferences(ListReferencesRequest listReferencesRequest) { ExecutionContext executionContext = createExecutionContext(listReferencesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListReferencesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listReferencesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReferences"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListReferencesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of run groups. *

* * @param listRunGroupsRequest * @return Result of the ListRunGroups operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListRunGroups * @see AWS API * Documentation */ @Override public ListRunGroupsResult listRunGroups(ListRunGroupsRequest request) { request = beforeClientExecution(request); return executeListRunGroups(request); } @SdkInternalApi final ListRunGroupsResult executeListRunGroups(ListRunGroupsRequest listRunGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listRunGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRunGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listRunGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListRunGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListRunGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of tasks for a run. *

* * @param listRunTasksRequest * @return Result of the ListRunTasks operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListRunTasks * @see AWS API * Documentation */ @Override public ListRunTasksResult listRunTasks(ListRunTasksRequest request) { request = beforeClientExecution(request); return executeListRunTasks(request); } @SdkInternalApi final ListRunTasksResult executeListRunTasks(ListRunTasksRequest listRunTasksRequest) { ExecutionContext executionContext = createExecutionContext(listRunTasksRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRunTasksRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listRunTasksRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListRunTasks"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListRunTasksResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of runs. *

* * @param listRunsRequest * @return Result of the ListRuns operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListRuns * @see AWS API * Documentation */ @Override public ListRunsResult listRuns(ListRunsRequest request) { request = beforeClientExecution(request); return executeListRuns(request); } @SdkInternalApi final ListRunsResult executeListRuns(ListRunsRequest listRunsRequest) { ExecutionContext executionContext = createExecutionContext(listRunsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRunsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listRunsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListRuns"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListRunsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of sequence stores. *

* * @param listSequenceStoresRequest * @return Result of the ListSequenceStores operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListSequenceStores * @see AWS API * Documentation */ @Override public ListSequenceStoresResult listSequenceStores(ListSequenceStoresRequest request) { request = beforeClientExecution(request); return executeListSequenceStores(request); } @SdkInternalApi final ListSequenceStoresResult executeListSequenceStores(ListSequenceStoresRequest listSequenceStoresRequest) { ExecutionContext executionContext = createExecutionContext(listSequenceStoresRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSequenceStoresRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listSequenceStoresRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSequenceStores"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSequenceStoresResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of tags for a resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListTagsForResource * @see AWS API * Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "tags-"; String resolvedHostPrefix = String.format("tags-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of variant import jobs. *

* * @param listVariantImportJobsRequest * @return Result of the ListVariantImportJobs operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.ListVariantImportJobs * @see AWS * API Documentation */ @Override public ListVariantImportJobsResult listVariantImportJobs(ListVariantImportJobsRequest request) { request = beforeClientExecution(request); return executeListVariantImportJobs(request); } @SdkInternalApi final ListVariantImportJobsResult executeListVariantImportJobs(ListVariantImportJobsRequest listVariantImportJobsRequest) { ExecutionContext executionContext = createExecutionContext(listVariantImportJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListVariantImportJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listVariantImportJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListVariantImportJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListVariantImportJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of variant stores. *

* * @param listVariantStoresRequest * @return Result of the ListVariantStores operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.ListVariantStores * @see AWS API * Documentation */ @Override public ListVariantStoresResult listVariantStores(ListVariantStoresRequest request) { request = beforeClientExecution(request); return executeListVariantStores(request); } @SdkInternalApi final ListVariantStoresResult executeListVariantStores(ListVariantStoresRequest listVariantStoresRequest) { ExecutionContext executionContext = createExecutionContext(listVariantStoresRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListVariantStoresRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listVariantStoresRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListVariantStores"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListVariantStoresResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves a list of workflows. *

* * @param listWorkflowsRequest * @return Result of the ListWorkflows operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.ListWorkflows * @see AWS API * Documentation */ @Override public ListWorkflowsResult listWorkflows(ListWorkflowsRequest request) { request = beforeClientExecution(request); return executeListWorkflows(request); } @SdkInternalApi final ListWorkflowsResult executeListWorkflows(ListWorkflowsRequest listWorkflowsRequest) { ExecutionContext executionContext = createExecutionContext(listWorkflowsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListWorkflowsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listWorkflowsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListWorkflows"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListWorkflowsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts an annotation import job. *

* * @param startAnnotationImportJobRequest * @return Result of the StartAnnotationImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.StartAnnotationImportJob * @see AWS * API Documentation */ @Override public StartAnnotationImportJobResult startAnnotationImportJob(StartAnnotationImportJobRequest request) { request = beforeClientExecution(request); return executeStartAnnotationImportJob(request); } @SdkInternalApi final StartAnnotationImportJobResult executeStartAnnotationImportJob(StartAnnotationImportJobRequest startAnnotationImportJobRequest) { ExecutionContext executionContext = createExecutionContext(startAnnotationImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartAnnotationImportJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startAnnotationImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartAnnotationImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartAnnotationImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Activates an archived read set. To reduce storage charges, Amazon Omics archives unused read sets after 30 days. *

* * @param startReadSetActivationJobRequest * @return Result of the StartReadSetActivationJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.StartReadSetActivationJob * @see AWS API Documentation */ @Override public StartReadSetActivationJobResult startReadSetActivationJob(StartReadSetActivationJobRequest request) { request = beforeClientExecution(request); return executeStartReadSetActivationJob(request); } @SdkInternalApi final StartReadSetActivationJobResult executeStartReadSetActivationJob(StartReadSetActivationJobRequest startReadSetActivationJobRequest) { ExecutionContext executionContext = createExecutionContext(startReadSetActivationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartReadSetActivationJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startReadSetActivationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartReadSetActivationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartReadSetActivationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Exports a read set to Amazon S3. *

* * @param startReadSetExportJobRequest * @return Result of the StartReadSetExportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.StartReadSetExportJob * @see AWS * API Documentation */ @Override public StartReadSetExportJobResult startReadSetExportJob(StartReadSetExportJobRequest request) { request = beforeClientExecution(request); return executeStartReadSetExportJob(request); } @SdkInternalApi final StartReadSetExportJobResult executeStartReadSetExportJob(StartReadSetExportJobRequest startReadSetExportJobRequest) { ExecutionContext executionContext = createExecutionContext(startReadSetExportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartReadSetExportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startReadSetExportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartReadSetExportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartReadSetExportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a read set import job. *

* * @param startReadSetImportJobRequest * @return Result of the StartReadSetImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.StartReadSetImportJob * @see AWS * API Documentation */ @Override public StartReadSetImportJobResult startReadSetImportJob(StartReadSetImportJobRequest request) { request = beforeClientExecution(request); return executeStartReadSetImportJob(request); } @SdkInternalApi final StartReadSetImportJobResult executeStartReadSetImportJob(StartReadSetImportJobRequest startReadSetImportJobRequest) { ExecutionContext executionContext = createExecutionContext(startReadSetImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartReadSetImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startReadSetImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartReadSetImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartReadSetImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a reference import job. *

* * @param startReferenceImportJobRequest * @return Result of the StartReferenceImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.StartReferenceImportJob * @see AWS * API Documentation */ @Override public StartReferenceImportJobResult startReferenceImportJob(StartReferenceImportJobRequest request) { request = beforeClientExecution(request); return executeStartReferenceImportJob(request); } @SdkInternalApi final StartReferenceImportJobResult executeStartReferenceImportJob(StartReferenceImportJobRequest startReferenceImportJobRequest) { ExecutionContext executionContext = createExecutionContext(startReferenceImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartReferenceImportJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startReferenceImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartReferenceImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "control-storage-"; String resolvedHostPrefix = String.format("control-storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartReferenceImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a run. *

* * @param startRunRequest * @return Result of the StartRun operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.StartRun * @see AWS API * Documentation */ @Override public StartRunResult startRun(StartRunRequest request) { request = beforeClientExecution(request); return executeStartRun(request); } @SdkInternalApi final StartRunResult executeStartRun(StartRunRequest startRunRequest) { ExecutionContext executionContext = createExecutionContext(startRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartRunRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a variant import job. *

* * @param startVariantImportJobRequest * @return Result of the StartVariantImportJob operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.StartVariantImportJob * @see AWS * API Documentation */ @Override public StartVariantImportJobResult startVariantImportJob(StartVariantImportJobRequest request) { request = beforeClientExecution(request); return executeStartVariantImportJob(request); } @SdkInternalApi final StartVariantImportJobResult executeStartVariantImportJob(StartVariantImportJobRequest startVariantImportJobRequest) { ExecutionContext executionContext = createExecutionContext(startVariantImportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartVariantImportJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startVariantImportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartVariantImportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartVariantImportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Tags a resource. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.TagResource * @see AWS API * Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "tags-"; String resolvedHostPrefix = String.format("tags-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes tags from a resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.UntagResource * @see AWS API * Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "tags-"; String resolvedHostPrefix = String.format("tags-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an annotation store. *

* * @param updateAnnotationStoreRequest * @return Result of the UpdateAnnotationStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.UpdateAnnotationStore * @see AWS * API Documentation */ @Override public UpdateAnnotationStoreResult updateAnnotationStore(UpdateAnnotationStoreRequest request) { request = beforeClientExecution(request); return executeUpdateAnnotationStore(request); } @SdkInternalApi final UpdateAnnotationStoreResult executeUpdateAnnotationStore(UpdateAnnotationStoreRequest updateAnnotationStoreRequest) { ExecutionContext executionContext = createExecutionContext(updateAnnotationStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAnnotationStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateAnnotationStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAnnotationStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAnnotationStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a run group. *

* * @param updateRunGroupRequest * @return Result of the UpdateRunGroup operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.UpdateRunGroup * @see AWS API * Documentation */ @Override public UpdateRunGroupResult updateRunGroup(UpdateRunGroupRequest request) { request = beforeClientExecution(request); return executeUpdateRunGroup(request); } @SdkInternalApi final UpdateRunGroupResult executeUpdateRunGroup(UpdateRunGroupRequest updateRunGroupRequest) { ExecutionContext executionContext = createExecutionContext(updateRunGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateRunGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateRunGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateRunGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateRunGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a variant store. *

* * @param updateVariantStoreRequest * @return Result of the UpdateVariantStore operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AmazonOmics.UpdateVariantStore * @see AWS API * Documentation */ @Override public UpdateVariantStoreResult updateVariantStore(UpdateVariantStoreRequest request) { request = beforeClientExecution(request); return executeUpdateVariantStore(request); } @SdkInternalApi final UpdateVariantStoreResult executeUpdateVariantStore(UpdateVariantStoreRequest updateVariantStoreRequest) { ExecutionContext executionContext = createExecutionContext(updateVariantStoreRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateVariantStoreRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateVariantStoreRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateVariantStore"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "analytics-"; String resolvedHostPrefix = String.format("analytics-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateVariantStoreResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a workflow. *

* * @param updateWorkflowRequest * @return Result of the UpdateWorkflow operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request cannot be applied to the target resource in its current state. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.UpdateWorkflow * @see AWS API * Documentation */ @Override public UpdateWorkflowResult updateWorkflow(UpdateWorkflowRequest request) { request = beforeClientExecution(request); return executeUpdateWorkflow(request); } @SdkInternalApi final UpdateWorkflowResult executeUpdateWorkflow(UpdateWorkflowRequest updateWorkflowRequest) { ExecutionContext executionContext = createExecutionContext(updateWorkflowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateWorkflowRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateWorkflowRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateWorkflow"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "workflows-"; String resolvedHostPrefix = String.format("workflows-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateWorkflowResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* This operation uploads a specific part of a read set. If you upload a new part using a previously used part * number, the previously uploaded part will be overwritten. *

* * @param uploadReadSetPartRequest * @return Result of the UploadReadSetPart operation returned by the service. * @throws InternalServerException * An unexpected error occurred. Try the request again. * @throws NotSupportedOperationException * The operation is not supported by Amazon Omics, or the API does not exist. * @throws ServiceQuotaExceededException * The request exceeds a service quota. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ResourceNotFoundException * The target resource was not found in the current Region. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws RequestTimeoutException * The request timed out. * @sample AmazonOmics.UploadReadSetPart * @see AWS API * Documentation */ @Override public UploadReadSetPartResult uploadReadSetPart(UploadReadSetPartRequest request) { request = beforeClientExecution(request); return executeUploadReadSetPart(request); } @SdkInternalApi final UploadReadSetPartResult executeUploadReadSetPart(UploadReadSetPartRequest uploadReadSetPartRequest) { ExecutionContext executionContext = createExecutionContext(uploadReadSetPartRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UploadReadSetPartRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(uploadReadSetPartRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Omics"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UploadReadSetPart"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); request.addHandlerContext(HandlerContextKey.REQUIRES_LENGTH, Boolean.TRUE); request.addHandlerContext(HandlerContextKey.HAS_STREAMING_INPUT, Boolean.TRUE); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } URI endpointTraitHost = null; if (!clientConfiguration.isDisableHostPrefixInjection()) { String hostPrefix = "storage-"; String resolvedHostPrefix = String.format("storage-"); endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UploadReadSetPartResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext, null, endpointTraitHost); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** * Returns additional metadata for a previously executed successful, request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing the request. * * @param request * The originally executed request * * @return The response metadata for the specified request, or null if none is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider)); return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait); } /** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private Response anonymousInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); } /** * Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the * ExecutionContext beforehand. **/ private Response doInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) { if (discoveredEndpoint != null) { request.setEndpoint(discoveredEndpoint); request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery"); } else if (uriFromEndpointTrait != null) { request.setEndpoint(uriFromEndpointTrait); } else { request.setEndpoint(endpoint); } request.setTimeOffset(timeOffset); HttpResponseHandler errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata()); return client.execute(request, responseHandler, errorResponseHandler, executionContext); } @com.amazonaws.annotation.SdkInternalApi static com.amazonaws.protocol.json.SdkJsonProtocolFactory getProtocolFactory() { return protocolFactory; } @Override public AmazonOmicsWaiters waiters() { if (waiters == null) { synchronized (this) { if (waiters == null) { waiters = new AmazonOmicsWaiters(this); } } } return waiters; } @Override public void shutdown() { super.shutdown(); if (waiters != null) { waiters.shutdown(); } } }