AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResponseInspectionBodyContains.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_WAFV2_API ResponseInspectionBodyContains() = default;
44 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
57 inline const Aws::Vector<Aws::String>& GetSuccessStrings() const { return m_successStrings; }
58 inline bool SuccessStringsHasBeenSet() const { return m_successStringsHasBeenSet; }
59 template<typename SuccessStringsT = Aws::Vector<Aws::String>>
60 void SetSuccessStrings(SuccessStringsT&& value) { m_successStringsHasBeenSet = true; m_successStrings = std::forward<SuccessStringsT>(value); }
61 template<typename SuccessStringsT = Aws::Vector<Aws::String>>
62 ResponseInspectionBodyContains& WithSuccessStrings(SuccessStringsT&& value) { SetSuccessStrings(std::forward<SuccessStringsT>(value)); return *this;}
63 template<typename SuccessStringsT = Aws::String>
64 ResponseInspectionBodyContains& AddSuccessStrings(SuccessStringsT&& value) { m_successStringsHasBeenSet = true; m_successStrings.emplace_back(std::forward<SuccessStringsT>(value)); return *this; }
66
68
75 inline const Aws::Vector<Aws::String>& GetFailureStrings() const { return m_failureStrings; }
76 inline bool FailureStringsHasBeenSet() const { return m_failureStringsHasBeenSet; }
77 template<typename FailureStringsT = Aws::Vector<Aws::String>>
78 void SetFailureStrings(FailureStringsT&& value) { m_failureStringsHasBeenSet = true; m_failureStrings = std::forward<FailureStringsT>(value); }
79 template<typename FailureStringsT = Aws::Vector<Aws::String>>
80 ResponseInspectionBodyContains& WithFailureStrings(FailureStringsT&& value) { SetFailureStrings(std::forward<FailureStringsT>(value)); return *this;}
81 template<typename FailureStringsT = Aws::String>
82 ResponseInspectionBodyContains& AddFailureStrings(FailureStringsT&& value) { m_failureStringsHasBeenSet = true; m_failureStrings.emplace_back(std::forward<FailureStringsT>(value)); return *this; }
84 private:
85
86 Aws::Vector<Aws::String> m_successStrings;
87 bool m_successStringsHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_failureStrings;
90 bool m_failureStringsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace WAFV2
95} // namespace Aws
const Aws::Vector< Aws::String > & GetSuccessStrings() const
ResponseInspectionBodyContains & AddFailureStrings(FailureStringsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseInspectionBodyContains & WithSuccessStrings(SuccessStringsT &&value)
AWS_WAFV2_API ResponseInspectionBodyContains & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API ResponseInspectionBodyContains(Aws::Utils::Json::JsonView jsonValue)
ResponseInspectionBodyContains & AddSuccessStrings(SuccessStringsT &&value)
const Aws::Vector< Aws::String > & GetFailureStrings() const
AWS_WAFV2_API ResponseInspectionBodyContains()=default
ResponseInspectionBodyContains & WithFailureStrings(FailureStringsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue