AWS SDK for C++  0.14.3
AWS SDK for C++
ConfigurationRecorderStatus.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ConfigService
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ConfigurationRecorderStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline ConfigurationRecorderStatus& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline ConfigurationRecorderStatus& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline ConfigurationRecorderStatus& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const Aws::Utils::DateTime& GetLastStartTime() const{ return m_lastStartTime; }
85 
89  inline void SetLastStartTime(const Aws::Utils::DateTime& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = value; }
90 
94  inline void SetLastStartTime(Aws::Utils::DateTime&& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = value; }
95 
99  inline ConfigurationRecorderStatus& WithLastStartTime(const Aws::Utils::DateTime& value) { SetLastStartTime(value); return *this;}
100 
104  inline ConfigurationRecorderStatus& WithLastStartTime(Aws::Utils::DateTime&& value) { SetLastStartTime(value); return *this;}
105 
109  inline const Aws::Utils::DateTime& GetLastStopTime() const{ return m_lastStopTime; }
110 
114  inline void SetLastStopTime(const Aws::Utils::DateTime& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = value; }
115 
119  inline void SetLastStopTime(Aws::Utils::DateTime&& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = value; }
120 
124  inline ConfigurationRecorderStatus& WithLastStopTime(const Aws::Utils::DateTime& value) { SetLastStopTime(value); return *this;}
125 
129  inline ConfigurationRecorderStatus& WithLastStopTime(Aws::Utils::DateTime&& value) { SetLastStopTime(value); return *this;}
130 
134  inline bool GetRecording() const{ return m_recording; }
135 
139  inline void SetRecording(bool value) { m_recordingHasBeenSet = true; m_recording = value; }
140 
144  inline ConfigurationRecorderStatus& WithRecording(bool value) { SetRecording(value); return *this;}
145 
149  inline const RecorderStatus& GetLastStatus() const{ return m_lastStatus; }
150 
154  inline void SetLastStatus(const RecorderStatus& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
155 
159  inline void SetLastStatus(RecorderStatus&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
160 
164  inline ConfigurationRecorderStatus& WithLastStatus(const RecorderStatus& value) { SetLastStatus(value); return *this;}
165 
169  inline ConfigurationRecorderStatus& WithLastStatus(RecorderStatus&& value) { SetLastStatus(value); return *this;}
170 
174  inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; }
175 
179  inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
180 
184  inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
185 
189  inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); }
190 
194  inline ConfigurationRecorderStatus& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;}
195 
199  inline ConfigurationRecorderStatus& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(value); return *this;}
200 
204  inline ConfigurationRecorderStatus& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;}
205 
209  inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; }
210 
214  inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
215 
219  inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
220 
224  inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); }
225 
229  inline ConfigurationRecorderStatus& WithLastErrorMessage(const Aws::String& value) { SetLastErrorMessage(value); return *this;}
230 
234  inline ConfigurationRecorderStatus& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(value); return *this;}
235 
239  inline ConfigurationRecorderStatus& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;}
240 
244  inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const{ return m_lastStatusChangeTime; }
245 
249  inline void SetLastStatusChangeTime(const Aws::Utils::DateTime& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = value; }
250 
254  inline void SetLastStatusChangeTime(Aws::Utils::DateTime&& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = value; }
255 
259  inline ConfigurationRecorderStatus& WithLastStatusChangeTime(const Aws::Utils::DateTime& value) { SetLastStatusChangeTime(value); return *this;}
260 
264  inline ConfigurationRecorderStatus& WithLastStatusChangeTime(Aws::Utils::DateTime&& value) { SetLastStatusChangeTime(value); return *this;}
265 
266  private:
267  Aws::String m_name;
268  bool m_nameHasBeenSet;
269  Aws::Utils::DateTime m_lastStartTime;
270  bool m_lastStartTimeHasBeenSet;
271  Aws::Utils::DateTime m_lastStopTime;
272  bool m_lastStopTimeHasBeenSet;
273  bool m_recording;
274  bool m_recordingHasBeenSet;
275  RecorderStatus m_lastStatus;
276  bool m_lastStatusHasBeenSet;
277  Aws::String m_lastErrorCode;
278  bool m_lastErrorCodeHasBeenSet;
279  Aws::String m_lastErrorMessage;
280  bool m_lastErrorMessageHasBeenSet;
281  Aws::Utils::DateTime m_lastStatusChangeTime;
282  bool m_lastStatusChangeTimeHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace ConfigService
287 } // namespace Aws
ConfigurationRecorderStatus & WithLastStartTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithName(const Aws::String &value)
ConfigurationRecorderStatus & WithLastStopTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithLastErrorCode(const Aws::String &value)
ConfigurationRecorderStatus & WithLastStatusChangeTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithLastStopTime(Aws::Utils::DateTime &&value)
ConfigurationRecorderStatus & WithName(const char *value)
ConfigurationRecorderStatus & WithLastStatus(const RecorderStatus &value)
ConfigurationRecorderStatus & WithLastErrorCode(Aws::String &&value)
ConfigurationRecorderStatus & WithLastErrorCode(const char *value)
ConfigurationRecorderStatus & WithLastErrorMessage(const char *value)
ConfigurationRecorderStatus & WithLastStatusChangeTime(Aws::Utils::DateTime &&value)
void SetLastStatusChangeTime(const Aws::Utils::DateTime &value)
ConfigurationRecorderStatus & WithLastErrorMessage(Aws::String &&value)
ConfigurationRecorderStatus & WithLastErrorMessage(const Aws::String &value)
ConfigurationRecorderStatus & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfigurationRecorderStatus & WithLastStatus(RecorderStatus &&value)
#define AWS_CONFIGSERVICE_API
ConfigurationRecorderStatus & WithLastStartTime(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).