AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.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
37 {
38 public:
39 AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo() = default;
40 AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline DeliveryStatus GetLastStatus() const { return m_lastStatus; }
50 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
51 inline void SetLastStatus(DeliveryStatus value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
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) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::forward<LastErrorCodeT>(value); }
63 template<typename LastErrorCodeT = Aws::String>
64 ConfigExportDeliveryInfo& WithLastErrorCode(LastErrorCodeT&& value) { SetLastErrorCode(std::forward<LastErrorCodeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
72 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
73 template<typename LastErrorMessageT = Aws::String>
74 void SetLastErrorMessage(LastErrorMessageT&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::forward<LastErrorMessageT>(value); }
75 template<typename LastErrorMessageT = Aws::String>
76 ConfigExportDeliveryInfo& WithLastErrorMessage(LastErrorMessageT&& value) { SetLastErrorMessage(std::forward<LastErrorMessageT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetLastAttemptTime() const { return m_lastAttemptTime; }
84 inline bool LastAttemptTimeHasBeenSet() const { return m_lastAttemptTimeHasBeenSet; }
85 template<typename LastAttemptTimeT = Aws::Utils::DateTime>
86 void SetLastAttemptTime(LastAttemptTimeT&& value) { m_lastAttemptTimeHasBeenSet = true; m_lastAttemptTime = std::forward<LastAttemptTimeT>(value); }
87 template<typename LastAttemptTimeT = Aws::Utils::DateTime>
88 ConfigExportDeliveryInfo& WithLastAttemptTime(LastAttemptTimeT&& value) { SetLastAttemptTime(std::forward<LastAttemptTimeT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetLastSuccessfulTime() const { return m_lastSuccessfulTime; }
96 inline bool LastSuccessfulTimeHasBeenSet() const { return m_lastSuccessfulTimeHasBeenSet; }
97 template<typename LastSuccessfulTimeT = Aws::Utils::DateTime>
98 void SetLastSuccessfulTime(LastSuccessfulTimeT&& value) { m_lastSuccessfulTimeHasBeenSet = true; m_lastSuccessfulTime = std::forward<LastSuccessfulTimeT>(value); }
99 template<typename LastSuccessfulTimeT = Aws::Utils::DateTime>
100 ConfigExportDeliveryInfo& WithLastSuccessfulTime(LastSuccessfulTimeT&& value) { SetLastSuccessfulTime(std::forward<LastSuccessfulTimeT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetNextDeliveryTime() const { return m_nextDeliveryTime; }
108 inline bool NextDeliveryTimeHasBeenSet() const { return m_nextDeliveryTimeHasBeenSet; }
109 template<typename NextDeliveryTimeT = Aws::Utils::DateTime>
110 void SetNextDeliveryTime(NextDeliveryTimeT&& value) { m_nextDeliveryTimeHasBeenSet = true; m_nextDeliveryTime = std::forward<NextDeliveryTimeT>(value); }
111 template<typename NextDeliveryTimeT = Aws::Utils::DateTime>
112 ConfigExportDeliveryInfo& WithNextDeliveryTime(NextDeliveryTimeT&& value) { SetNextDeliveryTime(std::forward<NextDeliveryTimeT>(value)); return *this;}
114 private:
115
117 bool m_lastStatusHasBeenSet = false;
118
119 Aws::String m_lastErrorCode;
120 bool m_lastErrorCodeHasBeenSet = false;
121
122 Aws::String m_lastErrorMessage;
123 bool m_lastErrorMessageHasBeenSet = false;
124
125 Aws::Utils::DateTime m_lastAttemptTime{};
126 bool m_lastAttemptTimeHasBeenSet = false;
127
128 Aws::Utils::DateTime m_lastSuccessfulTime{};
129 bool m_lastSuccessfulTimeHasBeenSet = false;
130
131 Aws::Utils::DateTime m_nextDeliveryTime{};
132 bool m_nextDeliveryTimeHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ConfigService
137} // namespace Aws
ConfigExportDeliveryInfo & WithLastErrorCode(LastErrorCodeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigExportDeliveryInfo & WithNextDeliveryTime(NextDeliveryTimeT &&value)
ConfigExportDeliveryInfo & WithLastErrorMessage(LastErrorMessageT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulTime() const
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