AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateArchiveRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace AccessAnalyzer
18 {
19 namespace Model
20 {
21 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateArchiveRule"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
45 
49  inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
50 
54  inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
55 
59  inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
60 
64  inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
65 
69  inline UpdateArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
70 
74  inline UpdateArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
75 
79  inline UpdateArchiveRuleRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
80 
81 
85  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
86 
90  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
91 
95  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
96 
100  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
101 
105  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
106 
110  inline UpdateArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
111 
115  inline UpdateArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
116 
120  inline UpdateArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
121 
122 
127  inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
128 
133  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
134 
139  inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
140 
145  inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
146 
151  inline UpdateArchiveRuleRequest& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
152 
157  inline UpdateArchiveRuleRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
158 
163  inline UpdateArchiveRuleRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
164 
169  inline UpdateArchiveRuleRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
170 
175  inline UpdateArchiveRuleRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
176 
181  inline UpdateArchiveRuleRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
182 
187  inline UpdateArchiveRuleRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
188 
193  inline UpdateArchiveRuleRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
194 
195 
199  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
200 
204  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
205 
209  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
210 
214  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
215 
219  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
220 
224  inline UpdateArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
225 
229  inline UpdateArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
230 
234  inline UpdateArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
235 
236  private:
237 
238  Aws::String m_analyzerName;
239  bool m_analyzerNameHasBeenSet;
240 
241  Aws::String m_clientToken;
242  bool m_clientTokenHasBeenSet;
243 
245  bool m_filterHasBeenSet;
246 
247  Aws::String m_ruleName;
248  bool m_ruleNameHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace AccessAnalyzer
253 } // namespace Aws
const Aws::Map< Aws::String, Criterion > & GetFilter() const
UpdateArchiveRuleRequest & WithRuleName(const Aws::String &value)
UpdateArchiveRuleRequest & WithAnalyzerName(Aws::String &&value)
UpdateArchiveRuleRequest & AddFilter(const Aws::String &key, Criterion &&value)
UpdateArchiveRuleRequest & AddFilter(Aws::String &&key, const Criterion &value)
UpdateArchiveRuleRequest & WithClientToken(const Aws::String &value)
UpdateArchiveRuleRequest & WithAnalyzerName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
virtual const char * GetServiceRequestName() const override
#define AWS_ACCESSANALYZER_API
UpdateArchiveRuleRequest & AddFilter(Aws::String &&key, Criterion &&value)
UpdateArchiveRuleRequest & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
UpdateArchiveRuleRequest & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
UpdateArchiveRuleRequest & WithClientToken(Aws::String &&value)
UpdateArchiveRuleRequest & WithClientToken(const char *value)
UpdateArchiveRuleRequest & AddFilter(const char *key, const Criterion &value)
UpdateArchiveRuleRequest & WithRuleName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
UpdateArchiveRuleRequest & AddFilter(const Aws::String &key, const Criterion &value)
UpdateArchiveRuleRequest & WithRuleName(const char *value)
UpdateArchiveRuleRequest & AddFilter(const char *key, Criterion &&value)
UpdateArchiveRuleRequest & WithAnalyzerName(const char *value)