AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ConfigExportDeliveryInfo.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/DeliveryStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConfigService {
22namespace Model {
23
33 public:
34 AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo() = default;
35 AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline DeliveryStatus GetLastStatus() const { return m_lastStatus; }
44 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
45 inline void SetLastStatus(DeliveryStatus value) {
46 m_lastStatusHasBeenSet = true;
47 m_lastStatus = value;
48 }
50 SetLastStatus(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLastErrorCode() const { return m_lastErrorCode; }
60 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
61 template <typename LastErrorCodeT = Aws::String>
62 void SetLastErrorCode(LastErrorCodeT&& value) {
63 m_lastErrorCodeHasBeenSet = true;
64 m_lastErrorCode = std::forward<LastErrorCodeT>(value);
65 }
66 template <typename LastErrorCodeT = Aws::String>
68 SetLastErrorCode(std::forward<LastErrorCodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
78 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
79 template <typename LastErrorMessageT = Aws::String>
80 void SetLastErrorMessage(LastErrorMessageT&& value) {
81 m_lastErrorMessageHasBeenSet = true;
82 m_lastErrorMessage = std::forward<LastErrorMessageT>(value);
83 }
84 template <typename LastErrorMessageT = Aws::String>
85 ConfigExportDeliveryInfo& WithLastErrorMessage(LastErrorMessageT&& value) {
86 SetLastErrorMessage(std::forward<LastErrorMessageT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastAttemptTime() const { return m_lastAttemptTime; }
96 inline bool LastAttemptTimeHasBeenSet() const { return m_lastAttemptTimeHasBeenSet; }
97 template <typename LastAttemptTimeT = Aws::Utils::DateTime>
98 void SetLastAttemptTime(LastAttemptTimeT&& value) {
99 m_lastAttemptTimeHasBeenSet = true;
100 m_lastAttemptTime = std::forward<LastAttemptTimeT>(value);
101 }
102 template <typename LastAttemptTimeT = Aws::Utils::DateTime>
104 SetLastAttemptTime(std::forward<LastAttemptTimeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetLastSuccessfulTime() const { return m_lastSuccessfulTime; }
114 inline bool LastSuccessfulTimeHasBeenSet() const { return m_lastSuccessfulTimeHasBeenSet; }
115 template <typename LastSuccessfulTimeT = Aws::Utils::DateTime>
116 void SetLastSuccessfulTime(LastSuccessfulTimeT&& value) {
117 m_lastSuccessfulTimeHasBeenSet = true;
118 m_lastSuccessfulTime = std::forward<LastSuccessfulTimeT>(value);
119 }
120 template <typename LastSuccessfulTimeT = Aws::Utils::DateTime>
121 ConfigExportDeliveryInfo& WithLastSuccessfulTime(LastSuccessfulTimeT&& value) {
122 SetLastSuccessfulTime(std::forward<LastSuccessfulTimeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetNextDeliveryTime() const { return m_nextDeliveryTime; }
132 inline bool NextDeliveryTimeHasBeenSet() const { return m_nextDeliveryTimeHasBeenSet; }
133 template <typename NextDeliveryTimeT = Aws::Utils::DateTime>
134 void SetNextDeliveryTime(NextDeliveryTimeT&& value) {
135 m_nextDeliveryTimeHasBeenSet = true;
136 m_nextDeliveryTime = std::forward<NextDeliveryTimeT>(value);
137 }
138 template <typename NextDeliveryTimeT = Aws::Utils::DateTime>
139 ConfigExportDeliveryInfo& WithNextDeliveryTime(NextDeliveryTimeT&& value) {
140 SetNextDeliveryTime(std::forward<NextDeliveryTimeT>(value));
141 return *this;
142 }
144 private:
146
147 Aws::String m_lastErrorCode;
148
149 Aws::String m_lastErrorMessage;
150
151 Aws::Utils::DateTime m_lastAttemptTime{};
152
153 Aws::Utils::DateTime m_lastSuccessfulTime{};
154
155 Aws::Utils::DateTime m_nextDeliveryTime{};
156 bool m_lastStatusHasBeenSet = false;
157 bool m_lastErrorCodeHasBeenSet = false;
158 bool m_lastErrorMessageHasBeenSet = false;
159 bool m_lastAttemptTimeHasBeenSet = false;
160 bool m_lastSuccessfulTimeHasBeenSet = false;
161 bool m_nextDeliveryTimeHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace ConfigService
166} // namespace Aws
ConfigExportDeliveryInfo & WithLastErrorCode(LastErrorCodeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigExportDeliveryInfo & WithNextDeliveryTime(NextDeliveryTimeT &&value)
ConfigExportDeliveryInfo & WithLastErrorMessage(LastErrorMessageT &&value)
ConfigExportDeliveryInfo & WithLastStatus(DeliveryStatus value)
AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo()=default
AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo(Aws::Utils::Json::JsonView jsonValue)
ConfigExportDeliveryInfo & WithLastAttemptTime(LastAttemptTimeT &&value)
AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigExportDeliveryInfo & WithLastSuccessfulTime(LastSuccessfulTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue