AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsWafv2CustomResponseDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsWafv2CustomHttpHeader.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
32 public:
33 AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetCustomResponseBodyKey() const { return m_customResponseBodyKey; }
45 inline bool CustomResponseBodyKeyHasBeenSet() const { return m_customResponseBodyKeyHasBeenSet; }
46 template <typename CustomResponseBodyKeyT = Aws::String>
47 void SetCustomResponseBodyKey(CustomResponseBodyKeyT&& value) {
48 m_customResponseBodyKeyHasBeenSet = true;
49 m_customResponseBodyKey = std::forward<CustomResponseBodyKeyT>(value);
50 }
51 template <typename CustomResponseBodyKeyT = Aws::String>
53 SetCustomResponseBodyKey(std::forward<CustomResponseBodyKeyT>(value));
54 return *this;
55 }
57
59
65 inline int GetResponseCode() const { return m_responseCode; }
66 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
67 inline void SetResponseCode(int value) {
68 m_responseCodeHasBeenSet = true;
69 m_responseCode = value;
70 }
72 SetResponseCode(value);
73 return *this;
74 }
76
78
81 inline const Aws::Vector<AwsWafv2CustomHttpHeader>& GetResponseHeaders() const { return m_responseHeaders; }
82 inline bool ResponseHeadersHasBeenSet() const { return m_responseHeadersHasBeenSet; }
83 template <typename ResponseHeadersT = Aws::Vector<AwsWafv2CustomHttpHeader>>
84 void SetResponseHeaders(ResponseHeadersT&& value) {
85 m_responseHeadersHasBeenSet = true;
86 m_responseHeaders = std::forward<ResponseHeadersT>(value);
87 }
88 template <typename ResponseHeadersT = Aws::Vector<AwsWafv2CustomHttpHeader>>
90 SetResponseHeaders(std::forward<ResponseHeadersT>(value));
91 return *this;
92 }
93 template <typename ResponseHeadersT = AwsWafv2CustomHttpHeader>
95 m_responseHeadersHasBeenSet = true;
96 m_responseHeaders.emplace_back(std::forward<ResponseHeadersT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_customResponseBodyKey;
102
103 int m_responseCode{0};
104
106 bool m_customResponseBodyKeyHasBeenSet = false;
107 bool m_responseCodeHasBeenSet = false;
108 bool m_responseHeadersHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SecurityHub
113} // namespace Aws
AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2CustomResponseDetails & AddResponseHeaders(ResponseHeadersT &&value)
AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafv2CustomResponseDetails & WithCustomResponseBodyKey(CustomResponseBodyKeyT &&value)
const Aws::Vector< AwsWafv2CustomHttpHeader > & GetResponseHeaders() const
AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails()=default
AwsWafv2CustomResponseDetails & WithResponseHeaders(ResponseHeadersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue