AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
36 {
37 public:
38 AWS_CONFIGSERVICE_API ConfigurationRecorderStatus() = default;
41 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 ConfigurationRecorderStatus& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 ConfigurationRecorderStatus& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetLastStartTime() const { return m_lastStartTime; }
73 inline bool LastStartTimeHasBeenSet() const { return m_lastStartTimeHasBeenSet; }
74 template<typename LastStartTimeT = Aws::Utils::DateTime>
75 void SetLastStartTime(LastStartTimeT&& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = std::forward<LastStartTimeT>(value); }
76 template<typename LastStartTimeT = Aws::Utils::DateTime>
77 ConfigurationRecorderStatus& WithLastStartTime(LastStartTimeT&& value) { SetLastStartTime(std::forward<LastStartTimeT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetLastStopTime() const { return m_lastStopTime; }
85 inline bool LastStopTimeHasBeenSet() const { return m_lastStopTimeHasBeenSet; }
86 template<typename LastStopTimeT = Aws::Utils::DateTime>
87 void SetLastStopTime(LastStopTimeT&& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = std::forward<LastStopTimeT>(value); }
88 template<typename LastStopTimeT = Aws::Utils::DateTime>
89 ConfigurationRecorderStatus& WithLastStopTime(LastStopTimeT&& value) { SetLastStopTime(std::forward<LastStopTimeT>(value)); return *this;}
91
93
96 inline bool GetRecording() const { return m_recording; }
97 inline bool RecordingHasBeenSet() const { return m_recordingHasBeenSet; }
98 inline void SetRecording(bool value) { m_recordingHasBeenSet = true; m_recording = value; }
99 inline ConfigurationRecorderStatus& WithRecording(bool value) { SetRecording(value); return *this;}
101
103
106 inline RecorderStatus GetLastStatus() const { return m_lastStatus; }
107 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
108 inline void SetLastStatus(RecorderStatus value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
111
113
116 inline const Aws::String& GetLastErrorCode() const { return m_lastErrorCode; }
117 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
118 template<typename LastErrorCodeT = Aws::String>
119 void SetLastErrorCode(LastErrorCodeT&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::forward<LastErrorCodeT>(value); }
120 template<typename LastErrorCodeT = Aws::String>
121 ConfigurationRecorderStatus& WithLastErrorCode(LastErrorCodeT&& value) { SetLastErrorCode(std::forward<LastErrorCodeT>(value)); return *this;}
123
125
128 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
129 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
130 template<typename LastErrorMessageT = Aws::String>
131 void SetLastErrorMessage(LastErrorMessageT&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::forward<LastErrorMessageT>(value); }
132 template<typename LastErrorMessageT = Aws::String>
133 ConfigurationRecorderStatus& WithLastErrorMessage(LastErrorMessageT&& value) { SetLastErrorMessage(std::forward<LastErrorMessageT>(value)); return *this;}
135
137
141 inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const { return m_lastStatusChangeTime; }
142 inline bool LastStatusChangeTimeHasBeenSet() const { return m_lastStatusChangeTimeHasBeenSet; }
143 template<typename LastStatusChangeTimeT = Aws::Utils::DateTime>
144 void SetLastStatusChangeTime(LastStatusChangeTimeT&& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = std::forward<LastStatusChangeTimeT>(value); }
145 template<typename LastStatusChangeTimeT = Aws::Utils::DateTime>
146 ConfigurationRecorderStatus& WithLastStatusChangeTime(LastStatusChangeTimeT&& value) { SetLastStatusChangeTime(std::forward<LastStatusChangeTimeT>(value)); return *this;}
148
150
154 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
155 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
156 template<typename ServicePrincipalT = Aws::String>
157 void SetServicePrincipal(ServicePrincipalT&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::forward<ServicePrincipalT>(value); }
158 template<typename ServicePrincipalT = Aws::String>
159 ConfigurationRecorderStatus& WithServicePrincipal(ServicePrincipalT&& value) { SetServicePrincipal(std::forward<ServicePrincipalT>(value)); return *this;}
161 private:
162
163 Aws::String m_arn;
164 bool m_arnHasBeenSet = false;
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
169 Aws::Utils::DateTime m_lastStartTime{};
170 bool m_lastStartTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastStopTime{};
173 bool m_lastStopTimeHasBeenSet = false;
174
175 bool m_recording{false};
176 bool m_recordingHasBeenSet = false;
177
179 bool m_lastStatusHasBeenSet = false;
180
181 Aws::String m_lastErrorCode;
182 bool m_lastErrorCodeHasBeenSet = false;
183
184 Aws::String m_lastErrorMessage;
185 bool m_lastErrorMessageHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastStatusChangeTime{};
188 bool m_lastStatusChangeTimeHasBeenSet = false;
189
190 Aws::String m_servicePrincipal;
191 bool m_servicePrincipalHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace ConfigService
196} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationRecorderStatus & WithLastStartTime(LastStartTimeT &&value)
ConfigurationRecorderStatus & WithName(NameT &&value)
AWS_CONFIGSERVICE_API ConfigurationRecorderStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationRecorderStatus & WithLastStatusChangeTime(LastStatusChangeTimeT &&value)
AWS_CONFIGSERVICE_API ConfigurationRecorderStatus()=default
ConfigurationRecorderStatus & WithLastStopTime(LastStopTimeT &&value)
ConfigurationRecorderStatus & WithLastErrorCode(LastErrorCodeT &&value)
AWS_CONFIGSERVICE_API ConfigurationRecorderStatus(Aws::Utils::Json::JsonView jsonValue)
ConfigurationRecorderStatus & WithServicePrincipal(ServicePrincipalT &&value)
ConfigurationRecorderStatus & WithLastStatus(RecorderStatus value)
ConfigurationRecorderStatus & WithLastErrorMessage(LastErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue