AWS SDK for C++  0.12.9
AWS SDK for C++
AmazonSerializableWebServiceRequest.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010-2016 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 
18 #include <aws/core/Core_EXPORTS.h>
24 
25 namespace Aws
26 {
27  static const char* JSON_CONTENT_TYPE = "application/json";
28  static const char* AMZN_JSON_CONTENT_TYPE_1_0 = "application/x-amz-json-1.0";
29  static const char* AMZN_JSON_CONTENT_TYPE_1_1 = "application/x-amz-json-1.1";
30  static const char* FORM_CONTENT_TYPE = "application/x-www-form-urlencoded";
31  static const char* AMZN_XML_CONTENT_TYPE = "application/xml";
32 
38  {
39  public:
41  {
42  //prevent unreferenced var warnings
43  //for these values.
44  AWS_UNREFERENCED_PARAM(JSON_CONTENT_TYPE);
45  AWS_UNREFERENCED_PARAM(AMZN_JSON_CONTENT_TYPE_1_0);
46  AWS_UNREFERENCED_PARAM(AMZN_JSON_CONTENT_TYPE_1_1);
47  AWS_UNREFERENCED_PARAM(FORM_CONTENT_TYPE);
48  AWS_UNREFERENCED_PARAM(AMZN_XML_CONTENT_TYPE);
49  }
50 
52 
56  virtual Aws::String SerializePayload() const = 0;
57 
61  std::shared_ptr<Aws::IOStream> GetBody() const override;
62  };
63 
64 } // namespace Aws
65 
static const char * AMZN_JSON_CONTENT_TYPE_1_1
static const char * FORM_CONTENT_TYPE
static const char * AMZN_XML_CONTENT_TYPE
static const char * JSON_CONTENT_TYPE
#define AWS_UNREFERENCED_PARAM(x)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CORE_API
Definition: Core_EXPORTS.h:30
static const char * AMZN_JSON_CONTENT_TYPE_1_0
JSON (JavaScript Object Notation).