AWS SDK for C++  0.12.9
AWS SDK for C++
TransferContext.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #pragma once
17 
19 
20 namespace Aws
21 {
22 
23 namespace Transfer
24 {
25  class UploadFileRequest;
26  class DownloadFileRequest;
27 
29  {
30  public:
31 
32  UploadFileContext(std::shared_ptr<UploadFileRequest> uploadRequest);
33 
34  std::shared_ptr<UploadFileRequest> GetUploadRequest() const { return m_request; }
35 
36  private:
37 
38  std::shared_ptr<UploadFileRequest> m_request;
39 
40  };
41 
43  {
44  public:
45 
46  DownloadFileContext(std::shared_ptr<DownloadFileRequest> downloadRequest);
47 
48  std::shared_ptr<DownloadFileRequest> GetDownloadRequest() const { return m_request; }
49 
50  private:
51 
52  std::shared_ptr<DownloadFileRequest> m_request;
53 
54  };
55 
56 }
57 } //namespace AWS
std::shared_ptr< UploadFileRequest > GetUploadRequest() const
UploadFileContext(std::shared_ptr< UploadFileRequest > uploadRequest)
std::shared_ptr< DownloadFileRequest > GetDownloadRequest() const
JSON (JavaScript Object Notation).