AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListRulesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/RuleSummary.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace WAF {
24namespace Model {
26 public:
27 AWS_WAF_API ListRulesResult() = default;
30
32
39 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
40 template <typename NextMarkerT = Aws::String>
41 void SetNextMarker(NextMarkerT&& value) {
42 m_nextMarkerHasBeenSet = true;
43 m_nextMarker = std::forward<NextMarkerT>(value);
44 }
45 template <typename NextMarkerT = Aws::String>
46 ListRulesResult& WithNextMarker(NextMarkerT&& value) {
47 SetNextMarker(std::forward<NextMarkerT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<RuleSummary>& GetRules() const { return m_rules; }
57 template <typename RulesT = Aws::Vector<RuleSummary>>
58 void SetRules(RulesT&& value) {
59 m_rulesHasBeenSet = true;
60 m_rules = std::forward<RulesT>(value);
61 }
62 template <typename RulesT = Aws::Vector<RuleSummary>>
63 ListRulesResult& WithRules(RulesT&& value) {
64 SetRules(std::forward<RulesT>(value));
65 return *this;
66 }
67 template <typename RulesT = RuleSummary>
68 ListRulesResult& AddRules(RulesT&& value) {
69 m_rulesHasBeenSet = true;
70 m_rules.emplace_back(std::forward<RulesT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
84 ListRulesResult& WithRequestId(RequestIdT&& value) {
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_nextMarker;
91
93
94 Aws::String m_requestId;
95 bool m_nextMarkerHasBeenSet = false;
96 bool m_rulesHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace WAF
102} // namespace Aws
const Aws::String & GetRequestId() const
AWS_WAF_API ListRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextMarker(NextMarkerT &&value)
ListRulesResult & AddRules(RulesT &&value)
ListRulesResult & WithNextMarker(NextMarkerT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetNextMarker() const
AWS_WAF_API ListRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_WAF_API ListRulesResult()=default
const Aws::Vector< RuleSummary > & GetRules() const
ListRulesResult & WithRules(RulesT &&value)
ListRulesResult & WithRequestId(RequestIdT &&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