AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CustomRequestHandling.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/CustomHTTPHeader.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
36 public:
37 AWS_WAFV2_API CustomRequestHandling() = default;
40 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
50 inline const Aws::Vector<CustomHTTPHeader>& GetInsertHeaders() const { return m_insertHeaders; }
51 inline bool InsertHeadersHasBeenSet() const { return m_insertHeadersHasBeenSet; }
52 template <typename InsertHeadersT = Aws::Vector<CustomHTTPHeader>>
53 void SetInsertHeaders(InsertHeadersT&& value) {
54 m_insertHeadersHasBeenSet = true;
55 m_insertHeaders = std::forward<InsertHeadersT>(value);
56 }
57 template <typename InsertHeadersT = Aws::Vector<CustomHTTPHeader>>
58 CustomRequestHandling& WithInsertHeaders(InsertHeadersT&& value) {
59 SetInsertHeaders(std::forward<InsertHeadersT>(value));
60 return *this;
61 }
62 template <typename InsertHeadersT = CustomHTTPHeader>
63 CustomRequestHandling& AddInsertHeaders(InsertHeadersT&& value) {
64 m_insertHeadersHasBeenSet = true;
65 m_insertHeaders.emplace_back(std::forward<InsertHeadersT>(value));
66 return *this;
67 }
69 private:
70 Aws::Vector<CustomHTTPHeader> m_insertHeaders;
71 bool m_insertHeadersHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace WAFV2
76} // namespace Aws
const Aws::Vector< CustomHTTPHeader > & GetInsertHeaders() const
AWS_WAFV2_API CustomRequestHandling(Aws::Utils::Json::JsonView jsonValue)
CustomRequestHandling & AddInsertHeaders(InsertHeadersT &&value)
void SetInsertHeaders(InsertHeadersT &&value)
AWS_WAFV2_API CustomRequestHandling()=default
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
CustomRequestHandling & WithInsertHeaders(InsertHeadersT &&value)
AWS_WAFV2_API CustomRequestHandling & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue