AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/MediaConvertRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediaconvert/model/PricingPlan.h>
11#include <aws/mediaconvert/model/ReservationPlanSettings.h>
12#include <aws/mediaconvert/model/QueueStatus.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaConvert
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MEDIACONVERT_API CreateQueueRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
35
36 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
37
38
40
47 inline int GetConcurrentJobs() const { return m_concurrentJobs; }
48 inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; }
49 inline void SetConcurrentJobs(int value) { m_concurrentJobsHasBeenSet = true; m_concurrentJobs = value; }
50 inline CreateQueueRequest& WithConcurrentJobs(int value) { SetConcurrentJobs(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateQueueRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 CreateQueueRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76
78
85 inline PricingPlan GetPricingPlan() const { return m_pricingPlan; }
86 inline bool PricingPlanHasBeenSet() const { return m_pricingPlanHasBeenSet; }
87 inline void SetPricingPlan(PricingPlan value) { m_pricingPlanHasBeenSet = true; m_pricingPlan = value; }
88 inline CreateQueueRequest& WithPricingPlan(PricingPlan value) { SetPricingPlan(value); return *this;}
90
92
96 inline const ReservationPlanSettings& GetReservationPlanSettings() const { return m_reservationPlanSettings; }
97 inline bool ReservationPlanSettingsHasBeenSet() const { return m_reservationPlanSettingsHasBeenSet; }
98 template<typename ReservationPlanSettingsT = ReservationPlanSettings>
99 void SetReservationPlanSettings(ReservationPlanSettingsT&& value) { m_reservationPlanSettingsHasBeenSet = true; m_reservationPlanSettings = std::forward<ReservationPlanSettingsT>(value); }
100 template<typename ReservationPlanSettingsT = ReservationPlanSettings>
101 CreateQueueRequest& WithReservationPlanSettings(ReservationPlanSettingsT&& value) { SetReservationPlanSettings(std::forward<ReservationPlanSettingsT>(value)); return *this;}
103
105
109 inline QueueStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(QueueStatus value) { m_statusHasBeenSet = true; m_status = value; }
112 inline CreateQueueRequest& WithStatus(QueueStatus value) { SetStatus(value); return *this;}
114
116
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
124 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 CreateQueueRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
126 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
129 }
131 private:
132
133 int m_concurrentJobs{0};
134 bool m_concurrentJobsHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 PricingPlan m_pricingPlan{PricingPlan::NOT_SET};
143 bool m_pricingPlanHasBeenSet = false;
144
145 ReservationPlanSettings m_reservationPlanSettings;
146 bool m_reservationPlanSettingsHasBeenSet = false;
147
149 bool m_statusHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace MediaConvert
157} // 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