AWS SDK for C++

AWS SDK for C++ Version 1.11.864

Loading...
Searching...
No Matches
UpdateSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pricing-plan-manager/PricingPlanManagerRequest.h>
10#include <aws/pricing-plan-manager/PricingPlanManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PricingPlanManager {
16namespace Model {
17
21 public:
22 AWS_PRICINGPLANMANAGER_API UpdateSubscriptionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscription"; }
29
30 AWS_PRICINGPLANMANAGER_API Aws::String SerializePayload() const override;
31
32 AWS_PRICINGPLANMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPlanTier() const { return m_planTier; }
57 inline bool PlanTierHasBeenSet() const { return m_planTierHasBeenSet; }
58 template <typename PlanTierT = Aws::String>
59 void SetPlanTier(PlanTierT&& value) {
60 m_planTierHasBeenSet = true;
61 m_planTier = std::forward<PlanTierT>(value);
62 }
63 template <typename PlanTierT = Aws::String>
65 SetPlanTier(std::forward<PlanTierT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetUsageLevel() const { return m_usageLevel; }
76 inline bool UsageLevelHasBeenSet() const { return m_usageLevelHasBeenSet; }
77 template <typename UsageLevelT = Aws::String>
78 void SetUsageLevel(UsageLevelT&& value) {
79 m_usageLevelHasBeenSet = true;
80 m_usageLevel = std::forward<UsageLevelT>(value);
81 }
82 template <typename UsageLevelT = Aws::String>
84 SetUsageLevel(std::forward<UsageLevelT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
96 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
97 template <typename IfMatchT = Aws::String>
98 void SetIfMatch(IfMatchT&& value) {
99 m_ifMatchHasBeenSet = true;
100 m_ifMatch = std::forward<IfMatchT>(value);
101 }
102 template <typename IfMatchT = Aws::String>
104 SetIfMatch(std::forward<IfMatchT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetClientToken() const { return m_clientToken; }
115 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
116 template <typename ClientTokenT = Aws::String>
117 void SetClientToken(ClientTokenT&& value) {
118 m_clientTokenHasBeenSet = true;
119 m_clientToken = std::forward<ClientTokenT>(value);
120 }
121 template <typename ClientTokenT = Aws::String>
123 SetClientToken(std::forward<ClientTokenT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_arn;
129
130 Aws::String m_planTier;
131
132 Aws::String m_usageLevel;
133
134 Aws::String m_ifMatch;
135
137 bool m_arnHasBeenSet = false;
138 bool m_planTierHasBeenSet = false;
139 bool m_usageLevelHasBeenSet = false;
140 bool m_ifMatchHasBeenSet = false;
141 bool m_clientTokenHasBeenSet = true;
142};
143
144} // namespace Model
145} // namespace PricingPlanManager
146} // namespace Aws
UpdateSubscriptionRequest & WithPlanTier(PlanTierT &&value)
UpdateSubscriptionRequest & WithClientToken(ClientTokenT &&value)
AWS_PRICINGPLANMANAGER_API Aws::String SerializePayload() const override
AWS_PRICINGPLANMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSubscriptionRequest & WithIfMatch(IfMatchT &&value)
AWS_PRICINGPLANMANAGER_API UpdateSubscriptionRequest()=default
UpdateSubscriptionRequest & WithUsageLevel(UsageLevelT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String