AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AuditFinding.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/AuditorResult.h>
9#include <aws/application-signals/model/DependencyGraph.h>
10#include <aws/application-signals/model/MetricGraph.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationSignals {
25namespace Model {
26
36 public:
37 AWS_APPLICATIONSIGNALS_API AuditFinding() = default;
38 AWS_APPLICATIONSIGNALS_API AuditFinding(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API AuditFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
49 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
50 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
51 void SetKeyAttributes(KeyAttributesT&& value) {
52 m_keyAttributesHasBeenSet = true;
53 m_keyAttributes = std::forward<KeyAttributesT>(value);
54 }
55 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
56 AuditFinding& WithKeyAttributes(KeyAttributesT&& value) {
57 SetKeyAttributes(std::forward<KeyAttributesT>(value));
58 return *this;
59 }
60 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
61 AuditFinding& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
62 m_keyAttributesHasBeenSet = true;
63 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::Vector<AuditorResult>& GetAuditorResults() const { return m_auditorResults; }
74 inline bool AuditorResultsHasBeenSet() const { return m_auditorResultsHasBeenSet; }
75 template <typename AuditorResultsT = Aws::Vector<AuditorResult>>
76 void SetAuditorResults(AuditorResultsT&& value) {
77 m_auditorResultsHasBeenSet = true;
78 m_auditorResults = std::forward<AuditorResultsT>(value);
79 }
80 template <typename AuditorResultsT = Aws::Vector<AuditorResult>>
81 AuditFinding& WithAuditorResults(AuditorResultsT&& value) {
82 SetAuditorResults(std::forward<AuditorResultsT>(value));
83 return *this;
84 }
85 template <typename AuditorResultsT = AuditorResult>
86 AuditFinding& AddAuditorResults(AuditorResultsT&& value) {
87 m_auditorResultsHasBeenSet = true;
88 m_auditorResults.emplace_back(std::forward<AuditorResultsT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetOperation() const { return m_operation; }
99 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
100 template <typename OperationT = Aws::String>
101 void SetOperation(OperationT&& value) {
102 m_operationHasBeenSet = true;
103 m_operation = std::forward<OperationT>(value);
104 }
105 template <typename OperationT = Aws::String>
106 AuditFinding& WithOperation(OperationT&& value) {
107 SetOperation(std::forward<OperationT>(value));
108 return *this;
109 }
111
113
117 inline const MetricGraph& GetMetricGraph() const { return m_metricGraph; }
118 inline bool MetricGraphHasBeenSet() const { return m_metricGraphHasBeenSet; }
119 template <typename MetricGraphT = MetricGraph>
120 void SetMetricGraph(MetricGraphT&& value) {
121 m_metricGraphHasBeenSet = true;
122 m_metricGraph = std::forward<MetricGraphT>(value);
123 }
124 template <typename MetricGraphT = MetricGraph>
125 AuditFinding& WithMetricGraph(MetricGraphT&& value) {
126 SetMetricGraph(std::forward<MetricGraphT>(value));
127 return *this;
128 }
130
132
137 inline const DependencyGraph& GetDependencyGraph() const { return m_dependencyGraph; }
138 inline bool DependencyGraphHasBeenSet() const { return m_dependencyGraphHasBeenSet; }
139 template <typename DependencyGraphT = DependencyGraph>
140 void SetDependencyGraph(DependencyGraphT&& value) {
141 m_dependencyGraphHasBeenSet = true;
142 m_dependencyGraph = std::forward<DependencyGraphT>(value);
143 }
144 template <typename DependencyGraphT = DependencyGraph>
145 AuditFinding& WithDependencyGraph(DependencyGraphT&& value) {
146 SetDependencyGraph(std::forward<DependencyGraphT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetType() const { return m_type; }
156 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
157 template <typename TypeT = Aws::String>
158 void SetType(TypeT&& value) {
159 m_typeHasBeenSet = true;
160 m_type = std::forward<TypeT>(value);
161 }
162 template <typename TypeT = Aws::String>
163 AuditFinding& WithType(TypeT&& value) {
164 SetType(std::forward<TypeT>(value));
165 return *this;
166 }
168 private:
170
171 Aws::Vector<AuditorResult> m_auditorResults;
172
173 Aws::String m_operation;
174
175 MetricGraph m_metricGraph;
176
177 DependencyGraph m_dependencyGraph;
178
179 Aws::String m_type;
180 bool m_keyAttributesHasBeenSet = false;
181 bool m_auditorResultsHasBeenSet = false;
182 bool m_operationHasBeenSet = false;
183 bool m_metricGraphHasBeenSet = false;
184 bool m_dependencyGraphHasBeenSet = false;
185 bool m_typeHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace ApplicationSignals
190} // namespace Aws
AuditFinding & WithDependencyGraph(DependencyGraphT &&value)
const Aws::String & GetOperation() const
void SetKeyAttributes(KeyAttributesT &&value)
void SetDependencyGraph(DependencyGraphT &&value)
AWS_APPLICATIONSIGNALS_API AuditFinding()=default
AuditFinding & WithType(TypeT &&value)
AuditFinding & WithKeyAttributes(KeyAttributesT &&value)
AWS_APPLICATIONSIGNALS_API AuditFinding(Aws::Utils::Json::JsonView jsonValue)
AuditFinding & WithOperation(OperationT &&value)
AuditFinding & WithMetricGraph(MetricGraphT &&value)
AWS_APPLICATIONSIGNALS_API AuditFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetricGraph(MetricGraphT &&value)
AuditFinding & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
AuditFinding & WithAuditorResults(AuditorResultsT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const MetricGraph & GetMetricGraph() const
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
AuditFinding & AddAuditorResults(AuditorResultsT &&value)
void SetAuditorResults(AuditorResultsT &&value)
const Aws::Vector< AuditorResult > & GetAuditorResults() const
const DependencyGraph & GetDependencyGraph() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue