AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconvert/MediaConvertRequest.h>
10#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
11#include <aws/mediaconvert/model/PricingPlan.h>
12#include <aws/mediaconvert/model/QueueStatus.h>
13#include <aws/mediaconvert/model/ReservationPlanSettings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MediaConvert {
19namespace Model {
20
24 public:
25 AWS_MEDIACONVERT_API CreateQueueRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
32
33 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
34
36
43 inline int GetConcurrentJobs() const { return m_concurrentJobs; }
44 inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; }
45 inline void SetConcurrentJobs(int value) {
46 m_concurrentJobsHasBeenSet = true;
47 m_concurrentJobs = value;
48 }
50 SetConcurrentJobs(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 CreateQueueRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 CreateQueueRequest& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
99 inline PricingPlan GetPricingPlan() const { return m_pricingPlan; }
100 inline bool PricingPlanHasBeenSet() const { return m_pricingPlanHasBeenSet; }
101 inline void SetPricingPlan(PricingPlan value) {
102 m_pricingPlanHasBeenSet = true;
103 m_pricingPlan = value;
104 }
106 SetPricingPlan(value);
107 return *this;
108 }
110
112
116 inline const ReservationPlanSettings& GetReservationPlanSettings() const { return m_reservationPlanSettings; }
117 inline bool ReservationPlanSettingsHasBeenSet() const { return m_reservationPlanSettingsHasBeenSet; }
118 template <typename ReservationPlanSettingsT = ReservationPlanSettings>
119 void SetReservationPlanSettings(ReservationPlanSettingsT&& value) {
120 m_reservationPlanSettingsHasBeenSet = true;
121 m_reservationPlanSettings = std::forward<ReservationPlanSettingsT>(value);
122 }
123 template <typename ReservationPlanSettingsT = ReservationPlanSettings>
124 CreateQueueRequest& WithReservationPlanSettings(ReservationPlanSettingsT&& value) {
125 SetReservationPlanSettings(std::forward<ReservationPlanSettingsT>(value));
126 return *this;
127 }
129
131
135 inline QueueStatus GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 inline void SetStatus(QueueStatus value) {
138 m_statusHasBeenSet = true;
139 m_status = value;
140 }
142 SetStatus(value);
143 return *this;
144 }
146
148
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 CreateQueueRequest& WithTags(TagsT&& value) {
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
168 return *this;
169 }
171 private:
172 int m_concurrentJobs{0};
173
174 Aws::String m_description;
175
176 Aws::String m_name;
177
178 PricingPlan m_pricingPlan{PricingPlan::NOT_SET};
179
180 ReservationPlanSettings m_reservationPlanSettings;
181
183
185 bool m_concurrentJobsHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_nameHasBeenSet = false;
188 bool m_pricingPlanHasBeenSet = false;
189 bool m_reservationPlanSettingsHasBeenSet = false;
190 bool m_statusHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace MediaConvert
196} // namespace Aws
const ReservationPlanSettings & GetReservationPlanSettings() const
CreateQueueRequest & WithConcurrentJobs(int value)
CreateQueueRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateQueueRequest & WithReservationPlanSettings(ReservationPlanSettingsT &&value)
CreateQueueRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQueueRequest & WithDescription(DescriptionT &&value)
AWS_MEDIACONVERT_API Aws::String SerializePayload() const override
void SetReservationPlanSettings(ReservationPlanSettingsT &&value)
AWS_MEDIACONVERT_API CreateQueueRequest()=default
CreateQueueRequest & WithStatus(QueueStatus value)
CreateQueueRequest & WithPricingPlan(PricingPlan value)
virtual const char * GetServiceRequestName() const override
CreateQueueRequest & WithName(NameT &&value)
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