AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfigurationRecorderStatus.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/config/model/RecorderStatus.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 ConfigService
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_CONFIGSERVICE_API ConfigurationRecorderStatus();
42 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline ConfigurationRecorderStatus& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline ConfigurationRecorderStatus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline ConfigurationRecorderStatus& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetLastStartTime() const{ return m_lastStartTime; }
64 inline bool LastStartTimeHasBeenSet() const { return m_lastStartTimeHasBeenSet; }
65 inline void SetLastStartTime(const Aws::Utils::DateTime& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = value; }
66 inline void SetLastStartTime(Aws::Utils::DateTime&& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = std::move(value); }
68 inline ConfigurationRecorderStatus& WithLastStartTime(Aws::Utils::DateTime&& value) { SetLastStartTime(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetLastStopTime() const{ return m_lastStopTime; }
76 inline bool LastStopTimeHasBeenSet() const { return m_lastStopTimeHasBeenSet; }
77 inline void SetLastStopTime(const Aws::Utils::DateTime& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = value; }
78 inline void SetLastStopTime(Aws::Utils::DateTime&& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = std::move(value); }
80 inline ConfigurationRecorderStatus& WithLastStopTime(Aws::Utils::DateTime&& value) { SetLastStopTime(std::move(value)); return *this;}
82
84
87 inline bool GetRecording() const{ return m_recording; }
88 inline bool RecordingHasBeenSet() const { return m_recordingHasBeenSet; }
89 inline void SetRecording(bool value) { m_recordingHasBeenSet = true; m_recording = value; }
90 inline ConfigurationRecorderStatus& WithRecording(bool value) { SetRecording(value); return *this;}
92
94
97 inline const RecorderStatus& GetLastStatus() const{ return m_lastStatus; }
98 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
99 inline void SetLastStatus(const RecorderStatus& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
100 inline void SetLastStatus(RecorderStatus&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
101 inline ConfigurationRecorderStatus& WithLastStatus(const RecorderStatus& value) { SetLastStatus(value); return *this;}
102 inline ConfigurationRecorderStatus& WithLastStatus(RecorderStatus&& value) { SetLastStatus(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; }
110 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
111 inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
112 inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::move(value); }
113 inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); }
114 inline ConfigurationRecorderStatus& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;}
115 inline ConfigurationRecorderStatus& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(std::move(value)); return *this;}
116 inline ConfigurationRecorderStatus& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;}
118
120
123 inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; }
124 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
125 inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
126 inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::move(value); }
127 inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); }
129 inline ConfigurationRecorderStatus& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(std::move(value)); return *this;}
130 inline ConfigurationRecorderStatus& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;}
132
134
138 inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const{ return m_lastStatusChangeTime; }
139 inline bool LastStatusChangeTimeHasBeenSet() const { return m_lastStatusChangeTimeHasBeenSet; }
140 inline void SetLastStatusChangeTime(const Aws::Utils::DateTime& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = value; }
141 inline void SetLastStatusChangeTime(Aws::Utils::DateTime&& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = std::move(value); }
145 private:
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
150 Aws::Utils::DateTime m_lastStartTime;
151 bool m_lastStartTimeHasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastStopTime;
154 bool m_lastStopTimeHasBeenSet = false;
155
156 bool m_recording;
157 bool m_recordingHasBeenSet = false;
158
159 RecorderStatus m_lastStatus;
160 bool m_lastStatusHasBeenSet = false;
161
162 Aws::String m_lastErrorCode;
163 bool m_lastErrorCodeHasBeenSet = false;
164
165 Aws::String m_lastErrorMessage;
166 bool m_lastErrorMessageHasBeenSet = false;
167
168 Aws::Utils::DateTime m_lastStatusChangeTime;
169 bool m_lastStatusChangeTimeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace ConfigService
174} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationRecorderStatus & WithName(Aws::String &&value)
ConfigurationRecorderStatus & WithLastErrorMessage(Aws::String &&value)
ConfigurationRecorderStatus & WithLastErrorMessage(const char *value)
AWS_CONFIGSERVICE_API ConfigurationRecorderStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationRecorderStatus & WithLastStartTime(Aws::Utils::DateTime &&value)
ConfigurationRecorderStatus & WithLastStopTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithLastStatusChangeTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithLastErrorCode(const char *value)
ConfigurationRecorderStatus & WithLastStopTime(Aws::Utils::DateTime &&value)
ConfigurationRecorderStatus & WithLastErrorMessage(const Aws::String &value)
ConfigurationRecorderStatus & WithLastErrorCode(Aws::String &&value)
ConfigurationRecorderStatus & WithLastErrorCode(const Aws::String &value)
ConfigurationRecorderStatus & WithLastStatus(RecorderStatus &&value)
ConfigurationRecorderStatus & WithLastStartTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithLastStatusChangeTime(Aws::Utils::DateTime &&value)
AWS_CONFIGSERVICE_API ConfigurationRecorderStatus(Aws::Utils::Json::JsonView jsonValue)
ConfigurationRecorderStatus & WithName(const Aws::String &value)
ConfigurationRecorderStatus & WithName(const char *value)
ConfigurationRecorderStatus & WithLastStatus(const RecorderStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue