AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AggregatedSourceStatus.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/AggregatedSourceType.h>
10#include <aws/config/model/AggregatedSourceStatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConfigService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CONFIGSERVICE_API AggregatedSourceStatus() = default;
39 AWS_CONFIGSERVICE_API AggregatedSourceStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSourceId() const { return m_sourceId; }
49 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
50 template<typename SourceIdT = Aws::String>
51 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
52 template<typename SourceIdT = Aws::String>
53 AggregatedSourceStatus& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
55
57
60 inline AggregatedSourceType GetSourceType() const { return m_sourceType; }
61 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
62 inline void SetSourceType(AggregatedSourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
65
67
70 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
71 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
72 template<typename AwsRegionT = Aws::String>
73 void SetAwsRegion(AwsRegionT&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
74 template<typename AwsRegionT = Aws::String>
75 AggregatedSourceStatus& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
77
79
85 inline AggregatedSourceStatusType GetLastUpdateStatus() const { return m_lastUpdateStatus; }
86 inline bool LastUpdateStatusHasBeenSet() const { return m_lastUpdateStatusHasBeenSet; }
87 inline void SetLastUpdateStatus(AggregatedSourceStatusType value) { m_lastUpdateStatusHasBeenSet = true; m_lastUpdateStatus = value; }
90
92
95 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
96 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
97 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
98 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
99 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
100 AggregatedSourceStatus& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
102
104
108 inline const Aws::String& GetLastErrorCode() const { return m_lastErrorCode; }
109 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
110 template<typename LastErrorCodeT = Aws::String>
111 void SetLastErrorCode(LastErrorCodeT&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::forward<LastErrorCodeT>(value); }
112 template<typename LastErrorCodeT = Aws::String>
113 AggregatedSourceStatus& WithLastErrorCode(LastErrorCodeT&& value) { SetLastErrorCode(std::forward<LastErrorCodeT>(value)); return *this;}
115
117
121 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
122 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
123 template<typename LastErrorMessageT = Aws::String>
124 void SetLastErrorMessage(LastErrorMessageT&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::forward<LastErrorMessageT>(value); }
125 template<typename LastErrorMessageT = Aws::String>
126 AggregatedSourceStatus& WithLastErrorMessage(LastErrorMessageT&& value) { SetLastErrorMessage(std::forward<LastErrorMessageT>(value)); return *this;}
128 private:
129
130 Aws::String m_sourceId;
131 bool m_sourceIdHasBeenSet = false;
132
134 bool m_sourceTypeHasBeenSet = false;
135
136 Aws::String m_awsRegion;
137 bool m_awsRegionHasBeenSet = false;
138
140 bool m_lastUpdateStatusHasBeenSet = false;
141
142 Aws::Utils::DateTime m_lastUpdateTime{};
143 bool m_lastUpdateTimeHasBeenSet = false;
144
145 Aws::String m_lastErrorCode;
146 bool m_lastErrorCodeHasBeenSet = false;
147
148 Aws::String m_lastErrorMessage;
149 bool m_lastErrorMessageHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace ConfigService
154} // 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