/** * Construct a synchronous implementation of AWSMobile using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AWSMobile. */ @Override protected AWSMobile build(AwsSyncClientParams params) { return new AWSMobileClient(params); }
/** * <p> * Delets a project in AWS Mobile Hub. * </p> * * @param deleteProjectRequest * Request structure used to request a project be deleted. * @return Result of the DeleteProject operation returned by the service. * @throws InternalFailureException * The service has encountered an unexpected error condition which prevents it from servicing the request. * @throws ServiceUnavailableException * The service is temporarily unavailable. The request should be retried after some time delay. * @throws UnauthorizedException * Credentials of the caller are insufficient to authorize the request. * @throws TooManyRequestsException * Too many requests have been received for this AWS account in too short a time. The request should be * retried after some time delay. * @throws NotFoundException * No entity can be found with the specified identifier. * @sample AWSMobile.DeleteProject * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProject" target="_top">AWS API * Documentation</a> */ @Override public DeleteProjectResult deleteProject(DeleteProjectRequest request) { request = beforeClientExecution(request); return executeDeleteProject(request); }
@SdkInternalApi final CreateProjectResult executeCreateProject(CreateProjectRequest createProjectRequest) { ExecutionContext executionContext = createExecutionContext(createProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateProjectRequest> request = null; Response<CreateProjectResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Mobile"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler<AmazonWebServiceResponse<CreateProjectResult>> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } }
/** * <p> * Lists projects in AWS Mobile Hub. * </p> * * @param listProjectsRequest * Request structure used to request projects list in AWS Mobile Hub. * @return Result of the ListProjects operation returned by the service. * @throws InternalFailureException * The service has encountered an unexpected error condition which prevents it from servicing the request. * @throws ServiceUnavailableException * The service is temporarily unavailable. The request should be retried after some time delay. * @throws UnauthorizedException * Credentials of the caller are insufficient to authorize the request. * @throws TooManyRequestsException * Too many requests have been received for this AWS account in too short a time. The request should be * retried after some time delay. * @throws BadRequestException * The request cannot be processed because some parameter is not valid or the project state prevents the * operation from being performed. * @sample AWSMobile.ListProjects * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects" target="_top">AWS API * Documentation</a> */ @Override public ListProjectsResult listProjects(ListProjectsRequest request) { request = beforeClientExecution(request); return executeListProjects(request); }
request = beforeClientExecution(request); return executeDescribeProject(request);
/** * <p> * List all available bundles. * </p> * * @param listBundlesRequest * Request structure to request all available bundles. * @return Result of the ListBundles operation returned by the service. * @throws InternalFailureException * The service has encountered an unexpected error condition which prevents it from servicing the request. * @throws ServiceUnavailableException * The service is temporarily unavailable. The request should be retried after some time delay. * @throws UnauthorizedException * Credentials of the caller are insufficient to authorize the request. * @throws TooManyRequestsException * Too many requests have been received for this AWS account in too short a time. The request should be * retried after some time delay. * @throws BadRequestException * The request cannot be processed because some parameter is not valid or the project state prevents the * operation from being performed. * @sample AWSMobile.ListBundles * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles" target="_top">AWS API * Documentation</a> */ @Override public ListBundlesResult listBundles(ListBundlesRequest request) { request = beforeClientExecution(request); return executeListBundles(request); }
request = beforeClientExecution(request); return executeDescribeBundle(request);
request = beforeClientExecution(request); return executeExportBundle(request);
request = beforeClientExecution(request); return executeExportProject(request);
request = beforeClientExecution(request); return executeCreateProject(request);
request = beforeClientExecution(request); return executeUpdateProject(request);
/** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private <X, Y extends AmazonWebServiceRequest> Response<X> anonymousInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); }
/** * <p> * Lists projects in AWS Mobile Hub. * </p> * * @param listProjectsRequest * Request structure used to request projects list in AWS Mobile Hub. * @return Result of the ListProjects operation returned by the service. * @throws InternalFailureException * The service has encountered an unexpected error condition which prevents it from servicing the request. * @throws ServiceUnavailableException * The service is temporarily unavailable. The request should be retried after some time delay. * @throws UnauthorizedException * Credentials of the caller are insufficient to authorize the request. * @throws TooManyRequestsException * Too many requests have been received for this AWS account in too short a time. The request should be * retried after some time delay. * @throws BadRequestException * The request cannot be processed because some parameter is not valid or the project state prevents the * operation from being performed. * @sample AWSMobile.ListProjects * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects" target="_top">AWS API * Documentation</a> */ @Override public ListProjectsResult listProjects(ListProjectsRequest request) { request = beforeClientExecution(request); return executeListProjects(request); }
request = beforeClientExecution(request); return executeDescribeProject(request);
/** * <p> * List all available bundles. * </p> * * @param listBundlesRequest * Request structure to request all available bundles. * @return Result of the ListBundles operation returned by the service. * @throws InternalFailureException * The service has encountered an unexpected error condition which prevents it from servicing the request. * @throws ServiceUnavailableException * The service is temporarily unavailable. The request should be retried after some time delay. * @throws UnauthorizedException * Credentials of the caller are insufficient to authorize the request. * @throws TooManyRequestsException * Too many requests have been received for this AWS account in too short a time. The request should be * retried after some time delay. * @throws BadRequestException * The request cannot be processed because some parameter is not valid or the project state prevents the * operation from being performed. * @sample AWSMobile.ListBundles * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles" target="_top">AWS API * Documentation</a> */ @Override public ListBundlesResult listBundles(ListBundlesRequest request) { request = beforeClientExecution(request); return executeListBundles(request); }
request = beforeClientExecution(request); return executeDescribeBundle(request);
request = beforeClientExecution(request); return executeExportBundle(request);
request = beforeClientExecution(request); return executeExportProject(request);
request = beforeClientExecution(request); return executeCreateProject(request);
request = beforeClientExecution(request); return executeUpdateProject(request);