AWS SDK for C++  1.9.2
AWS SDK for C++
CreateAnalyzerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace AccessAnalyzer
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateAnalyzer"; }
39 
40  Aws::String SerializePayload() const override;
41 
42 
46  inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
47 
51  inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
52 
56  inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
57 
61  inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
62 
66  inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
67 
71  inline CreateAnalyzerRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
72 
76  inline CreateAnalyzerRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
77 
81  inline CreateAnalyzerRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
82 
83 
89  inline const Aws::Vector<InlineArchiveRule>& GetArchiveRules() const{ return m_archiveRules; }
90 
96  inline bool ArchiveRulesHasBeenSet() const { return m_archiveRulesHasBeenSet; }
97 
103  inline void SetArchiveRules(const Aws::Vector<InlineArchiveRule>& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = value; }
104 
110  inline void SetArchiveRules(Aws::Vector<InlineArchiveRule>&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = std::move(value); }
111 
117  inline CreateAnalyzerRequest& WithArchiveRules(const Aws::Vector<InlineArchiveRule>& value) { SetArchiveRules(value); return *this;}
118 
124  inline CreateAnalyzerRequest& WithArchiveRules(Aws::Vector<InlineArchiveRule>&& value) { SetArchiveRules(std::move(value)); return *this;}
125 
131  inline CreateAnalyzerRequest& AddArchiveRules(const InlineArchiveRule& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(value); return *this; }
132 
138  inline CreateAnalyzerRequest& AddArchiveRules(InlineArchiveRule&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(std::move(value)); return *this; }
139 
140 
144  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
145 
149  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
150 
154  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
155 
159  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
160 
164  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
165 
169  inline CreateAnalyzerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
170 
174  inline CreateAnalyzerRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
175 
179  inline CreateAnalyzerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
180 
181 
185  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
186 
190  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 
195  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
196 
200  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
201 
205  inline CreateAnalyzerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
206 
210  inline CreateAnalyzerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
211 
215  inline CreateAnalyzerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
216 
220  inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
221 
225  inline CreateAnalyzerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
226 
230  inline CreateAnalyzerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
231 
235  inline CreateAnalyzerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
236 
240  inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
241 
245  inline CreateAnalyzerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
246 
247 
253  inline const Type& GetType() const{ return m_type; }
254 
260  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
261 
267  inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
268 
274  inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
275 
281  inline CreateAnalyzerRequest& WithType(const Type& value) { SetType(value); return *this;}
282 
288  inline CreateAnalyzerRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
289 
290  private:
291 
292  Aws::String m_analyzerName;
293  bool m_analyzerNameHasBeenSet;
294 
295  Aws::Vector<InlineArchiveRule> m_archiveRules;
296  bool m_archiveRulesHasBeenSet;
297 
298  Aws::String m_clientToken;
299  bool m_clientTokenHasBeenSet;
300 
302  bool m_tagsHasBeenSet;
303 
304  Type m_type;
305  bool m_typeHasBeenSet;
306  };
307 
308 } // namespace Model
309 } // namespace AccessAnalyzer
310 } // namespace Aws
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateAnalyzerRequest.h:164
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateAnalyzerRequest.h:260
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::GetType
const Type & GetType() const
Definition: CreateAnalyzerRequest.h:253
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetType
void SetType(const Type &value)
Definition: CreateAnalyzerRequest.h:267
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetAnalyzerName
void SetAnalyzerName(const Aws::String &value)
Definition: CreateAnalyzerRequest.h:56
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithAnalyzerName
CreateAnalyzerRequest & WithAnalyzerName(const Aws::String &value)
Definition: CreateAnalyzerRequest.h:71
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::ArchiveRulesHasBeenSet
bool ArchiveRulesHasBeenSet() const
Definition: CreateAnalyzerRequest.h:96
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateAnalyzerRequest.h:240
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateAnalyzerRequest.h:230
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateAnalyzerRequest.h:185
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetAnalyzerName
void SetAnalyzerName(Aws::String &&value)
Definition: CreateAnalyzerRequest.h:61
Aws::AccessAnalyzer::Model::InlineArchiveRule
Definition: InlineArchiveRule.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::GetAnalyzerName
const Aws::String & GetAnalyzerName() const
Definition: CreateAnalyzerRequest.h:46
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(const char *key, const char *value)
Definition: CreateAnalyzerRequest.h:245
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateAnalyzerRequest.h:159
AWSVector.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddArchiveRules
CreateAnalyzerRequest & AddArchiveRules(InlineArchiveRule &&value)
Definition: CreateAnalyzerRequest.h:138
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateAnalyzerRequest.h:215
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateAnalyzerRequest.h:144
Type.h
InlineArchiveRule.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetArchiveRules
void SetArchiveRules(const Aws::Vector< InlineArchiveRule > &value)
Definition: CreateAnalyzerRequest.h:103
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::CreateAnalyzerRequest
CreateAnalyzerRequest()
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateAnalyzerRequest.h:149
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithClientToken
CreateAnalyzerRequest & WithClientToken(Aws::String &&value)
Definition: CreateAnalyzerRequest.h:174
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithClientToken
CreateAnalyzerRequest & WithClientToken(const Aws::String &value)
Definition: CreateAnalyzerRequest.h:169
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAnalyzerRequest.h:200
AWSString.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithAnalyzerName
CreateAnalyzerRequest & WithAnalyzerName(const char *value)
Definition: CreateAnalyzerRequest.h:81
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AnalyzerNameHasBeenSet
bool AnalyzerNameHasBeenSet() const
Definition: CreateAnalyzerRequest.h:51
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateAnalyzerRequest.h:235
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetType
void SetType(Type &&value)
Definition: CreateAnalyzerRequest.h:274
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetArchiveRules
void SetArchiveRules(Aws::Vector< InlineArchiveRule > &&value)
Definition: CreateAnalyzerRequest.h:110
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithArchiveRules
CreateAnalyzerRequest & WithArchiveRules(Aws::Vector< InlineArchiveRule > &&value)
Definition: CreateAnalyzerRequest.h:124
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithTags
CreateAnalyzerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAnalyzerRequest.h:205
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAnalyzerRequest.h:195
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithAnalyzerName
CreateAnalyzerRequest & WithAnalyzerName(Aws::String &&value)
Definition: CreateAnalyzerRequest.h:76
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest
Definition: CreateAnalyzerRequest.h:30
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddArchiveRules
CreateAnalyzerRequest & AddArchiveRules(const InlineArchiveRule &value)
Definition: CreateAnalyzerRequest.h:131
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateAnalyzerRequest.h:220
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAnalyzerRequest.h:38
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::GetArchiveRules
const Aws::Vector< InlineArchiveRule > & GetArchiveRules() const
Definition: CreateAnalyzerRequest.h:89
Aws::AccessAnalyzer::Model::Type
Type
Definition: Type.h:17
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithType
CreateAnalyzerRequest & WithType(Type &&value)
Definition: CreateAnalyzerRequest.h:288
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithType
CreateAnalyzerRequest & WithType(const Type &value)
Definition: CreateAnalyzerRequest.h:281
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithClientToken
CreateAnalyzerRequest & WithClientToken(const char *value)
Definition: CreateAnalyzerRequest.h:179
UUID.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithArchiveRules
CreateAnalyzerRequest & WithArchiveRules(const Aws::Vector< InlineArchiveRule > &value)
Definition: CreateAnalyzerRequest.h:117
AWSMap.h
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAnalyzerRequest.h:190
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateAnalyzerRequest.h:154
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::WithTags
CreateAnalyzerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAnalyzerRequest.h:210
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::AddTags
CreateAnalyzerRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateAnalyzerRequest.h:225
Aws::AccessAnalyzer::Model::CreateAnalyzerRequest::SetAnalyzerName
void SetAnalyzerName(const char *value)
Definition: CreateAnalyzerRequest.h:66