AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
RepresentativeFinding.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/RiskLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
31 public:
32 AWS_GUARDDUTY_API RepresentativeFinding() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetResourceType() const { return m_resourceType; }
42 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
43 template <typename ResourceTypeT = Aws::String>
44 void SetResourceType(ResourceTypeT&& value) {
45 m_resourceTypeHasBeenSet = true;
46 m_resourceType = std::forward<ResourceTypeT>(value);
47 }
48 template <typename ResourceTypeT = Aws::String>
49 RepresentativeFinding& WithResourceType(ResourceTypeT&& value) {
50 SetResourceType(std::forward<ResourceTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIdentifier() const { return m_identifier; }
60 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
61 template <typename IdentifierT = Aws::String>
62 void SetIdentifier(IdentifierT&& value) {
63 m_identifierHasBeenSet = true;
64 m_identifier = std::forward<IdentifierT>(value);
65 }
66 template <typename IdentifierT = Aws::String>
67 RepresentativeFinding& WithIdentifier(IdentifierT&& value) {
68 SetIdentifier(std::forward<IdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFindingId() const { return m_findingId; }
78 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
79 template <typename FindingIdT = Aws::String>
80 void SetFindingId(FindingIdT&& value) {
81 m_findingIdHasBeenSet = true;
82 m_findingId = std::forward<FindingIdT>(value);
83 }
84 template <typename FindingIdT = Aws::String>
85 RepresentativeFinding& WithFindingId(FindingIdT&& value) {
86 SetFindingId(std::forward<FindingIdT>(value));
87 return *this;
88 }
90
92
95 inline long long GetFindingCount() const { return m_findingCount; }
96 inline bool FindingCountHasBeenSet() const { return m_findingCountHasBeenSet; }
97 inline void SetFindingCount(long long value) {
98 m_findingCountHasBeenSet = true;
99 m_findingCount = value;
100 }
101 inline RepresentativeFinding& WithFindingCount(long long value) {
102 SetFindingCount(value);
103 return *this;
104 }
106
108
113 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
114 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
115 inline void SetRiskLevel(RiskLevel value) {
116 m_riskLevelHasBeenSet = true;
117 m_riskLevel = value;
118 }
120 SetRiskLevel(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetRiskRationale() const { return m_riskRationale; }
130 inline bool RiskRationaleHasBeenSet() const { return m_riskRationaleHasBeenSet; }
131 template <typename RiskRationaleT = Aws::String>
132 void SetRiskRationale(RiskRationaleT&& value) {
133 m_riskRationaleHasBeenSet = true;
134 m_riskRationale = std::forward<RiskRationaleT>(value);
135 }
136 template <typename RiskRationaleT = Aws::String>
137 RepresentativeFinding& WithRiskRationale(RiskRationaleT&& value) {
138 SetRiskRationale(std::forward<RiskRationaleT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_resourceType;
144
145 Aws::String m_identifier;
146
147 Aws::String m_findingId;
148
149 long long m_findingCount{0};
150
151 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
152
153 Aws::String m_riskRationale;
154 bool m_resourceTypeHasBeenSet = false;
155 bool m_identifierHasBeenSet = false;
156 bool m_findingIdHasBeenSet = false;
157 bool m_findingCountHasBeenSet = false;
158 bool m_riskLevelHasBeenSet = false;
159 bool m_riskRationaleHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace GuardDuty
164} // namespace Aws
RepresentativeFinding & WithResourceType(ResourceTypeT &&value)
RepresentativeFinding & WithFindingCount(long long value)
RepresentativeFinding & WithFindingId(FindingIdT &&value)
RepresentativeFinding & WithRiskLevel(RiskLevel value)
AWS_GUARDDUTY_API RepresentativeFinding()=default
AWS_GUARDDUTY_API RepresentativeFinding(Aws::Utils::Json::JsonView jsonValue)
RepresentativeFinding & WithRiskRationale(RiskRationaleT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API RepresentativeFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
RepresentativeFinding & WithIdentifier(IdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue