AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlacierRequest.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/core/endpoint/AWSEndpoint.h>
9#include <aws/core/AmazonSerializableWebServiceRequest.h>
10#include <aws/core/utils/UnreferencedParam.h>
11#include <aws/core/http/HttpRequest.h>
12#include <aws/core/AmazonStreamingWebServiceRequest.h>
13
14namespace Aws
15{
16namespace Glacier
17{
19 {
20 public:
23
24 virtual ~GlacierRequest () {}
25
26 void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
27
29 {
30 auto headers = GetRequestSpecificHeaders();
31
32 if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
33 {
35 }
36 headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2012-06-01"));
37 headers.emplace(Aws::Http::HeaderValuePair("x-amz-glacier-version", "2012-06-01"));
38
39 return headers;
40 }
41
42 protected:
44
45 };
46
48
49} // namespace Glacier
50} // namespace Aws
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Aws::Endpoint::EndpointParameters EndpointParameters
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Aws::Http::HeaderValueCollection GetHeaders() const override
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
Aws::AmazonStreamingWebServiceRequest StreamingGlacierRequest
std::pair< Aws::String, Aws::String > HeaderValuePair
AWS_CORE_API const char API_VERSION_HEADER[]
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
static const char JSON_CONTENT_TYPE[]