AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
PurchaseOfferingRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/MediaLiveRequest.h>
11#include <aws/medialive/MediaLive_EXPORTS.h>
12#include <aws/medialive/model/RenewalSettings.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaLive {
18namespace Model {
19
26 public:
27 AWS_MEDIALIVE_API PurchaseOfferingRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PurchaseOffering"; }
34
35 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
36
38
41 inline int GetCount() const { return m_count; }
42 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
43 inline void SetCount(int value) {
44 m_countHasBeenSet = true;
45 m_count = value;
46 }
48 SetCount(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
76 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
77 template <typename OfferingIdT = Aws::String>
78 void SetOfferingId(OfferingIdT&& value) {
79 m_offeringIdHasBeenSet = true;
80 m_offeringId = std::forward<OfferingIdT>(value);
81 }
82 template <typename OfferingIdT = Aws::String>
84 SetOfferingId(std::forward<OfferingIdT>(value));
85 return *this;
86 }
88
90
93 inline const RenewalSettings& GetRenewalSettings() const { return m_renewalSettings; }
94 inline bool RenewalSettingsHasBeenSet() const { return m_renewalSettingsHasBeenSet; }
95 template <typename RenewalSettingsT = RenewalSettings>
96 void SetRenewalSettings(RenewalSettingsT&& value) {
97 m_renewalSettingsHasBeenSet = true;
98 m_renewalSettings = std::forward<RenewalSettingsT>(value);
99 }
100 template <typename RenewalSettingsT = RenewalSettings>
101 PurchaseOfferingRequest& WithRenewalSettings(RenewalSettingsT&& value) {
102 SetRenewalSettings(std::forward<RenewalSettingsT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetRequestId() const { return m_requestId; }
113 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
114 template <typename RequestIdT = Aws::String>
115 void SetRequestId(RequestIdT&& value) {
116 m_requestIdHasBeenSet = true;
117 m_requestId = std::forward<RequestIdT>(value);
118 }
119 template <typename RequestIdT = Aws::String>
121 SetRequestId(std::forward<RequestIdT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::String& GetStart() const { return m_start; }
133 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
134 template <typename StartT = Aws::String>
135 void SetStart(StartT&& value) {
136 m_startHasBeenSet = true;
137 m_start = std::forward<StartT>(value);
138 }
139 template <typename StartT = Aws::String>
141 SetStart(std::forward<StartT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags = std::forward<TagsT>(value);
156 }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 SetTags(std::forward<TagsT>(value));
160 return *this;
161 }
162 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 PurchaseOfferingRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
166 return *this;
167 }
169 private:
170 int m_count{0};
171
172 Aws::String m_name;
173
174 Aws::String m_offeringId;
175
176 RenewalSettings m_renewalSettings;
177
179
180 Aws::String m_start;
181
183 bool m_countHasBeenSet = false;
184 bool m_nameHasBeenSet = false;
185 bool m_offeringIdHasBeenSet = false;
186 bool m_renewalSettingsHasBeenSet = false;
187 bool m_requestIdHasBeenSet = true;
188 bool m_startHasBeenSet = false;
189 bool m_tagsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace MediaLive
194} // namespace Aws
PurchaseOfferingRequest & WithCount(int value)
PurchaseOfferingRequest & WithOfferingId(OfferingIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
PurchaseOfferingRequest & WithTags(TagsT &&value)
AWS_MEDIALIVE_API PurchaseOfferingRequest()=default
PurchaseOfferingRequest & WithRenewalSettings(RenewalSettingsT &&value)
PurchaseOfferingRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
PurchaseOfferingRequest & WithName(NameT &&value)
PurchaseOfferingRequest & WithStart(StartT &&value)
PurchaseOfferingRequest & WithRequestId(RequestIdT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String