AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnalysisResult.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/AnalysisResultLevel.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotevents/model/AnalysisResultLocation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTEvents
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOTEVENTS_API AnalysisResult() = default;
38 AWS_IOTEVENTS_API AnalysisResult(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
63 inline const Aws::String& GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 template<typename TypeT = Aws::String>
66 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
67 template<typename TypeT = Aws::String>
68 AnalysisResult& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
70
72
85 inline AnalysisResultLevel GetLevel() const { return m_level; }
86 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
87 inline void SetLevel(AnalysisResultLevel value) { m_levelHasBeenSet = true; m_level = value; }
88 inline AnalysisResult& WithLevel(AnalysisResultLevel value) { SetLevel(value); return *this;}
90
92
95 inline const Aws::String& GetMessage() const { return m_message; }
96 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
97 template<typename MessageT = Aws::String>
98 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
99 template<typename MessageT = Aws::String>
100 AnalysisResult& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
102
104
108 inline const Aws::Vector<AnalysisResultLocation>& GetLocations() const { return m_locations; }
109 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
110 template<typename LocationsT = Aws::Vector<AnalysisResultLocation>>
111 void SetLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations = std::forward<LocationsT>(value); }
112 template<typename LocationsT = Aws::Vector<AnalysisResultLocation>>
113 AnalysisResult& WithLocations(LocationsT&& value) { SetLocations(std::forward<LocationsT>(value)); return *this;}
114 template<typename LocationsT = AnalysisResultLocation>
115 AnalysisResult& AddLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations.emplace_back(std::forward<LocationsT>(value)); return *this; }
117 private:
118
119 Aws::String m_type;
120 bool m_typeHasBeenSet = false;
121
123 bool m_levelHasBeenSet = false;
124
125 Aws::String m_message;
126 bool m_messageHasBeenSet = false;
127
129 bool m_locationsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace IoTEvents
134} // 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