AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/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
35 {
36 public:
37 AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo() = default;
38 AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline DeliveryStatus GetLastStatus() const { return m_lastStatus; }
52 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
53 inline void SetLastStatus(DeliveryStatus value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
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) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::forward<LastErrorCodeT>(value); }
65 template<typename LastErrorCodeT = Aws::String>
66 ConfigStreamDeliveryInfo& WithLastErrorCode(LastErrorCodeT&& value) { SetLastErrorCode(std::forward<LastErrorCodeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetLastErrorMessage() const { return m_lastErrorMessage; }
74 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
75 template<typename LastErrorMessageT = Aws::String>
76 void SetLastErrorMessage(LastErrorMessageT&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::forward<LastErrorMessageT>(value); }
77 template<typename LastErrorMessageT = Aws::String>
78 ConfigStreamDeliveryInfo& WithLastErrorMessage(LastErrorMessageT&& value) { SetLastErrorMessage(std::forward<LastErrorMessageT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const { return m_lastStatusChangeTime; }
86 inline bool LastStatusChangeTimeHasBeenSet() const { return m_lastStatusChangeTimeHasBeenSet; }
87 template<typename LastStatusChangeTimeT = Aws::Utils::DateTime>
88 void SetLastStatusChangeTime(LastStatusChangeTimeT&& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = std::forward<LastStatusChangeTimeT>(value); }
89 template<typename LastStatusChangeTimeT = Aws::Utils::DateTime>
90 ConfigStreamDeliveryInfo& WithLastStatusChangeTime(LastStatusChangeTimeT&& value) { SetLastStatusChangeTime(std::forward<LastStatusChangeTimeT>(value)); return *this;}
92 private:
93
95 bool m_lastStatusHasBeenSet = false;
96
97 Aws::String m_lastErrorCode;
98 bool m_lastErrorCodeHasBeenSet = false;
99
100 Aws::String m_lastErrorMessage;
101 bool m_lastErrorMessageHasBeenSet = false;
102
103 Aws::Utils::DateTime m_lastStatusChangeTime{};
104 bool m_lastStatusChangeTimeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ConfigService
109} // 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)
void SetLastStatusChangeTime(LastStatusChangeTimeT &&value)
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