AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
GetSegmentSubscriptionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/ScheduleConfiguration.h>
12#include <aws/customer-profiles/model/ScheduledExecutions.h>
13#include <aws/customer-profiles/model/SegmentSubscriptionStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles {
27namespace Model {
29 public:
30 AWS_CUSTOMERPROFILES_API GetSegmentSubscriptionResult() = default;
33
35
43 inline SegmentSubscriptionStatus GetStatus() const { return m_status; }
45 m_statusHasBeenSet = true;
46 m_status = value;
47 }
49 SetStatus(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
76 template <typename ScheduleConfigurationT = ScheduleConfiguration>
77 void SetScheduleConfiguration(ScheduleConfigurationT&& value) {
78 m_scheduleConfigurationHasBeenSet = true;
79 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
80 }
81 template <typename ScheduleConfigurationT = ScheduleConfiguration>
83 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
84 return *this;
85 }
87
89
92 inline const ScheduledExecutions& GetScheduledExecutions() const { return m_scheduledExecutions; }
93 template <typename ScheduledExecutionsT = ScheduledExecutions>
94 void SetScheduledExecutions(ScheduledExecutionsT&& value) {
95 m_scheduledExecutionsHasBeenSet = true;
96 m_scheduledExecutions = std::forward<ScheduledExecutionsT>(value);
97 }
98 template <typename ScheduledExecutionsT = ScheduledExecutions>
100 SetScheduledExecutions(std::forward<ScheduledExecutionsT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
110 template <typename StartedAtT = Aws::Utils::DateTime>
111 void SetStartedAt(StartedAtT&& value) {
112 m_startedAtHasBeenSet = true;
113 m_startedAt = std::forward<StartedAtT>(value);
114 }
115 template <typename StartedAtT = Aws::Utils::DateTime>
117 SetStartedAt(std::forward<StartedAtT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
127 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
128 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
129 m_lastUpdatedAtHasBeenSet = true;
130 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
131 }
132 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
134 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
157
158 Aws::String m_message;
159
160 ScheduleConfiguration m_scheduleConfiguration;
161
162 ScheduledExecutions m_scheduledExecutions;
163
164 Aws::Utils::DateTime m_startedAt{};
165
166 Aws::Utils::DateTime m_lastUpdatedAt{};
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_statusHasBeenSet = false;
171 bool m_messageHasBeenSet = false;
172 bool m_scheduleConfigurationHasBeenSet = false;
173 bool m_scheduledExecutionsHasBeenSet = false;
174 bool m_startedAtHasBeenSet = false;
175 bool m_lastUpdatedAtHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace CustomerProfiles
181} // namespace Aws
GetSegmentSubscriptionResult & WithRequestId(RequestIdT &&value)
GetSegmentSubscriptionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetSegmentSubscriptionResult & WithStatus(SegmentSubscriptionStatus value)
GetSegmentSubscriptionResult & WithMessage(MessageT &&value)
AWS_CUSTOMERPROFILES_API GetSegmentSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSegmentSubscriptionResult & WithStartedAt(StartedAtT &&value)
GetSegmentSubscriptionResult & WithScheduledExecutions(ScheduledExecutionsT &&value)
GetSegmentSubscriptionResult & WithScheduleConfiguration(ScheduleConfigurationT &&value)
AWS_CUSTOMERPROFILES_API GetSegmentSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CUSTOMERPROFILES_API GetSegmentSubscriptionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue