AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ConfigStreamDeliveryInfo.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
31 public:
32 AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo() = default;
33 AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline DeliveryStatus GetLastStatus() const { return m_lastStatus; }
46 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
47 inline void SetLastStatus(DeliveryStatus value) {
48 m_lastStatusHasBeenSet = true;
49 m_lastStatus = value;
50 }
52 SetLastStatus(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetLastErrorCode() const { return m_lastErrorCode; }
62 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
63 template <typename LastErrorCodeT = Aws::String>
64 void SetLastErrorCode(LastErrorCodeT&& value) {
65 m_lastErrorCodeHasBeenSet = true;
66 m_lastErrorCode = std::forward<LastErrorCodeT>(value);
67 }
68 template <typename LastErrorCodeT = Aws::String>
70 SetLastErrorCode(std::forward<LastErrorCodeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
80 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
81 template <typename LastErrorMessageT = Aws::String>
82 void SetLastErrorMessage(LastErrorMessageT&& value) {
83 m_lastErrorMessageHasBeenSet = true;
84 m_lastErrorMessage = std::forward<LastErrorMessageT>(value);
85 }
86 template <typename LastErrorMessageT = Aws::String>
87 ConfigStreamDeliveryInfo& WithLastErrorMessage(LastErrorMessageT&& value) {
88 SetLastErrorMessage(std::forward<LastErrorMessageT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const { return m_lastStatusChangeTime; }
98 inline bool LastStatusChangeTimeHasBeenSet() const { return m_lastStatusChangeTimeHasBeenSet; }
99 template <typename LastStatusChangeTimeT = Aws::Utils::DateTime>
100 void SetLastStatusChangeTime(LastStatusChangeTimeT&& value) {
101 m_lastStatusChangeTimeHasBeenSet = true;
102 m_lastStatusChangeTime = std::forward<LastStatusChangeTimeT>(value);
103 }
104 template <typename LastStatusChangeTimeT = Aws::Utils::DateTime>
105 ConfigStreamDeliveryInfo& WithLastStatusChangeTime(LastStatusChangeTimeT&& value) {
106 SetLastStatusChangeTime(std::forward<LastStatusChangeTimeT>(value));
107 return *this;
108 }
110 private:
112
113 Aws::String m_lastErrorCode;
114
115 Aws::String m_lastErrorMessage;
116
117 Aws::Utils::DateTime m_lastStatusChangeTime{};
118 bool m_lastStatusHasBeenSet = false;
119 bool m_lastErrorCodeHasBeenSet = false;
120 bool m_lastErrorMessageHasBeenSet = false;
121 bool m_lastStatusChangeTimeHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace ConfigService
126} // namespace Aws
AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigStreamDeliveryInfo & WithLastErrorCode(LastErrorCodeT &&value)
ConfigStreamDeliveryInfo & WithLastStatusChangeTime(LastStatusChangeTimeT &&value)
AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo()=default
ConfigStreamDeliveryInfo & WithLastErrorMessage(LastErrorMessageT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigStreamDeliveryInfo & WithLastStatus(DeliveryStatus value)
const Aws::Utils::DateTime & GetLastStatusChangeTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue