AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResponseInspectionJson.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 ResponseInspectionJson() = default;
44 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline const Aws::String& GetIdentifier() const { return m_identifier; }
55 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
56 template<typename IdentifierT = Aws::String>
57 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
58 template<typename IdentifierT = Aws::String>
59 ResponseInspectionJson& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
61
63
70 inline const Aws::Vector<Aws::String>& GetSuccessValues() const { return m_successValues; }
71 inline bool SuccessValuesHasBeenSet() const { return m_successValuesHasBeenSet; }
72 template<typename SuccessValuesT = Aws::Vector<Aws::String>>
73 void SetSuccessValues(SuccessValuesT&& value) { m_successValuesHasBeenSet = true; m_successValues = std::forward<SuccessValuesT>(value); }
74 template<typename SuccessValuesT = Aws::Vector<Aws::String>>
75 ResponseInspectionJson& WithSuccessValues(SuccessValuesT&& value) { SetSuccessValues(std::forward<SuccessValuesT>(value)); return *this;}
76 template<typename SuccessValuesT = Aws::String>
77 ResponseInspectionJson& AddSuccessValues(SuccessValuesT&& value) { m_successValuesHasBeenSet = true; m_successValues.emplace_back(std::forward<SuccessValuesT>(value)); return *this; }
79
81
88 inline const Aws::Vector<Aws::String>& GetFailureValues() const { return m_failureValues; }
89 inline bool FailureValuesHasBeenSet() const { return m_failureValuesHasBeenSet; }
90 template<typename FailureValuesT = Aws::Vector<Aws::String>>
91 void SetFailureValues(FailureValuesT&& value) { m_failureValuesHasBeenSet = true; m_failureValues = std::forward<FailureValuesT>(value); }
92 template<typename FailureValuesT = Aws::Vector<Aws::String>>
93 ResponseInspectionJson& WithFailureValues(FailureValuesT&& value) { SetFailureValues(std::forward<FailureValuesT>(value)); return *this;}
94 template<typename FailureValuesT = Aws::String>
95 ResponseInspectionJson& AddFailureValues(FailureValuesT&& value) { m_failureValuesHasBeenSet = true; m_failureValues.emplace_back(std::forward<FailureValuesT>(value)); return *this; }
97 private:
98
99 Aws::String m_identifier;
100 bool m_identifierHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_successValues;
103 bool m_successValuesHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_failureValues;
106 bool m_failureValuesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace WAFV2
111} // namespace Aws
AWS_WAFV2_API ResponseInspectionJson(Aws::Utils::Json::JsonView jsonValue)
ResponseInspectionJson & AddFailureValues(FailureValuesT &&value)
ResponseInspectionJson & AddSuccessValues(SuccessValuesT &&value)
ResponseInspectionJson & WithSuccessValues(SuccessValuesT &&value)
const Aws::Vector< Aws::String > & GetFailureValues() const
ResponseInspectionJson & WithFailureValues(FailureValuesT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ResponseInspectionJson()=default
ResponseInspectionJson & WithIdentifier(IdentifierT &&value)
AWS_WAFV2_API ResponseInspectionJson & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSuccessValues() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue