AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
AggregatedSourceStatus.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/AggregatedSourceStatusType.h>
9#include <aws/config/model/AggregatedSourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService {
23namespace Model {
24
32 public:
33 AWS_CONFIGSERVICE_API AggregatedSourceStatus() = default;
34 AWS_CONFIGSERVICE_API AggregatedSourceStatus(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetSourceId() const { return m_sourceId; }
43 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
44 template <typename SourceIdT = Aws::String>
45 void SetSourceId(SourceIdT&& value) {
46 m_sourceIdHasBeenSet = true;
47 m_sourceId = std::forward<SourceIdT>(value);
48 }
49 template <typename SourceIdT = Aws::String>
51 SetSourceId(std::forward<SourceIdT>(value));
52 return *this;
53 }
55
57
60 inline AggregatedSourceType GetSourceType() const { return m_sourceType; }
61 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
63 m_sourceTypeHasBeenSet = true;
64 m_sourceType = value;
65 }
67 SetSourceType(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
77 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
78 template <typename AwsRegionT = Aws::String>
79 void SetAwsRegion(AwsRegionT&& value) {
80 m_awsRegionHasBeenSet = true;
81 m_awsRegion = std::forward<AwsRegionT>(value);
82 }
83 template <typename AwsRegionT = Aws::String>
85 SetAwsRegion(std::forward<AwsRegionT>(value));
86 return *this;
87 }
89
91
97 inline AggregatedSourceStatusType GetLastUpdateStatus() const { return m_lastUpdateStatus; }
98 inline bool LastUpdateStatusHasBeenSet() const { return m_lastUpdateStatusHasBeenSet; }
100 m_lastUpdateStatusHasBeenSet = true;
101 m_lastUpdateStatus = value;
102 }
104 SetLastUpdateStatus(value);
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
114 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
115 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
116 void SetLastUpdateTime(LastUpdateTimeT&& value) {
117 m_lastUpdateTimeHasBeenSet = true;
118 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
119 }
120 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
121 AggregatedSourceStatus& WithLastUpdateTime(LastUpdateTimeT&& value) {
122 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetLastErrorCode() const { return m_lastErrorCode; }
133 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
134 template <typename LastErrorCodeT = Aws::String>
135 void SetLastErrorCode(LastErrorCodeT&& value) {
136 m_lastErrorCodeHasBeenSet = true;
137 m_lastErrorCode = std::forward<LastErrorCodeT>(value);
138 }
139 template <typename LastErrorCodeT = Aws::String>
140 AggregatedSourceStatus& WithLastErrorCode(LastErrorCodeT&& value) {
141 SetLastErrorCode(std::forward<LastErrorCodeT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
152 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
153 template <typename LastErrorMessageT = Aws::String>
154 void SetLastErrorMessage(LastErrorMessageT&& value) {
155 m_lastErrorMessageHasBeenSet = true;
156 m_lastErrorMessage = std::forward<LastErrorMessageT>(value);
157 }
158 template <typename LastErrorMessageT = Aws::String>
159 AggregatedSourceStatus& WithLastErrorMessage(LastErrorMessageT&& value) {
160 SetLastErrorMessage(std::forward<LastErrorMessageT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_sourceId;
166
168
169 Aws::String m_awsRegion;
170
172
173 Aws::Utils::DateTime m_lastUpdateTime{};
174
175 Aws::String m_lastErrorCode;
176
177 Aws::String m_lastErrorMessage;
178 bool m_sourceIdHasBeenSet = false;
179 bool m_sourceTypeHasBeenSet = false;
180 bool m_awsRegionHasBeenSet = false;
181 bool m_lastUpdateStatusHasBeenSet = false;
182 bool m_lastUpdateTimeHasBeenSet = false;
183 bool m_lastErrorCodeHasBeenSet = false;
184 bool m_lastErrorMessageHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace ConfigService
189} // namespace Aws
AggregatedSourceStatus & WithLastErrorMessage(LastErrorMessageT &&value)
AggregatedSourceStatus & WithLastUpdateStatus(AggregatedSourceStatusType value)
AWS_CONFIGSERVICE_API AggregatedSourceStatus(Aws::Utils::Json::JsonView jsonValue)
AggregatedSourceStatus & WithLastErrorCode(LastErrorCodeT &&value)
AggregatedSourceStatus & WithSourceType(AggregatedSourceType value)
AggregatedSourceStatus & WithAwsRegion(AwsRegionT &&value)
AWS_CONFIGSERVICE_API AggregatedSourceStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregatedSourceStatusType GetLastUpdateStatus() const
void SetLastUpdateStatus(AggregatedSourceStatusType value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
AWS_CONFIGSERVICE_API AggregatedSourceStatus()=default
AggregatedSourceStatus & WithLastUpdateTime(LastUpdateTimeT &&value)
AggregatedSourceStatus & WithSourceId(SourceIdT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue