AWS SDK for C++  1.9.103
AWS SDK for C++
SQSRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
11 
12 namespace Aws
13 {
14 namespace SQS
15 {
17  {
18  public:
19  virtual ~SQSRequest () {}
20 
21  void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
22 
24  {
25  auto headers = GetRequestSpecificHeaders();
26 
27  if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
28  {
30  }
31  headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2012-11-05"));
32  return headers;
33  }
34 
35  protected:
37 
38  };
39 
40 
41 } // namespace SQS
42 } // namespace Aws
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
Aws::Http::HeaderValuePair
std::pair< Aws::String, Aws::String > HeaderValuePair
Definition: HttpTypes.h:52
Aws::SQS::SQSRequest::~SQSRequest
virtual ~SQSRequest()
Definition: SQSRequest.h:19
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::SQS::SQSRequest::AddParametersToRequest
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Definition: SQSRequest.h:21
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
AWS_UNREFERENCED_PARAM
#define AWS_UNREFERENCED_PARAM(x)
Definition: UnreferencedParam.h:16
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::SQSRequest::GetRequestSpecificHeaders
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: SQSRequest.h:36
UnreferencedParam.h
Aws::FORM_CONTENT_TYPE
static const char FORM_CONTENT_TYPE[]
Definition: AmazonSerializableWebServiceRequest.h:20
Aws::Http::API_VERSION_HEADER
AWS_CORE_API const char API_VERSION_HEADER[]
Aws::SQS::SQSRequest::GetHeaders
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: SQSRequest.h:23
AmazonSerializableWebServiceRequest.h