AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafv2CustomResponseDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsWafv2CustomHttpHeader.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails() = default;
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetCustomResponseBodyKey() const { return m_customResponseBodyKey; }
51 inline bool CustomResponseBodyKeyHasBeenSet() const { return m_customResponseBodyKeyHasBeenSet; }
52 template<typename CustomResponseBodyKeyT = Aws::String>
53 void SetCustomResponseBodyKey(CustomResponseBodyKeyT&& value) { m_customResponseBodyKeyHasBeenSet = true; m_customResponseBodyKey = std::forward<CustomResponseBodyKeyT>(value); }
54 template<typename CustomResponseBodyKeyT = Aws::String>
55 AwsWafv2CustomResponseDetails& WithCustomResponseBodyKey(CustomResponseBodyKeyT&& value) { SetCustomResponseBodyKey(std::forward<CustomResponseBodyKeyT>(value)); return *this;}
57
59
65 inline int GetResponseCode() const { return m_responseCode; }
66 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
67 inline void SetResponseCode(int value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
68 inline AwsWafv2CustomResponseDetails& WithResponseCode(int value) { SetResponseCode(value); return *this;}
70
72
75 inline const Aws::Vector<AwsWafv2CustomHttpHeader>& GetResponseHeaders() const { return m_responseHeaders; }
76 inline bool ResponseHeadersHasBeenSet() const { return m_responseHeadersHasBeenSet; }
77 template<typename ResponseHeadersT = Aws::Vector<AwsWafv2CustomHttpHeader>>
78 void SetResponseHeaders(ResponseHeadersT&& value) { m_responseHeadersHasBeenSet = true; m_responseHeaders = std::forward<ResponseHeadersT>(value); }
79 template<typename ResponseHeadersT = Aws::Vector<AwsWafv2CustomHttpHeader>>
80 AwsWafv2CustomResponseDetails& WithResponseHeaders(ResponseHeadersT&& value) { SetResponseHeaders(std::forward<ResponseHeadersT>(value)); return *this;}
81 template<typename ResponseHeadersT = AwsWafv2CustomHttpHeader>
82 AwsWafv2CustomResponseDetails& AddResponseHeaders(ResponseHeadersT&& value) { m_responseHeadersHasBeenSet = true; m_responseHeaders.emplace_back(std::forward<ResponseHeadersT>(value)); return *this; }
84 private:
85
86 Aws::String m_customResponseBodyKey;
87 bool m_customResponseBodyKeyHasBeenSet = false;
88
89 int m_responseCode{0};
90 bool m_responseCodeHasBeenSet = false;
91
93 bool m_responseHeadersHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SecurityHub
98} // 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