AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Monitor.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/internetmonitor/model/MonitorConfigState.h>
10#include <aws/internetmonitor/model/MonitorProcessingStatusCode.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 InternetMonitor
24{
25namespace Model
26{
27
34 class Monitor
35 {
36 public:
37 AWS_INTERNETMONITOR_API Monitor();
38 AWS_INTERNETMONITOR_API Monitor(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INTERNETMONITOR_API Monitor& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMonitorName() const{ return m_monitorName; }
48 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
49 inline void SetMonitorName(const Aws::String& value) { m_monitorNameHasBeenSet = true; m_monitorName = value; }
50 inline void SetMonitorName(Aws::String&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::move(value); }
51 inline void SetMonitorName(const char* value) { m_monitorNameHasBeenSet = true; m_monitorName.assign(value); }
52 inline Monitor& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;}
53 inline Monitor& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;}
54 inline Monitor& WithMonitorName(const char* value) { SetMonitorName(value); return *this;}
56
58
61 inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; }
62 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
63 inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; }
64 inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); }
65 inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); }
66 inline Monitor& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;}
67 inline Monitor& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;}
68 inline Monitor& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;}
70
72
75 inline const MonitorConfigState& GetStatus() const{ return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(const MonitorConfigState& value) { m_statusHasBeenSet = true; m_status = value; }
78 inline void SetStatus(MonitorConfigState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
79 inline Monitor& WithStatus(const MonitorConfigState& value) { SetStatus(value); return *this;}
80 inline Monitor& WithStatus(MonitorConfigState&& value) { SetStatus(std::move(value)); return *this;}
82
84
87 inline const MonitorProcessingStatusCode& GetProcessingStatus() const{ return m_processingStatus; }
88 inline bool ProcessingStatusHasBeenSet() const { return m_processingStatusHasBeenSet; }
89 inline void SetProcessingStatus(const MonitorProcessingStatusCode& value) { m_processingStatusHasBeenSet = true; m_processingStatus = value; }
90 inline void SetProcessingStatus(MonitorProcessingStatusCode&& value) { m_processingStatusHasBeenSet = true; m_processingStatus = std::move(value); }
91 inline Monitor& WithProcessingStatus(const MonitorProcessingStatusCode& value) { SetProcessingStatus(value); return *this;}
92 inline Monitor& WithProcessingStatus(MonitorProcessingStatusCode&& value) { SetProcessingStatus(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_monitorName;
97 bool m_monitorNameHasBeenSet = false;
98
99 Aws::String m_monitorArn;
100 bool m_monitorArnHasBeenSet = false;
101
102 MonitorConfigState m_status;
103 bool m_statusHasBeenSet = false;
104
105 MonitorProcessingStatusCode m_processingStatus;
106 bool m_processingStatusHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace InternetMonitor
111} // namespace Aws
Monitor & WithProcessingStatus(MonitorProcessingStatusCode &&value)
Definition Monitor.h:92
void SetProcessingStatus(const MonitorProcessingStatusCode &value)
Definition Monitor.h:89
void SetMonitorName(const char *value)
Definition Monitor.h:51
Monitor & WithMonitorArn(const Aws::String &value)
Definition Monitor.h:66
Monitor & WithMonitorName(const Aws::String &value)
Definition Monitor.h:52
void SetMonitorArn(const Aws::String &value)
Definition Monitor.h:63
const MonitorConfigState & GetStatus() const
Definition Monitor.h:75
Monitor & WithMonitorArn(const char *value)
Definition Monitor.h:68
AWS_INTERNETMONITOR_API Monitor()
const Aws::String & GetMonitorArn() const
Definition Monitor.h:61
AWS_INTERNETMONITOR_API Monitor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProcessingStatus(MonitorProcessingStatusCode &&value)
Definition Monitor.h:90
void SetMonitorName(Aws::String &&value)
Definition Monitor.h:50
void SetMonitorName(const Aws::String &value)
Definition Monitor.h:49
const Aws::String & GetMonitorName() const
Definition Monitor.h:47
AWS_INTERNETMONITOR_API Monitor(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const MonitorConfigState &value)
Definition Monitor.h:77
Monitor & WithStatus(MonitorConfigState &&value)
Definition Monitor.h:80
const MonitorProcessingStatusCode & GetProcessingStatus() const
Definition Monitor.h:87
Monitor & WithMonitorName(const char *value)
Definition Monitor.h:54
void SetMonitorArn(Aws::String &&value)
Definition Monitor.h:64
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
Monitor & WithMonitorArn(Aws::String &&value)
Definition Monitor.h:67
Monitor & WithStatus(const MonitorConfigState &value)
Definition Monitor.h:79
void SetMonitorArn(const char *value)
Definition Monitor.h:65
Monitor & WithProcessingStatus(const MonitorProcessingStatusCode &value)
Definition Monitor.h:91
void SetStatus(MonitorConfigState &&value)
Definition Monitor.h:78
Monitor & WithMonitorName(Aws::String &&value)
Definition Monitor.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue