AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateJobTemplateRequest.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/MediaConvertRequest.h>
9#include <aws/mediaconvert/model/AccelerationSettings.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mediaconvert/model/JobTemplateSettings.h>
13#include <aws/mediaconvert/model/StatusUpdateInterval.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/mediaconvert/model/HopDestination.h>
16#include <utility>
17
18namespace Aws
19{
20namespace MediaConvert
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MEDIACONVERT_API CreateJobTemplateRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateJobTemplate"; }
37
38 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
39
40
42
48 inline const AccelerationSettings& GetAccelerationSettings() const { return m_accelerationSettings; }
49 inline bool AccelerationSettingsHasBeenSet() const { return m_accelerationSettingsHasBeenSet; }
50 template<typename AccelerationSettingsT = AccelerationSettings>
51 void SetAccelerationSettings(AccelerationSettingsT&& value) { m_accelerationSettingsHasBeenSet = true; m_accelerationSettings = std::forward<AccelerationSettingsT>(value); }
52 template<typename AccelerationSettingsT = AccelerationSettings>
53 CreateJobTemplateRequest& WithAccelerationSettings(AccelerationSettingsT&& value) { SetAccelerationSettings(std::forward<AccelerationSettingsT>(value)); return *this;}
55
57
60 inline const Aws::String& GetCategory() const { return m_category; }
61 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
62 template<typename CategoryT = Aws::String>
63 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
64 template<typename CategoryT = Aws::String>
65 CreateJobTemplateRequest& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 CreateJobTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
87 inline const Aws::Vector<HopDestination>& GetHopDestinations() const { return m_hopDestinations; }
88 inline bool HopDestinationsHasBeenSet() const { return m_hopDestinationsHasBeenSet; }
89 template<typename HopDestinationsT = Aws::Vector<HopDestination>>
90 void SetHopDestinations(HopDestinationsT&& value) { m_hopDestinationsHasBeenSet = true; m_hopDestinations = std::forward<HopDestinationsT>(value); }
91 template<typename HopDestinationsT = Aws::Vector<HopDestination>>
92 CreateJobTemplateRequest& WithHopDestinations(HopDestinationsT&& value) { SetHopDestinations(std::forward<HopDestinationsT>(value)); return *this;}
93 template<typename HopDestinationsT = HopDestination>
94 CreateJobTemplateRequest& AddHopDestinations(HopDestinationsT&& value) { m_hopDestinationsHasBeenSet = true; m_hopDestinations.emplace_back(std::forward<HopDestinationsT>(value)); return *this; }
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template<typename NameT = Aws::String>
104 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
105 template<typename NameT = Aws::String>
106 CreateJobTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
108
110
116 inline int GetPriority() const { return m_priority; }
117 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
118 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
119 inline CreateJobTemplateRequest& WithPriority(int value) { SetPriority(value); return *this;}
121
123
127 inline const Aws::String& GetQueue() const { return m_queue; }
128 inline bool QueueHasBeenSet() const { return m_queueHasBeenSet; }
129 template<typename QueueT = Aws::String>
130 void SetQueue(QueueT&& value) { m_queueHasBeenSet = true; m_queue = std::forward<QueueT>(value); }
131 template<typename QueueT = Aws::String>
132 CreateJobTemplateRequest& WithQueue(QueueT&& value) { SetQueue(std::forward<QueueT>(value)); return *this;}
134
136
140 inline const JobTemplateSettings& GetSettings() const { return m_settings; }
141 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
142 template<typename SettingsT = JobTemplateSettings>
143 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
144 template<typename SettingsT = JobTemplateSettings>
145 CreateJobTemplateRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
147
149
155 inline StatusUpdateInterval GetStatusUpdateInterval() const { return m_statusUpdateInterval; }
156 inline bool StatusUpdateIntervalHasBeenSet() const { return m_statusUpdateIntervalHasBeenSet; }
157 inline void SetStatusUpdateInterval(StatusUpdateInterval value) { m_statusUpdateIntervalHasBeenSet = true; m_statusUpdateInterval = value; }
160
162
166 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
170 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 CreateJobTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
172 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
173 CreateJobTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
174 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
175 }
177 private:
178
179 AccelerationSettings m_accelerationSettings;
180 bool m_accelerationSettingsHasBeenSet = false;
181
182 Aws::String m_category;
183 bool m_categoryHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 Aws::Vector<HopDestination> m_hopDestinations;
189 bool m_hopDestinationsHasBeenSet = false;
190
191 Aws::String m_name;
192 bool m_nameHasBeenSet = false;
193
194 int m_priority{0};
195 bool m_priorityHasBeenSet = false;
196
197 Aws::String m_queue;
198 bool m_queueHasBeenSet = false;
199
200 JobTemplateSettings m_settings;
201 bool m_settingsHasBeenSet = false;
202
204 bool m_statusUpdateIntervalHasBeenSet = false;
205
207 bool m_tagsHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace MediaConvert
212} // namespace Aws
CreateJobTemplateRequest & WithDescription(DescriptionT &&value)
CreateJobTemplateRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateJobTemplateRequest & WithTags(TagsT &&value)
CreateJobTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateJobTemplateRequest & WithHopDestinations(HopDestinationsT &&value)
const Aws::Vector< HopDestination > & GetHopDestinations() const
CreateJobTemplateRequest & WithSettings(SettingsT &&value)
CreateJobTemplateRequest & WithAccelerationSettings(AccelerationSettingsT &&value)
CreateJobTemplateRequest & WithQueue(QueueT &&value)
CreateJobTemplateRequest & WithStatusUpdateInterval(StatusUpdateInterval value)
AWS_MEDIACONVERT_API CreateJobTemplateRequest()=default
CreateJobTemplateRequest & WithCategory(CategoryT &&value)
AWS_MEDIACONVERT_API Aws::String SerializePayload() const override
CreateJobTemplateRequest & AddHopDestinations(HopDestinationsT &&value)
void SetAccelerationSettings(AccelerationSettingsT &&value)
virtual const char * GetServiceRequestName() const override
const AccelerationSettings & GetAccelerationSettings() const
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
std::vector< T, Aws::Allocator< T > > Vector