AWS SDK for C++  1.9.1
AWS SDK for C++
CreateArchiveRuleRequest.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 "CreateArchiveRule"; }
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 CreateArchiveRuleRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
70 
74  inline CreateArchiveRuleRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
75 
79  inline CreateArchiveRuleRequest& 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 CreateArchiveRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
111 
115  inline CreateArchiveRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
116 
120  inline CreateArchiveRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
121 
122 
126  inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
127 
131  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
132 
136  inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
137 
141  inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
142 
146  inline CreateArchiveRuleRequest& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
147 
151  inline CreateArchiveRuleRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
152 
156  inline CreateArchiveRuleRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
157 
161  inline CreateArchiveRuleRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
162 
166  inline CreateArchiveRuleRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
167 
171  inline CreateArchiveRuleRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
172 
176  inline CreateArchiveRuleRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
177 
181  inline CreateArchiveRuleRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
182 
183 
187  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
188 
192  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
193 
197  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
198 
202  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
203 
207  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
208 
212  inline CreateArchiveRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
213 
217  inline CreateArchiveRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
218 
222  inline CreateArchiveRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
223 
224  private:
225 
226  Aws::String m_analyzerName;
227  bool m_analyzerNameHasBeenSet;
228 
229  Aws::String m_clientToken;
230  bool m_clientTokenHasBeenSet;
231 
233  bool m_filterHasBeenSet;
234 
235  Aws::String m_ruleName;
236  bool m_ruleNameHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace AccessAnalyzer
241 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithRuleName
CreateArchiveRuleRequest & WithRuleName(const Aws::String &value)
Definition: CreateArchiveRuleRequest.h:212
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetAnalyzerName
void SetAnalyzerName(const Aws::String &value)
Definition: CreateArchiveRuleRequest.h:54
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: CreateArchiveRuleRequest.h:131
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithFilter
CreateArchiveRuleRequest & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: CreateArchiveRuleRequest.h:151
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: CreateArchiveRuleRequest.h:187
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: CreateArchiveRuleRequest.h:197
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateArchiveRuleRequest.h:105
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithRuleName
CreateArchiveRuleRequest & WithRuleName(Aws::String &&value)
Definition: CreateArchiveRuleRequest.h:217
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithRuleName
CreateArchiveRuleRequest & WithRuleName(const char *value)
Definition: CreateArchiveRuleRequest.h:222
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithAnalyzerName
CreateArchiveRuleRequest & WithAnalyzerName(const char *value)
Definition: CreateArchiveRuleRequest.h:79
Aws::AccessAnalyzer::Model::Criterion
Definition: Criterion.h:34
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateArchiveRuleRequest.h:100
Criterion.h
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AddFilter
CreateArchiveRuleRequest & AddFilter(Aws::String &&key, const Criterion &value)
Definition: CreateArchiveRuleRequest.h:161
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithFilter
CreateArchiveRuleRequest & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: CreateArchiveRuleRequest.h:146
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SerializePayload
Aws::String SerializePayload() const override
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithClientToken
CreateArchiveRuleRequest & WithClientToken(Aws::String &&value)
Definition: CreateArchiveRuleRequest.h:115
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::GetAnalyzerName
const Aws::String & GetAnalyzerName() const
Definition: CreateArchiveRuleRequest.h:44
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetAnalyzerName
void SetAnalyzerName(Aws::String &&value)
Definition: CreateArchiveRuleRequest.h:59
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetFilter
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: CreateArchiveRuleRequest.h:141
AWSString.h
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: CreateArchiveRuleRequest.h:192
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetFilter
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: CreateArchiveRuleRequest.h:136
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithAnalyzerName
CreateArchiveRuleRequest & WithAnalyzerName(Aws::String &&value)
Definition: CreateArchiveRuleRequest.h:74
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AddFilter
CreateArchiveRuleRequest & AddFilter(const char *key, const Criterion &value)
Definition: CreateArchiveRuleRequest.h:181
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::GetFilter
const Aws::Map< Aws::String, Criterion > & GetFilter() const
Definition: CreateArchiveRuleRequest.h:126
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithClientToken
CreateArchiveRuleRequest & WithClientToken(const Aws::String &value)
Definition: CreateArchiveRuleRequest.h:110
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithAnalyzerName
CreateArchiveRuleRequest & WithAnalyzerName(const Aws::String &value)
Definition: CreateArchiveRuleRequest.h:69
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AddFilter
CreateArchiveRuleRequest & AddFilter(const char *key, Criterion &&value)
Definition: CreateArchiveRuleRequest.h:176
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateArchiveRuleRequest.h:95
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::WithClientToken
CreateArchiveRuleRequest & WithClientToken(const char *value)
Definition: CreateArchiveRuleRequest.h:120
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AnalyzerNameHasBeenSet
bool AnalyzerNameHasBeenSet() const
Definition: CreateArchiveRuleRequest.h:49
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AddFilter
CreateArchiveRuleRequest & AddFilter(const Aws::String &key, const Criterion &value)
Definition: CreateArchiveRuleRequest.h:156
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest
Definition: CreateArchiveRuleRequest.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetAnalyzerName
void SetAnalyzerName(const char *value)
Definition: CreateArchiveRuleRequest.h:64
UUID.h
AWSMap.h
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AddFilter
CreateArchiveRuleRequest & AddFilter(const Aws::String &key, Criterion &&value)
Definition: CreateArchiveRuleRequest.h:166
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: CreateArchiveRuleRequest.h:207
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateArchiveRuleRequest.h:90
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateArchiveRuleRequest.h:85
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::AddFilter
CreateArchiveRuleRequest & AddFilter(Aws::String &&key, Criterion &&value)
Definition: CreateArchiveRuleRequest.h:171
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::CreateArchiveRuleRequest
CreateArchiveRuleRequest()
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: CreateArchiveRuleRequest.h:202
Aws::AccessAnalyzer::Model::CreateArchiveRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateArchiveRuleRequest.h:36