AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
UpdateFindingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/FindingStatus.h>
11#include <aws/securityagent/model/RiskLevel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
26 public:
27 AWS_SECURITYAGENT_API UpdateFindingRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFinding"; }
34
35 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetFindingId() const { return m_findingId; }
42 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
43 template <typename FindingIdT = Aws::String>
44 void SetFindingId(FindingIdT&& value) {
45 m_findingIdHasBeenSet = true;
46 m_findingId = std::forward<FindingIdT>(value);
47 }
48 template <typename FindingIdT = Aws::String>
49 UpdateFindingRequest& WithFindingId(FindingIdT&& value) {
50 SetFindingId(std::forward<FindingIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
60 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
61 template <typename AgentSpaceIdT = Aws::String>
62 void SetAgentSpaceId(AgentSpaceIdT&& value) {
63 m_agentSpaceIdHasBeenSet = true;
64 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
65 }
66 template <typename AgentSpaceIdT = Aws::String>
67 UpdateFindingRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
68 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
69 return *this;
70 }
72
74
77 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
78 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
79 inline void SetRiskLevel(RiskLevel value) {
80 m_riskLevelHasBeenSet = true;
81 m_riskLevel = value;
82 }
84 SetRiskLevel(value);
85 return *this;
86 }
88
90
93 inline FindingStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(FindingStatus value) {
96 m_statusHasBeenSet = true;
97 m_status = value;
98 }
100 SetStatus(value);
101 return *this;
102 }
104 private:
105 Aws::String m_findingId;
106
107 Aws::String m_agentSpaceId;
108
109 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
110
112 bool m_findingIdHasBeenSet = false;
113 bool m_agentSpaceIdHasBeenSet = false;
114 bool m_riskLevelHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace SecurityAgent
120} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SECURITYAGENT_API UpdateFindingRequest()=default
UpdateFindingRequest & WithRiskLevel(RiskLevel value)
UpdateFindingRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateFindingRequest & WithFindingId(FindingIdT &&value)
UpdateFindingRequest & WithStatus(FindingStatus value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String