AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DeliveryStatus& GetLastStatus() const{ return m_lastStatus; }
52 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
53 inline void SetLastStatus(const DeliveryStatus& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
54 inline void SetLastStatus(DeliveryStatus&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
55 inline ConfigStreamDeliveryInfo& WithLastStatus(const DeliveryStatus& value) { SetLastStatus(value); return *this;}
56 inline ConfigStreamDeliveryInfo& WithLastStatus(DeliveryStatus&& value) { SetLastStatus(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; }
64 inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
65 inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
66 inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::move(value); }
67 inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); }
68 inline ConfigStreamDeliveryInfo& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;}
69 inline ConfigStreamDeliveryInfo& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(std::move(value)); return *this;}
70 inline ConfigStreamDeliveryInfo& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;}
72
74
77 inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; }
78 inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
79 inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
80 inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::move(value); }
81 inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); }
83 inline ConfigStreamDeliveryInfo& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(std::move(value)); return *this;}
84 inline ConfigStreamDeliveryInfo& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const{ return m_lastStatusChangeTime; }
92 inline bool LastStatusChangeTimeHasBeenSet() const { return m_lastStatusChangeTimeHasBeenSet; }
93 inline void SetLastStatusChangeTime(const Aws::Utils::DateTime& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = value; }
94 inline void SetLastStatusChangeTime(Aws::Utils::DateTime&& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = std::move(value); }
98 private:
99
100 DeliveryStatus m_lastStatus;
101 bool m_lastStatusHasBeenSet = false;
102
103 Aws::String m_lastErrorCode;
104 bool m_lastErrorCodeHasBeenSet = false;
105
106 Aws::String m_lastErrorMessage;
107 bool m_lastErrorMessageHasBeenSet = false;
108
109 Aws::Utils::DateTime m_lastStatusChangeTime;
110 bool m_lastStatusChangeTimeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ConfigService
115} // namespace Aws
ConfigStreamDeliveryInfo & WithLastErrorMessage(const char *value)
ConfigStreamDeliveryInfo & WithLastStatus(DeliveryStatus &&value)
ConfigStreamDeliveryInfo & WithLastErrorCode(const Aws::String &value)
AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigStreamDeliveryInfo & WithLastErrorMessage(Aws::String &&value)
AWS_CONFIGSERVICE_API ConfigStreamDeliveryInfo(Aws::Utils::Json::JsonView jsonValue)
ConfigStreamDeliveryInfo & WithLastErrorCode(const char *value)
ConfigStreamDeliveryInfo & WithLastErrorMessage(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigStreamDeliveryInfo & WithLastStatus(const DeliveryStatus &value)
ConfigStreamDeliveryInfo & WithLastStatusChangeTime(Aws::Utils::DateTime &&value)
ConfigStreamDeliveryInfo & WithLastStatusChangeTime(const Aws::Utils::DateTime &value)
void SetLastStatusChangeTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastStatusChangeTime() const
ConfigStreamDeliveryInfo & WithLastErrorCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue