AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFindingsRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/FindingStatusUpdate.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace AccessAnalyzer
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_ACCESSANALYZER_API UpdateFindingsRequest();
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_ACCESSANALYZER_API Aws::String SerializePayload() const override;
40
41
43
48 inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
49 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
50 inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
51 inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
52 inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
53 inline UpdateFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
54 inline UpdateFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
55 inline UpdateFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
57
59
64 inline const FindingStatusUpdate& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const FindingStatusUpdate& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(FindingStatusUpdate&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline UpdateFindingsRequest& WithStatus(const FindingStatusUpdate& value) { SetStatus(value); return *this;}
69 inline UpdateFindingsRequest& WithStatus(FindingStatusUpdate&& value) { SetStatus(std::move(value)); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
77 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
78 inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
79 inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
80 inline UpdateFindingsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
81 inline UpdateFindingsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
82 inline UpdateFindingsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
83 inline UpdateFindingsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
84 inline UpdateFindingsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
86
88
91 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
92 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
93 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
94 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
95 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
96 inline UpdateFindingsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
97 inline UpdateFindingsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
98 inline UpdateFindingsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
100
102
105 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
106 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
107 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
108 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
109 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
110 inline UpdateFindingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
111 inline UpdateFindingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
112 inline UpdateFindingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
114 private:
115
116 Aws::String m_analyzerArn;
117 bool m_analyzerArnHasBeenSet = false;
118
119 FindingStatusUpdate m_status;
120 bool m_statusHasBeenSet = false;
121
123 bool m_idsHasBeenSet = false;
124
125 Aws::String m_resourceArn;
126 bool m_resourceArnHasBeenSet = false;
127
128 Aws::String m_clientToken;
129 bool m_clientTokenHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace AccessAnalyzer
134} // namespace Aws
UpdateFindingsRequest & WithStatus(const FindingStatusUpdate &value)
UpdateFindingsRequest & WithClientToken(const Aws::String &value)
UpdateFindingsRequest & AddIds(Aws::String &&value)
UpdateFindingsRequest & WithStatus(FindingStatusUpdate &&value)
UpdateFindingsRequest & WithIds(const Aws::Vector< Aws::String > &value)
UpdateFindingsRequest & WithAnalyzerArn(const char *value)
const Aws::Vector< Aws::String > & GetIds() const
UpdateFindingsRequest & WithAnalyzerArn(const Aws::String &value)
UpdateFindingsRequest & AddIds(const char *value)
UpdateFindingsRequest & WithAnalyzerArn(Aws::String &&value)
UpdateFindingsRequest & WithResourceArn(Aws::String &&value)
UpdateFindingsRequest & WithResourceArn(const Aws::String &value)
void SetIds(const Aws::Vector< Aws::String > &value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
UpdateFindingsRequest & AddIds(const Aws::String &value)
UpdateFindingsRequest & WithResourceArn(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateFindingsRequest & WithIds(Aws::Vector< Aws::String > &&value)
UpdateFindingsRequest & WithClientToken(const char *value)
void SetStatus(const FindingStatusUpdate &value)
void SetIds(Aws::Vector< Aws::String > &&value)
UpdateFindingsRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector