AWS SDK for C++  1.9.104
AWS SDK for C++
GlacierRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 
13 namespace Aws
14 {
15 namespace Glacier
16 {
18  {
19  public:
20  virtual ~GlacierRequest () {}
21 
22  void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
23 
25  {
26  auto headers = GetRequestSpecificHeaders();
27 
28  if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
29  {
31  }
32  headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2012-06-01"));
33  headers.emplace(Aws::Http::HeaderValuePair("x-amz-glacier-version", "2012-06-01"));
34 
35  return headers;
36  }
37 
38  protected:
40 
41  };
42 
44 
45 } // namespace Glacier
46 } // namespace Aws
Aws::Glacier::GlacierRequest::GetHeaders
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: GlacierRequest.h:24
Aws::Glacier::StreamingGlacierRequest
Aws::AmazonStreamingWebServiceRequest StreamingGlacierRequest
Definition: GlacierRequest.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AmazonSerializableWebServiceRequest
Definition: AmazonSerializableWebServiceRequest.h:29
Aws::Http::HttpRequest
Definition: HttpRequest.h:73
Aws::Http::CONTENT_TYPE_HEADER
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
HttpRequest.h
AmazonStreamingWebServiceRequest.h
Aws::Http::HeaderValuePair
std::pair< Aws::String, Aws::String > HeaderValuePair
Definition: HttpTypes.h:52
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::GlacierRequest::AddParametersToRequest
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Definition: GlacierRequest.h:22
Aws::AMZN_JSON_CONTENT_TYPE_1_1
static const char AMZN_JSON_CONTENT_TYPE_1_1[]
Definition: AmazonSerializableWebServiceRequest.h:19
AWS_UNREFERENCED_PARAM
#define AWS_UNREFERENCED_PARAM(x)
Definition: UnreferencedParam.h:16
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws
Definition: AccessManagementClient.h:15
UnreferencedParam.h
Aws::Http::API_VERSION_HEADER
AWS_CORE_API const char API_VERSION_HEADER[]
Aws::Glacier::GlacierRequest::~GlacierRequest
virtual ~GlacierRequest()
Definition: GlacierRequest.h:20
AmazonSerializableWebServiceRequest.h
Aws::Glacier::GlacierRequest::GetRequestSpecificHeaders
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: GlacierRequest.h:39
Glacier_EXPORTS.h