AWS SDK for C++

AWS SDK for C++ Version 1.11.785

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
25 public:
26 AWS_SECURITYAGENT_API UpdateFindingRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFinding"; }
33
34 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetFindingId() const { return m_findingId; }
41 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
42 template <typename FindingIdT = Aws::String>
43 void SetFindingId(FindingIdT&& value) {
44 m_findingIdHasBeenSet = true;
45 m_findingId = std::forward<FindingIdT>(value);
46 }
47 template <typename FindingIdT = Aws::String>
48 UpdateFindingRequest& WithFindingId(FindingIdT&& value) {
49 SetFindingId(std::forward<FindingIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
59 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
60 template <typename AgentSpaceIdT = Aws::String>
61 void SetAgentSpaceId(AgentSpaceIdT&& value) {
62 m_agentSpaceIdHasBeenSet = true;
63 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
64 }
65 template <typename AgentSpaceIdT = Aws::String>
66 UpdateFindingRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
67 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
68 return *this;
69 }
71
73
76 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
77 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
78 inline void SetRiskLevel(RiskLevel value) {
79 m_riskLevelHasBeenSet = true;
80 m_riskLevel = value;
81 }
83 SetRiskLevel(value);
84 return *this;
85 }
87
89
92 inline FindingStatus GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(FindingStatus value) {
95 m_statusHasBeenSet = true;
96 m_status = value;
97 }
99 SetStatus(value);
100 return *this;
101 }
103 private:
104 Aws::String m_findingId;
105
106 Aws::String m_agentSpaceId;
107
108 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
109
111 bool m_findingIdHasBeenSet = false;
112 bool m_agentSpaceIdHasBeenSet = false;
113 bool m_riskLevelHasBeenSet = false;
114 bool m_statusHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SecurityAgent
119} // 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