AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
68 inline AnalysisResult& WithType(const Aws::String& value) { SetType(value); return *this;}
69 inline AnalysisResult& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
70 inline AnalysisResult& WithType(const char* value) { SetType(value); return *this;}
72
74
87 inline const AnalysisResultLevel& GetLevel() const{ return m_level; }
88 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
89 inline void SetLevel(const AnalysisResultLevel& value) { m_levelHasBeenSet = true; m_level = value; }
90 inline void SetLevel(AnalysisResultLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
91 inline AnalysisResult& WithLevel(const AnalysisResultLevel& value) { SetLevel(value); return *this;}
92 inline AnalysisResult& WithLevel(AnalysisResultLevel&& value) { SetLevel(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetMessage() const{ return m_message; }
100 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
101 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
102 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
103 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
104 inline AnalysisResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
105 inline AnalysisResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
106 inline AnalysisResult& WithMessage(const char* value) { SetMessage(value); return *this;}
108
110
114 inline const Aws::Vector<AnalysisResultLocation>& GetLocations() const{ return m_locations; }
115 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
116 inline void SetLocations(const Aws::Vector<AnalysisResultLocation>& value) { m_locationsHasBeenSet = true; m_locations = value; }
117 inline void SetLocations(Aws::Vector<AnalysisResultLocation>&& value) { m_locationsHasBeenSet = true; m_locations = std::move(value); }
119 inline AnalysisResult& WithLocations(Aws::Vector<AnalysisResultLocation>&& value) { SetLocations(std::move(value)); return *this;}
120 inline AnalysisResult& AddLocations(const AnalysisResultLocation& value) { m_locationsHasBeenSet = true; m_locations.push_back(value); return *this; }
121 inline AnalysisResult& AddLocations(AnalysisResultLocation&& value) { m_locationsHasBeenSet = true; m_locations.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_type;
126 bool m_typeHasBeenSet = false;
127
128 AnalysisResultLevel m_level;
129 bool m_levelHasBeenSet = false;
130
131 Aws::String m_message;
132 bool m_messageHasBeenSet = false;
133
135 bool m_locationsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace IoTEvents
140} // namespace Aws
AnalysisResult & WithType(Aws::String &&value)
AWS_IOTEVENTS_API AnalysisResult(Aws::Utils::Json::JsonView jsonValue)
AnalysisResult & WithLocations(Aws::Vector< AnalysisResultLocation > &&value)
AnalysisResult & WithMessage(const Aws::String &value)
AnalysisResult & AddLocations(AnalysisResultLocation &&value)
AnalysisResult & WithMessage(Aws::String &&value)
void SetMessage(Aws::String &&value)
void SetLevel(AnalysisResultLevel &&value)
AWS_IOTEVENTS_API AnalysisResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AnalysisResultLocation > & GetLocations() const
void SetType(Aws::String &&value)
AnalysisResult & WithLevel(AnalysisResultLevel &&value)
AnalysisResult & AddLocations(const AnalysisResultLocation &value)
void SetLocations(Aws::Vector< AnalysisResultLocation > &&value)
void SetLevel(const AnalysisResultLevel &value)
void SetLocations(const Aws::Vector< AnalysisResultLocation > &value)
void SetType(const Aws::String &value)
AnalysisResult & WithType(const char *value)
void SetMessage(const Aws::String &value)
AnalysisResult & WithLocations(const Aws::Vector< AnalysisResultLocation > &value)
AnalysisResult & WithType(const Aws::String &value)
const Aws::String & GetType() const
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AnalysisResult & WithLevel(const AnalysisResultLevel &value)
const Aws::String & GetMessage() const
AnalysisResult & WithMessage(const char *value)
const AnalysisResultLevel & GetLevel() 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