AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateMonitorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
10#include <aws/internetmonitor/model/MonitorConfigState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace InternetMonitor {
24namespace Model {
26 public:
27 AWS_INTERNETMONITOR_API UpdateMonitorResult() = default;
30
32
35 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
36 template <typename MonitorArnT = Aws::String>
37 void SetMonitorArn(MonitorArnT&& value) {
38 m_monitorArnHasBeenSet = true;
39 m_monitorArn = std::forward<MonitorArnT>(value);
40 }
41 template <typename MonitorArnT = Aws::String>
42 UpdateMonitorResult& WithMonitorArn(MonitorArnT&& value) {
43 SetMonitorArn(std::forward<MonitorArnT>(value));
44 return *this;
45 }
47
49
52 inline MonitorConfigState GetStatus() const { return m_status; }
53 inline void SetStatus(MonitorConfigState value) {
54 m_statusHasBeenSet = true;
55 m_status = value;
56 }
58 SetStatus(value);
59 return *this;
60 }
62
64
65 inline const Aws::String& GetRequestId() const { return m_requestId; }
66 template <typename RequestIdT = Aws::String>
67 void SetRequestId(RequestIdT&& value) {
68 m_requestIdHasBeenSet = true;
69 m_requestId = std::forward<RequestIdT>(value);
70 }
71 template <typename RequestIdT = Aws::String>
72 UpdateMonitorResult& WithRequestId(RequestIdT&& value) {
73 SetRequestId(std::forward<RequestIdT>(value));
74 return *this;
75 }
77 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
78
79 private:
80 Aws::String m_monitorArn;
81
83
84 Aws::String m_requestId;
85 Aws::Http::HttpResponseCode m_HttpResponseCode;
86 bool m_monitorArnHasBeenSet = false;
87 bool m_statusHasBeenSet = false;
88 bool m_requestIdHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace InternetMonitor
93} // namespace Aws
AWS_INTERNETMONITOR_API UpdateMonitorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateMonitorResult & WithMonitorArn(MonitorArnT &&value)
UpdateMonitorResult & WithRequestId(RequestIdT &&value)
AWS_INTERNETMONITOR_API UpdateMonitorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMonitorResult & WithStatus(MonitorConfigState value)
AWS_INTERNETMONITOR_API UpdateMonitorResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue