AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CancelSubscriptionRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/RequestScope.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace AppMonetization {
20namespace Model {
21
28 public:
29 AWS_APPMONETIZATION_API CancelSubscriptionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CancelSubscription"; }
36
37 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
38
39 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline const Aws::String& GetAppId() const { return m_appId; }
46 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
47 template <typename AppIdT = Aws::String>
48 void SetAppId(AppIdT&& value) {
49 m_appIdHasBeenSet = true;
50 m_appId = std::forward<AppIdT>(value);
51 }
52 template <typename AppIdT = Aws::String>
54 SetAppId(std::forward<AppIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUserId() const { return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 template <typename UserIdT = Aws::String>
67 void SetUserId(UserIdT&& value) {
68 m_userIdHasBeenSet = true;
69 m_userId = std::forward<UserIdT>(value);
70 }
71 template <typename UserIdT = Aws::String>
73 SetUserId(std::forward<UserIdT>(value));
74 return *this;
75 }
77
79
93 inline const Aws::Utils::DateTime& GetEffectiveAt() const { return m_effectiveAt; }
94 inline bool EffectiveAtHasBeenSet() const { return m_effectiveAtHasBeenSet; }
95 template <typename EffectiveAtT = Aws::Utils::DateTime>
96 void SetEffectiveAt(EffectiveAtT&& value) {
97 m_effectiveAtHasBeenSet = true;
98 m_effectiveAt = std::forward<EffectiveAtT>(value);
99 }
100 template <typename EffectiveAtT = Aws::Utils::DateTime>
102 SetEffectiveAt(std::forward<EffectiveAtT>(value));
103 return *this;
104 }
106
108
111 inline RequestScope GetScope() const { return m_scope; }
112 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
113 inline void SetScope(RequestScope value) {
114 m_scopeHasBeenSet = true;
115 m_scope = value;
116 }
118 SetScope(value);
119 return *this;
120 }
122 private:
123 Aws::String m_appId;
124
125 Aws::String m_userId;
126
127 Aws::Utils::DateTime m_effectiveAt{};
128
130 bool m_appIdHasBeenSet = false;
131 bool m_userIdHasBeenSet = false;
132 bool m_effectiveAtHasBeenSet = false;
133 bool m_scopeHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace AppMonetization
138} // namespace Aws
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
CancelSubscriptionRequest & WithEffectiveAt(EffectiveAtT &&value)
CancelSubscriptionRequest & WithAppId(AppIdT &&value)
CancelSubscriptionRequest & WithScope(RequestScope value)
CancelSubscriptionRequest & WithUserId(UserIdT &&value)
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_APPMONETIZATION_API CancelSubscriptionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String