AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseInspection.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/ResponseInspectionStatusCode.h>
9#include <aws/wafv2/model/ResponseInspectionHeader.h>
10#include <aws/wafv2/model/ResponseInspectionBodyContains.h>
11#include <aws/wafv2/model/ResponseInspectionJson.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2
25{
26namespace Model
27{
28
51 {
52 public:
53 AWS_WAFV2_API ResponseInspection();
56 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
64 inline const ResponseInspectionStatusCode& GetStatusCode() const{ return m_statusCode; }
65 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
66 inline void SetStatusCode(const ResponseInspectionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
67 inline void SetStatusCode(ResponseInspectionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
68 inline ResponseInspection& WithStatusCode(const ResponseInspectionStatusCode& value) { SetStatusCode(value); return *this;}
69 inline ResponseInspection& WithStatusCode(ResponseInspectionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
71
73
77 inline const ResponseInspectionHeader& GetHeader() const{ return m_header; }
78 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
79 inline void SetHeader(const ResponseInspectionHeader& value) { m_headerHasBeenSet = true; m_header = value; }
80 inline void SetHeader(ResponseInspectionHeader&& value) { m_headerHasBeenSet = true; m_header = std::move(value); }
81 inline ResponseInspection& WithHeader(const ResponseInspectionHeader& value) { SetHeader(value); return *this;}
82 inline ResponseInspection& WithHeader(ResponseInspectionHeader&& value) { SetHeader(std::move(value)); return *this;}
84
86
91 inline const ResponseInspectionBodyContains& GetBodyContains() const{ return m_bodyContains; }
92 inline bool BodyContainsHasBeenSet() const { return m_bodyContainsHasBeenSet; }
93 inline void SetBodyContains(const ResponseInspectionBodyContains& value) { m_bodyContainsHasBeenSet = true; m_bodyContains = value; }
94 inline void SetBodyContains(ResponseInspectionBodyContains&& value) { m_bodyContainsHasBeenSet = true; m_bodyContains = std::move(value); }
96 inline ResponseInspection& WithBodyContains(ResponseInspectionBodyContains&& value) { SetBodyContains(std::move(value)); return *this;}
98
100
105 inline const ResponseInspectionJson& GetJson() const{ return m_json; }
106 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
107 inline void SetJson(const ResponseInspectionJson& value) { m_jsonHasBeenSet = true; m_json = value; }
108 inline void SetJson(ResponseInspectionJson&& value) { m_jsonHasBeenSet = true; m_json = std::move(value); }
109 inline ResponseInspection& WithJson(const ResponseInspectionJson& value) { SetJson(value); return *this;}
110 inline ResponseInspection& WithJson(ResponseInspectionJson&& value) { SetJson(std::move(value)); return *this;}
112 private:
113
114 ResponseInspectionStatusCode m_statusCode;
115 bool m_statusCodeHasBeenSet = false;
116
118 bool m_headerHasBeenSet = false;
119
120 ResponseInspectionBodyContains m_bodyContains;
121 bool m_bodyContainsHasBeenSet = false;
122
124 bool m_jsonHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace WAFV2
129} // namespace Aws
ResponseInspection & WithBodyContains(const ResponseInspectionBodyContains &value)
const ResponseInspectionStatusCode & GetStatusCode() const
ResponseInspection & WithJson(ResponseInspectionJson &&value)
ResponseInspection & WithJson(const ResponseInspectionJson &value)
void SetStatusCode(ResponseInspectionStatusCode &&value)
AWS_WAFV2_API ResponseInspection(Aws::Utils::Json::JsonView jsonValue)
ResponseInspection & WithStatusCode(const ResponseInspectionStatusCode &value)
void SetBodyContains(ResponseInspectionBodyContains &&value)
void SetJson(const ResponseInspectionJson &value)
void SetStatusCode(const ResponseInspectionStatusCode &value)
AWS_WAFV2_API ResponseInspection & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResponseInspectionHeader & GetHeader() const
ResponseInspection & WithStatusCode(ResponseInspectionStatusCode &&value)
void SetJson(ResponseInspectionJson &&value)
void SetBodyContains(const ResponseInspectionBodyContains &value)
void SetHeader(const ResponseInspectionHeader &value)
const ResponseInspectionJson & GetJson() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ResponseInspectionBodyContains & GetBodyContains() const
ResponseInspection & WithHeader(ResponseInspectionHeader &&value)
ResponseInspection & WithHeader(const ResponseInspectionHeader &value)
void SetHeader(ResponseInspectionHeader &&value)
ResponseInspection & WithBodyContains(ResponseInspectionBodyContains &&value)
Aws::Utils::Json::JsonValue JsonValue