AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
UpdateArchiveRuleRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/Criterion.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AccessAnalyzer {
18namespace Model {
19
26 public:
27 AWS_ACCESSANALYZER_API UpdateArchiveRuleRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateArchiveRule"; }
34
35 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAnalyzerName() const { return m_analyzerName; }
42 inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
43 template <typename AnalyzerNameT = Aws::String>
44 void SetAnalyzerName(AnalyzerNameT&& value) {
45 m_analyzerNameHasBeenSet = true;
46 m_analyzerName = std::forward<AnalyzerNameT>(value);
47 }
48 template <typename AnalyzerNameT = Aws::String>
50 SetAnalyzerName(std::forward<AnalyzerNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRuleName() const { return m_ruleName; }
60 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
61 template <typename RuleNameT = Aws::String>
62 void SetRuleName(RuleNameT&& value) {
63 m_ruleNameHasBeenSet = true;
64 m_ruleName = std::forward<RuleNameT>(value);
65 }
66 template <typename RuleNameT = Aws::String>
68 SetRuleName(std::forward<RuleNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const { return m_filter; }
79 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
80 template <typename FilterT = Aws::Map<Aws::String, Criterion>>
81 void SetFilter(FilterT&& value) {
82 m_filterHasBeenSet = true;
83 m_filter = std::forward<FilterT>(value);
84 }
85 template <typename FilterT = Aws::Map<Aws::String, Criterion>>
87 SetFilter(std::forward<FilterT>(value));
88 return *this;
89 }
90 template <typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
91 UpdateArchiveRuleRequest& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
92 m_filterHasBeenSet = true;
93 m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetClientToken() const { return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 template <typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) {
106 m_clientTokenHasBeenSet = true;
107 m_clientToken = std::forward<ClientTokenT>(value);
108 }
109 template <typename ClientTokenT = Aws::String>
111 SetClientToken(std::forward<ClientTokenT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_analyzerName;
117 bool m_analyzerNameHasBeenSet = false;
118
119 Aws::String m_ruleName;
120 bool m_ruleNameHasBeenSet = false;
121
123 bool m_filterHasBeenSet = false;
124
126 bool m_clientTokenHasBeenSet = true;
127};
128
129} // namespace Model
130} // namespace AccessAnalyzer
131} // namespace Aws
UpdateArchiveRuleRequest & WithRuleName(RuleNameT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_ACCESSANALYZER_API UpdateArchiveRuleRequest()=default
const Aws::Map< Aws::String, Criterion > & GetFilter() const
UpdateArchiveRuleRequest & AddFilter(FilterKeyT &&key, FilterValueT &&value)
UpdateArchiveRuleRequest & WithClientToken(ClientTokenT &&value)
UpdateArchiveRuleRequest & WithFilter(FilterT &&value)
UpdateArchiveRuleRequest & WithAnalyzerName(AnalyzerNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String