AWS SDK for C++  1.9.156
AWS SDK for C++
EC2InstanceConnectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 
12 namespace Aws
13 {
14 namespace EC2InstanceConnect
15 {
17  {
18  public:
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, "2018-04-02"));
32  return headers;
33  }
34 
35  protected:
37 
38  };
39 
40 
41 } // namespace EC2InstanceConnect
42 } // namespace Aws
AWS_EC2INSTANCECONNECT_API
#define AWS_EC2INSTANCECONNECT_API
Definition: EC2InstanceConnect_EXPORTS.h:28
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::EC2InstanceConnect::EC2InstanceConnectRequest::GetRequestSpecificHeaders
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: EC2InstanceConnectRequest.h:36
Aws::Http::CONTENT_TYPE_HEADER
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
HttpRequest.h
EC2InstanceConnect_EXPORTS.h
Aws::Http::HeaderValuePair
std::pair< Aws::String, Aws::String > HeaderValuePair
Definition: HttpTypes.h:52
Aws::AMZN_JSON_CONTENT_TYPE_1_1
static const char AMZN_JSON_CONTENT_TYPE_1_1[]
Definition: AmazonSerializableWebServiceRequest.h:19
Aws::EC2InstanceConnect::EC2InstanceConnectRequest::~EC2InstanceConnectRequest
virtual ~EC2InstanceConnectRequest()
Definition: EC2InstanceConnectRequest.h:19
AWS_UNREFERENCED_PARAM
#define AWS_UNREFERENCED_PARAM(x)
Definition: UnreferencedParam.h:16
Aws
Definition: AccessManagementClient.h:15
Aws::EC2InstanceConnect::EC2InstanceConnectRequest::AddParametersToRequest
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Definition: EC2InstanceConnectRequest.h:21
UnreferencedParam.h
Aws::Http::API_VERSION_HEADER
AWS_CORE_API const char API_VERSION_HEADER[]
Aws::EC2InstanceConnect::EC2InstanceConnectRequest::GetHeaders
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: EC2InstanceConnectRequest.h:23
Aws::EC2InstanceConnect::EC2InstanceConnectRequest
Definition: EC2InstanceConnectRequest.h:17
AmazonSerializableWebServiceRequest.h