AWS SDK for C++  0.12.9
AWS SDK for C++
HTTPHeader.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 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace WAF
29 {
30 namespace Model
31 {
32 
41  {
42  public:
43  HTTPHeader();
44  HTTPHeader(const Aws::Utils::Json::JsonValue& jsonValue);
45  HTTPHeader& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline HTTPHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline HTTPHeader& WithName(Aws::String&& value) { SetName(value); return *this;}
77 
81  inline HTTPHeader& WithName(const char* value) { SetName(value); return *this;}
82 
86  inline const Aws::String& GetValue() const{ return m_value; }
87 
91  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
92 
96  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
97 
101  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
102 
106  inline HTTPHeader& WithValue(const Aws::String& value) { SetValue(value); return *this;}
107 
111  inline HTTPHeader& WithValue(Aws::String&& value) { SetValue(value); return *this;}
112 
116  inline HTTPHeader& WithValue(const char* value) { SetValue(value); return *this;}
117 
118  private:
119  Aws::String m_name;
120  bool m_nameHasBeenSet;
121  Aws::String m_value;
122  bool m_valueHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace WAF
127 } // namespace Aws
HTTPHeader & WithName(const Aws::String &value)
Definition: HTTPHeader.h:71
const Aws::String & GetValue() const
Definition: HTTPHeader.h:86
HTTPHeader & WithValue(const Aws::String &value)
Definition: HTTPHeader.h:106
void SetName(const char *value)
Definition: HTTPHeader.h:66
HTTPHeader & WithName(Aws::String &&value)
Definition: HTTPHeader.h:76
void SetValue(const Aws::String &value)
Definition: HTTPHeader.h:91
void SetName(Aws::String &&value)
Definition: HTTPHeader.h:61
void SetValue(const char *value)
Definition: HTTPHeader.h:101
void SetValue(Aws::String &&value)
Definition: HTTPHeader.h:96
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
HTTPHeader & WithName(const char *value)
Definition: HTTPHeader.h:81
const Aws::String & GetName() const
Definition: HTTPHeader.h:51
HTTPHeader & WithValue(const char *value)
Definition: HTTPHeader.h:116
void SetName(const Aws::String &value)
Definition: HTTPHeader.h:56
HTTPHeader & WithValue(Aws::String &&value)
Definition: HTTPHeader.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).