AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCustomResponseBodyKey(const Aws::String& value) { m_customResponseBodyKeyHasBeenSet = true; m_customResponseBodyKey = value; }
53 inline void SetCustomResponseBodyKey(Aws::String&& value) { m_customResponseBodyKeyHasBeenSet = true; m_customResponseBodyKey = std::move(value); }
54 inline void SetCustomResponseBodyKey(const char* value) { m_customResponseBodyKeyHasBeenSet = true; m_customResponseBodyKey.assign(value); }
57 inline AwsWafv2CustomResponseDetails& WithCustomResponseBodyKey(const char* value) { SetCustomResponseBodyKey(value); return *this;}
59
61
67 inline int GetResponseCode() const{ return m_responseCode; }
68 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
69 inline void SetResponseCode(int value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
70 inline AwsWafv2CustomResponseDetails& WithResponseCode(int value) { SetResponseCode(value); return *this;}
72
74
77 inline const Aws::Vector<AwsWafv2CustomHttpHeader>& GetResponseHeaders() const{ return m_responseHeaders; }
78 inline bool ResponseHeadersHasBeenSet() const { return m_responseHeadersHasBeenSet; }
79 inline void SetResponseHeaders(const Aws::Vector<AwsWafv2CustomHttpHeader>& value) { m_responseHeadersHasBeenSet = true; m_responseHeaders = value; }
80 inline void SetResponseHeaders(Aws::Vector<AwsWafv2CustomHttpHeader>&& value) { m_responseHeadersHasBeenSet = true; m_responseHeaders = std::move(value); }
83 inline AwsWafv2CustomResponseDetails& AddResponseHeaders(const AwsWafv2CustomHttpHeader& value) { m_responseHeadersHasBeenSet = true; m_responseHeaders.push_back(value); return *this; }
84 inline AwsWafv2CustomResponseDetails& AddResponseHeaders(AwsWafv2CustomHttpHeader&& value) { m_responseHeadersHasBeenSet = true; m_responseHeaders.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_customResponseBodyKey;
89 bool m_customResponseBodyKeyHasBeenSet = false;
90
91 int m_responseCode;
92 bool m_responseCodeHasBeenSet = false;
93
95 bool m_responseHeadersHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SecurityHub
100} // namespace Aws
void SetResponseHeaders(const Aws::Vector< AwsWafv2CustomHttpHeader > &value)
AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2CustomResponseDetails & WithResponseHeaders(Aws::Vector< AwsWafv2CustomHttpHeader > &&value)
AwsWafv2CustomResponseDetails & WithResponseHeaders(const Aws::Vector< AwsWafv2CustomHttpHeader > &value)
AwsWafv2CustomResponseDetails & WithCustomResponseBodyKey(Aws::String &&value)
AwsWafv2CustomResponseDetails & WithCustomResponseBodyKey(const Aws::String &value)
AwsWafv2CustomResponseDetails & WithCustomResponseBodyKey(const char *value)
AWS_SECURITYHUB_API AwsWafv2CustomResponseDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResponseHeaders(Aws::Vector< AwsWafv2CustomHttpHeader > &&value)
const Aws::Vector< AwsWafv2CustomHttpHeader > & GetResponseHeaders() const
AwsWafv2CustomResponseDetails & AddResponseHeaders(const AwsWafv2CustomHttpHeader &value)
AwsWafv2CustomResponseDetails & AddResponseHeaders(AwsWafv2CustomHttpHeader &&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