AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResponseInspectionHeader.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
38 {
39 public:
40 AWS_WAFV2_API ResponseInspectionHeader() = default;
43 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 ResponseInspectionHeader& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
69 inline const Aws::Vector<Aws::String>& GetSuccessValues() const { return m_successValues; }
70 inline bool SuccessValuesHasBeenSet() const { return m_successValuesHasBeenSet; }
71 template<typename SuccessValuesT = Aws::Vector<Aws::String>>
72 void SetSuccessValues(SuccessValuesT&& value) { m_successValuesHasBeenSet = true; m_successValues = std::forward<SuccessValuesT>(value); }
73 template<typename SuccessValuesT = Aws::Vector<Aws::String>>
74 ResponseInspectionHeader& WithSuccessValues(SuccessValuesT&& value) { SetSuccessValues(std::forward<SuccessValuesT>(value)); return *this;}
75 template<typename SuccessValuesT = Aws::String>
76 ResponseInspectionHeader& AddSuccessValues(SuccessValuesT&& value) { m_successValuesHasBeenSet = true; m_successValues.emplace_back(std::forward<SuccessValuesT>(value)); return *this; }
78
80
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 ResponseInspectionHeader& WithFailureValues(FailureValuesT&& value) { SetFailureValues(std::forward<FailureValuesT>(value)); return *this;}
94 template<typename FailureValuesT = Aws::String>
95 ResponseInspectionHeader& AddFailureValues(FailureValuesT&& value) { m_failureValuesHasBeenSet = true; m_failureValues.emplace_back(std::forward<FailureValuesT>(value)); return *this; }
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = 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
ResponseInspectionHeader & WithFailureValues(FailureValuesT &&value)
ResponseInspectionHeader & WithSuccessValues(SuccessValuesT &&value)
const Aws::Vector< Aws::String > & GetFailureValues() const
AWS_WAFV2_API ResponseInspectionHeader()=default
ResponseInspectionHeader & AddFailureValues(FailureValuesT &&value)
ResponseInspectionHeader & WithName(NameT &&value)
AWS_WAFV2_API ResponseInspectionHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSuccessValues() const
AWS_WAFV2_API ResponseInspectionHeader(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseInspectionHeader & AddSuccessValues(SuccessValuesT &&value)
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