AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AnalysisResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/AnalysisResultLevel.h>
11#include <aws/iotevents/model/AnalysisResultLocation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents {
23namespace Model {
24
31 public:
32 AWS_IOTEVENTS_API AnalysisResult() = default;
33 AWS_IOTEVENTS_API AnalysisResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
57 inline const Aws::String& GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 template <typename TypeT = Aws::String>
60 void SetType(TypeT&& value) {
61 m_typeHasBeenSet = true;
62 m_type = std::forward<TypeT>(value);
63 }
64 template <typename TypeT = Aws::String>
65 AnalysisResult& WithType(TypeT&& value) {
66 SetType(std::forward<TypeT>(value));
67 return *this;
68 }
70
72
85 inline AnalysisResultLevel GetLevel() const { return m_level; }
86 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
87 inline void SetLevel(AnalysisResultLevel value) {
88 m_levelHasBeenSet = true;
89 m_level = value;
90 }
92 SetLevel(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetMessage() const { return m_message; }
102 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
103 template <typename MessageT = Aws::String>
104 void SetMessage(MessageT&& value) {
105 m_messageHasBeenSet = true;
106 m_message = std::forward<MessageT>(value);
107 }
108 template <typename MessageT = Aws::String>
109 AnalysisResult& WithMessage(MessageT&& value) {
110 SetMessage(std::forward<MessageT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<AnalysisResultLocation>& GetLocations() const { return m_locations; }
121 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
122 template <typename LocationsT = Aws::Vector<AnalysisResultLocation>>
123 void SetLocations(LocationsT&& value) {
124 m_locationsHasBeenSet = true;
125 m_locations = std::forward<LocationsT>(value);
126 }
127 template <typename LocationsT = Aws::Vector<AnalysisResultLocation>>
128 AnalysisResult& WithLocations(LocationsT&& value) {
129 SetLocations(std::forward<LocationsT>(value));
130 return *this;
131 }
132 template <typename LocationsT = AnalysisResultLocation>
133 AnalysisResult& AddLocations(LocationsT&& value) {
134 m_locationsHasBeenSet = true;
135 m_locations.emplace_back(std::forward<LocationsT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_type;
141
143
144 Aws::String m_message;
145
147 bool m_typeHasBeenSet = false;
148 bool m_levelHasBeenSet = false;
149 bool m_messageHasBeenSet = false;
150 bool m_locationsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace IoTEvents
155} // namespace Aws
AWS_IOTEVENTS_API AnalysisResult()=default
AnalysisResult & WithLocations(LocationsT &&value)
AWS_IOTEVENTS_API AnalysisResult(Aws::Utils::Json::JsonView jsonValue)
AnalysisResult & WithType(TypeT &&value)
AWS_IOTEVENTS_API AnalysisResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AnalysisResultLocation > & GetLocations() const
AnalysisResult & AddLocations(LocationsT &&value)
AnalysisResult & WithLevel(AnalysisResultLevel value)
void SetLocations(LocationsT &&value)
AnalysisResultLevel GetLevel() const
AnalysisResult & WithMessage(MessageT &&value)
const Aws::String & GetType() const
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLevel(AnalysisResultLevel value)
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue