AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetSubscriptionResult.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/PendingChange.h>
9#include <aws/appmonetization/model/Subscription.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.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 AppMonetization {
26namespace Model {
33 public:
34 AWS_APPMONETIZATION_API GetSubscriptionResult() = default;
37
39
42 inline const Subscription& GetSubscription() const { return m_subscription; }
43 template <typename SubscriptionT = Subscription>
44 void SetSubscription(SubscriptionT&& value) {
45 m_subscriptionHasBeenSet = true;
46 m_subscription = std::forward<SubscriptionT>(value);
47 }
48 template <typename SubscriptionT = Subscription>
49 GetSubscriptionResult& WithSubscription(SubscriptionT&& value) {
50 SetSubscription(std::forward<SubscriptionT>(value));
51 return *this;
52 }
54
56
60 inline const PendingChange& GetPendingChange() const { return m_pendingChange; }
61 template <typename PendingChangeT = PendingChange>
62 void SetPendingChange(PendingChangeT&& value) {
63 m_pendingChangeHasBeenSet = true;
64 m_pendingChange = std::forward<PendingChangeT>(value);
65 }
66 template <typename PendingChangeT = PendingChange>
67 GetSubscriptionResult& WithPendingChange(PendingChangeT&& value) {
68 SetPendingChange(std::forward<PendingChangeT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Utils::DateTime& GetCurrentPeriodEndsAt() const { return m_currentPeriodEndsAt; }
80 template <typename CurrentPeriodEndsAtT = Aws::Utils::DateTime>
81 void SetCurrentPeriodEndsAt(CurrentPeriodEndsAtT&& value) {
82 m_currentPeriodEndsAtHasBeenSet = true;
83 m_currentPeriodEndsAt = std::forward<CurrentPeriodEndsAtT>(value);
84 }
85 template <typename CurrentPeriodEndsAtT = Aws::Utils::DateTime>
86 GetSubscriptionResult& WithCurrentPeriodEndsAt(CurrentPeriodEndsAtT&& value) {
87 SetCurrentPeriodEndsAt(std::forward<CurrentPeriodEndsAtT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 Subscription m_subscription;
110
111 PendingChange m_pendingChange;
112
113 Aws::Utils::DateTime m_currentPeriodEndsAt{};
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_subscriptionHasBeenSet = false;
118 bool m_pendingChangeHasBeenSet = false;
119 bool m_currentPeriodEndsAtHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AppMonetization
125} // namespace Aws
AWS_APPMONETIZATION_API GetSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCurrentPeriodEndsAt() const
AWS_APPMONETIZATION_API GetSubscriptionResult()=default
AWS_APPMONETIZATION_API GetSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetSubscriptionResult & WithPendingChange(PendingChangeT &&value)
GetSubscriptionResult & WithRequestId(RequestIdT &&value)
GetSubscriptionResult & WithCurrentPeriodEndsAt(CurrentPeriodEndsAtT &&value)
void SetCurrentPeriodEndsAt(CurrentPeriodEndsAtT &&value)
GetSubscriptionResult & WithSubscription(SubscriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue