AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
PutSegmentSubscriptionResult.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/SegmentSubscriptionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CustomerProfiles {
26namespace Model {
28 public:
29 AWS_CUSTOMERPROFILES_API PutSegmentSubscriptionResult() = default;
32
34
42 inline SegmentSubscriptionStatus GetStatus() const { return m_status; }
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
57 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
58 template <typename ScheduleConfigurationT = ScheduleConfiguration>
59 void SetScheduleConfiguration(ScheduleConfigurationT&& value) {
60 m_scheduleConfigurationHasBeenSet = true;
61 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
62 }
63 template <typename ScheduleConfigurationT = ScheduleConfiguration>
65 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
75 template <typename StartedAtT = Aws::Utils::DateTime>
76 void SetStartedAt(StartedAtT&& value) {
77 m_startedAtHasBeenSet = true;
78 m_startedAt = std::forward<StartedAtT>(value);
79 }
80 template <typename StartedAtT = Aws::Utils::DateTime>
82 SetStartedAt(std::forward<StartedAtT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
102
103 private:
105
106 ScheduleConfiguration m_scheduleConfiguration;
107
108 Aws::Utils::DateTime m_startedAt{};
109
110 Aws::String m_requestId;
111 Aws::Http::HttpResponseCode m_HttpResponseCode;
112 bool m_statusHasBeenSet = false;
113 bool m_scheduleConfigurationHasBeenSet = false;
114 bool m_startedAtHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace CustomerProfiles
120} // namespace Aws
PutSegmentSubscriptionResult & WithScheduleConfiguration(ScheduleConfigurationT &&value)
PutSegmentSubscriptionResult & WithRequestId(RequestIdT &&value)
PutSegmentSubscriptionResult & WithStartedAt(StartedAtT &&value)
AWS_CUSTOMERPROFILES_API PutSegmentSubscriptionResult()=default
AWS_CUSTOMERPROFILES_API PutSegmentSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutSegmentSubscriptionResult & WithStatus(SegmentSubscriptionStatus value)
AWS_CUSTOMERPROFILES_API PutSegmentSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue