AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Detector.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents-data/model/DetectorState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTEventsData
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOTEVENTSDATA_API Detector();
37 AWS_IOTEVENTSDATA_API Detector(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTSDATA_API Detector& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
47 inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
48 inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
49 inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
50 inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
51 inline Detector& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
52 inline Detector& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
53 inline Detector& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
55
57
61 inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
62 inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
63 inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
64 inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
65 inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
66 inline Detector& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
67 inline Detector& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
68 inline Detector& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
70
72
75 inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; }
76 inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
77 inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; }
78 inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); }
79 inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); }
80 inline Detector& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;}
81 inline Detector& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;}
82 inline Detector& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;}
84
86
89 inline const DetectorState& GetState() const{ return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(const DetectorState& value) { m_stateHasBeenSet = true; m_state = value; }
92 inline void SetState(DetectorState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
93 inline Detector& WithState(const DetectorState& value) { SetState(value); return *this;}
94 inline Detector& WithState(DetectorState&& value) { SetState(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
102 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
103 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
104 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
105 inline Detector& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
106 inline Detector& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
114 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
115 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
116 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
117 inline Detector& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
118 inline Detector& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_detectorModelName;
123 bool m_detectorModelNameHasBeenSet = false;
124
125 Aws::String m_keyValue;
126 bool m_keyValueHasBeenSet = false;
127
128 Aws::String m_detectorModelVersion;
129 bool m_detectorModelVersionHasBeenSet = false;
130
131 DetectorState m_state;
132 bool m_stateHasBeenSet = false;
133
134 Aws::Utils::DateTime m_creationTime;
135 bool m_creationTimeHasBeenSet = false;
136
137 Aws::Utils::DateTime m_lastUpdateTime;
138 bool m_lastUpdateTimeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoTEventsData
143} // namespace Aws
Detector & WithState(DetectorState &&value)
Definition Detector.h:94
Detector & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Detector.h:106
void SetDetectorModelVersion(const Aws::String &value)
Definition Detector.h:77
void SetDetectorModelVersion(const char *value)
Definition Detector.h:79
const Aws::Utils::DateTime & GetLastUpdateTime() const
Definition Detector.h:113
Detector & WithState(const DetectorState &value)
Definition Detector.h:93
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Detector.h:104
bool DetectorModelVersionHasBeenSet() const
Definition Detector.h:76
Detector & WithLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Detector.h:118
void SetState(DetectorState &&value)
Definition Detector.h:92
void SetDetectorModelName(const char *value)
Definition Detector.h:50
void SetDetectorModelName(const Aws::String &value)
Definition Detector.h:48
Detector & WithKeyValue(const Aws::String &value)
Definition Detector.h:66
AWS_IOTEVENTSDATA_API Detector(Aws::Utils::Json::JsonView jsonValue)
Detector & WithDetectorModelName(const Aws::String &value)
Definition Detector.h:51
void SetDetectorModelVersion(Aws::String &&value)
Definition Detector.h:78
Detector & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Detector.h:105
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Detector.h:103
Detector & WithKeyValue(Aws::String &&value)
Definition Detector.h:67
void SetKeyValue(const char *value)
Definition Detector.h:65
Detector & WithDetectorModelName(Aws::String &&value)
Definition Detector.h:52
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Detector.h:116
void SetState(const DetectorState &value)
Definition Detector.h:91
AWS_IOTEVENTSDATA_API Detector & operator=(Aws::Utils::Json::JsonView jsonValue)
Detector & WithLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Detector.h:117
Detector & WithDetectorModelVersion(const Aws::String &value)
Definition Detector.h:80
const Aws::Utils::DateTime & GetCreationTime() const
Definition Detector.h:101
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
Detector & WithDetectorModelName(const char *value)
Definition Detector.h:53
Detector & WithDetectorModelVersion(Aws::String &&value)
Definition Detector.h:81
const DetectorState & GetState() const
Definition Detector.h:89
const Aws::String & GetDetectorModelName() const
Definition Detector.h:46
const Aws::String & GetKeyValue() const
Definition Detector.h:61
void SetKeyValue(const Aws::String &value)
Definition Detector.h:63
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Detector.h:115
void SetDetectorModelName(Aws::String &&value)
Definition Detector.h:49
const Aws::String & GetDetectorModelVersion() const
Definition Detector.h:75
void SetKeyValue(Aws::String &&value)
Definition Detector.h:64
Detector & WithDetectorModelVersion(const char *value)
Definition Detector.h:82
Detector & WithKeyValue(const char *value)
Definition Detector.h:68
AWS_IOTEVENTSDATA_API Detector()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue