AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AuditorResult.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/Severity.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationSignals {
22namespace Model {
23
32 public:
33 AWS_APPLICATIONSIGNALS_API AuditorResult() = default;
34 AWS_APPLICATIONSIGNALS_API AuditorResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API AuditorResult& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAuditor() const { return m_auditor; }
43 inline bool AuditorHasBeenSet() const { return m_auditorHasBeenSet; }
44 template <typename AuditorT = Aws::String>
45 void SetAuditor(AuditorT&& value) {
46 m_auditorHasBeenSet = true;
47 m_auditor = std::forward<AuditorT>(value);
48 }
49 template <typename AuditorT = Aws::String>
50 AuditorResult& WithAuditor(AuditorT&& value) {
51 SetAuditor(std::forward<AuditorT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 AuditorResult& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
81 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
82 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
83 void SetData(DataT&& value) {
84 m_dataHasBeenSet = true;
85 m_data = std::forward<DataT>(value);
86 }
87 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
88 AuditorResult& WithData(DataT&& value) {
89 SetData(std::forward<DataT>(value));
90 return *this;
91 }
92 template <typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
93 AuditorResult& AddData(DataKeyT&& key, DataValueT&& value) {
94 m_dataHasBeenSet = true;
95 m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
96 return *this;
97 }
99
101
105 inline Severity GetSeverity() const { return m_severity; }
106 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
107 inline void SetSeverity(Severity value) {
108 m_severityHasBeenSet = true;
109 m_severity = value;
110 }
112 SetSeverity(value);
113 return *this;
114 }
116 private:
117 Aws::String m_auditor;
118
119 Aws::String m_description;
120
122
123 Severity m_severity{Severity::NOT_SET};
124 bool m_auditorHasBeenSet = false;
125 bool m_descriptionHasBeenSet = false;
126 bool m_dataHasBeenSet = false;
127 bool m_severityHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace ApplicationSignals
132} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetData() const
AWS_APPLICATIONSIGNALS_API AuditorResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
AuditorResult & WithSeverity(Severity value)
AuditorResult & WithDescription(DescriptionT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API AuditorResult()=default
AWS_APPLICATIONSIGNALS_API AuditorResult(Aws::Utils::Json::JsonView jsonValue)
AuditorResult & WithData(DataT &&value)
AuditorResult & AddData(DataKeyT &&key, DataValueT &&value)
AuditorResult & WithAuditor(AuditorT &&value)
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
Aws::Utils::Json::JsonValue JsonValue