AWS SDK for C++  1.9.2
AWS SDK for C++
UpdateFindingsRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "UpdateFindings"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
47  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
48 
54  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
55 
61  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
62 
68  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
69 
75  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
76 
82  inline UpdateFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
83 
89  inline UpdateFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
90 
96  inline UpdateFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
97 
98 
102  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
103 
107  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 
112  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
113 
117  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
118 
122  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
123 
127  inline UpdateFindingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
128 
132  inline UpdateFindingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
133 
137  inline UpdateFindingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
138 
139 
143  inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
144 
148  inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
149 
153  inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
154 
158  inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
159 
163  inline UpdateFindingsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
164 
168  inline UpdateFindingsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
169 
173  inline UpdateFindingsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
174 
178  inline UpdateFindingsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
179 
183  inline UpdateFindingsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
184 
185 
189  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
190 
194  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
195 
199  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
200 
204  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
205 
209  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
210 
214  inline UpdateFindingsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
215 
219  inline UpdateFindingsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
220 
224  inline UpdateFindingsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
225 
226 
232  inline const FindingStatusUpdate& GetStatus() const{ return m_status; }
233 
239  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
240 
246  inline void SetStatus(const FindingStatusUpdate& value) { m_statusHasBeenSet = true; m_status = value; }
247 
253  inline void SetStatus(FindingStatusUpdate&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
254 
260  inline UpdateFindingsRequest& WithStatus(const FindingStatusUpdate& value) { SetStatus(value); return *this;}
261 
267  inline UpdateFindingsRequest& WithStatus(FindingStatusUpdate&& value) { SetStatus(std::move(value)); return *this;}
268 
269  private:
270 
271  Aws::String m_analyzerArn;
272  bool m_analyzerArnHasBeenSet;
273 
274  Aws::String m_clientToken;
275  bool m_clientTokenHasBeenSet;
276 
278  bool m_idsHasBeenSet;
279 
280  Aws::String m_resourceArn;
281  bool m_resourceArnHasBeenSet;
282 
283  FindingStatusUpdate m_status;
284  bool m_statusHasBeenSet;
285  };
286 
287 } // namespace Model
288 } // namespace AccessAnalyzer
289 } // namespace Aws
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithAnalyzerArn
UpdateFindingsRequest & WithAnalyzerArn(const char *value)
Definition: UpdateFindingsRequest.h:96
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: UpdateFindingsRequest.h:194
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateFindingsRequest.h:112
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: UpdateFindingsRequest.h:204
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFindingsRequest.h:37
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateFindingsRequest.h:122
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithStatus
UpdateFindingsRequest & WithStatus(const FindingStatusUpdate &value)
Definition: UpdateFindingsRequest.h:260
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetIds
void SetIds(const Aws::Vector< Aws::String > &value)
Definition: UpdateFindingsRequest.h:153
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithIds
UpdateFindingsRequest & WithIds(Aws::Vector< Aws::String > &&value)
Definition: UpdateFindingsRequest.h:168
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdateFindingsRequest.h:239
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::UpdateFindingsRequest
Definition: UpdateFindingsRequest.h:29
AWSVector.h
Aws::AccessAnalyzer::Model::FindingStatusUpdate
FindingStatusUpdate
Definition: FindingStatusUpdate.h:17
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetStatus
void SetStatus(FindingStatusUpdate &&value)
Definition: UpdateFindingsRequest.h:253
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::GetIds
const Aws::Vector< Aws::String > & GetIds() const
Definition: UpdateFindingsRequest.h:143
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: UpdateFindingsRequest.h:61
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: UpdateFindingsRequest.h:47
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateFindingsRequest.h:117
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::AddIds
UpdateFindingsRequest & AddIds(const Aws::String &value)
Definition: UpdateFindingsRequest.h:173
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithStatus
UpdateFindingsRequest & WithStatus(FindingStatusUpdate &&value)
Definition: UpdateFindingsRequest.h:267
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithAnalyzerArn
UpdateFindingsRequest & WithAnalyzerArn(Aws::String &&value)
Definition: UpdateFindingsRequest.h:89
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithClientToken
UpdateFindingsRequest & WithClientToken(Aws::String &&value)
Definition: UpdateFindingsRequest.h:132
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: UpdateFindingsRequest.h:189
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithClientToken
UpdateFindingsRequest & WithClientToken(const char *value)
Definition: UpdateFindingsRequest.h:137
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: UpdateFindingsRequest.h:209
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithResourceArn
UpdateFindingsRequest & WithResourceArn(Aws::String &&value)
Definition: UpdateFindingsRequest.h:219
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::AddIds
UpdateFindingsRequest & AddIds(Aws::String &&value)
Definition: UpdateFindingsRequest.h:178
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetStatus
void SetStatus(const FindingStatusUpdate &value)
Definition: UpdateFindingsRequest.h:246
AWSString.h
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::AddIds
UpdateFindingsRequest & AddIds(const char *value)
Definition: UpdateFindingsRequest.h:183
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithIds
UpdateFindingsRequest & WithIds(const Aws::Vector< Aws::String > &value)
Definition: UpdateFindingsRequest.h:163
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithResourceArn
UpdateFindingsRequest & WithResourceArn(const Aws::String &value)
Definition: UpdateFindingsRequest.h:214
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetIds
void SetIds(Aws::Vector< Aws::String > &&value)
Definition: UpdateFindingsRequest.h:158
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateFindingsRequest.h:102
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithClientToken
UpdateFindingsRequest & WithClientToken(const Aws::String &value)
Definition: UpdateFindingsRequest.h:127
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateFindingsRequest.h:107
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::IdsHasBeenSet
bool IdsHasBeenSet() const
Definition: UpdateFindingsRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithResourceArn
UpdateFindingsRequest & WithResourceArn(const char *value)
Definition: UpdateFindingsRequest.h:224
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::WithAnalyzerArn
UpdateFindingsRequest & WithAnalyzerArn(const Aws::String &value)
Definition: UpdateFindingsRequest.h:82
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: UpdateFindingsRequest.h:199
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: UpdateFindingsRequest.h:68
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::GetStatus
const FindingStatusUpdate & GetStatus() const
Definition: UpdateFindingsRequest.h:232
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: UpdateFindingsRequest.h:75
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: UpdateFindingsRequest.h:54
UUID.h
FindingStatusUpdate.h
Aws::AccessAnalyzer::Model::UpdateFindingsRequest::UpdateFindingsRequest
UpdateFindingsRequest()