AWS SDK for C++  1.9.108
AWS SDK for C++
CustomRequestHandling.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
40  {
41  public:
46 
47 
57  inline const Aws::Vector<CustomHTTPHeader>& GetInsertHeaders() const{ return m_insertHeaders; }
58 
68  inline bool InsertHeadersHasBeenSet() const { return m_insertHeadersHasBeenSet; }
69 
79  inline void SetInsertHeaders(const Aws::Vector<CustomHTTPHeader>& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders = value; }
80 
90  inline void SetInsertHeaders(Aws::Vector<CustomHTTPHeader>&& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders = std::move(value); }
91 
101  inline CustomRequestHandling& WithInsertHeaders(const Aws::Vector<CustomHTTPHeader>& value) { SetInsertHeaders(value); return *this;}
102 
112  inline CustomRequestHandling& WithInsertHeaders(Aws::Vector<CustomHTTPHeader>&& value) { SetInsertHeaders(std::move(value)); return *this;}
113 
123  inline CustomRequestHandling& AddInsertHeaders(const CustomHTTPHeader& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders.push_back(value); return *this; }
124 
134  inline CustomRequestHandling& AddInsertHeaders(CustomHTTPHeader&& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders.push_back(std::move(value)); return *this; }
135 
136  private:
137 
138  Aws::Vector<CustomHTTPHeader> m_insertHeaders;
139  bool m_insertHeadersHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace WAFV2
144 } // namespace Aws
CustomHTTPHeader.h
Aws::WAFV2::Model::CustomRequestHandling::GetInsertHeaders
const Aws::Vector< CustomHTTPHeader > & GetInsertHeaders() const
Definition: CustomRequestHandling.h:57
Aws::WAFV2::Model::CustomRequestHandling::AddInsertHeaders
CustomRequestHandling & AddInsertHeaders(const CustomHTTPHeader &value)
Definition: CustomRequestHandling.h:123
Aws::WAFV2::Model::CustomRequestHandling::CustomRequestHandling
CustomRequestHandling(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::CustomRequestHandling::AddInsertHeaders
CustomRequestHandling & AddInsertHeaders(CustomHTTPHeader &&value)
Definition: CustomRequestHandling.h:134
Aws::WAFV2::Model::CustomRequestHandling::operator=
CustomRequestHandling & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::CustomRequestHandling
Definition: CustomRequestHandling.h:40
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AWSVector.h
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CustomRequestHandling::SetInsertHeaders
void SetInsertHeaders(const Aws::Vector< CustomHTTPHeader > &value)
Definition: CustomRequestHandling.h:79
Aws::WAFV2::Model::CustomRequestHandling::CustomRequestHandling
CustomRequestHandling()
Aws::WAFV2::Model::CustomRequestHandling::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::CustomRequestHandling::WithInsertHeaders
CustomRequestHandling & WithInsertHeaders(Aws::Vector< CustomHTTPHeader > &&value)
Definition: CustomRequestHandling.h:112
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::CustomHTTPHeader
Definition: CustomHTTPHeader.h:34
Aws::WAFV2::Model::CustomRequestHandling::InsertHeadersHasBeenSet
bool InsertHeadersHasBeenSet() const
Definition: CustomRequestHandling.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CustomRequestHandling::WithInsertHeaders
CustomRequestHandling & WithInsertHeaders(const Aws::Vector< CustomHTTPHeader > &value)
Definition: CustomRequestHandling.h:101
Aws::WAFV2::Model::CustomRequestHandling::SetInsertHeaders
void SetInsertHeaders(Aws::Vector< CustomHTTPHeader > &&value)
Definition: CustomRequestHandling.h:90