AWS SDK for C++  1.8.71
AWS SDK for C++
CreateJobQueueRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Batch
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "CreateJobQueue"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetJobQueueName() const{ return m_jobQueueName; }
43 
47  inline bool JobQueueNameHasBeenSet() const { return m_jobQueueNameHasBeenSet; }
48 
52  inline void SetJobQueueName(const Aws::String& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = value; }
53 
57  inline void SetJobQueueName(Aws::String&& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = std::move(value); }
58 
62  inline void SetJobQueueName(const char* value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName.assign(value); }
63 
67  inline CreateJobQueueRequest& WithJobQueueName(const Aws::String& value) { SetJobQueueName(value); return *this;}
68 
72  inline CreateJobQueueRequest& WithJobQueueName(Aws::String&& value) { SetJobQueueName(std::move(value)); return *this;}
73 
77  inline CreateJobQueueRequest& WithJobQueueName(const char* value) { SetJobQueueName(value); return *this;}
78 
79 
85  inline const JQState& GetState() const{ return m_state; }
86 
92  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
93 
99  inline void SetState(const JQState& value) { m_stateHasBeenSet = true; m_state = value; }
100 
106  inline void SetState(JQState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
107 
113  inline CreateJobQueueRequest& WithState(const JQState& value) { SetState(value); return *this;}
114 
120  inline CreateJobQueueRequest& WithState(JQState&& value) { SetState(std::move(value)); return *this;}
121 
122 
131  inline int GetPriority() const{ return m_priority; }
132 
141  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
142 
151  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
152 
161  inline CreateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;}
162 
163 
171  inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const{ return m_computeEnvironmentOrder; }
172 
180  inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
181 
189  inline void SetComputeEnvironmentOrder(const Aws::Vector<ComputeEnvironmentOrder>& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = value; }
190 
198  inline void SetComputeEnvironmentOrder(Aws::Vector<ComputeEnvironmentOrder>&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::move(value); }
199 
207  inline CreateJobQueueRequest& WithComputeEnvironmentOrder(const Aws::Vector<ComputeEnvironmentOrder>& value) { SetComputeEnvironmentOrder(value); return *this;}
208 
216  inline CreateJobQueueRequest& WithComputeEnvironmentOrder(Aws::Vector<ComputeEnvironmentOrder>&& value) { SetComputeEnvironmentOrder(std::move(value)); return *this;}
217 
225  inline CreateJobQueueRequest& AddComputeEnvironmentOrder(const ComputeEnvironmentOrder& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(value); return *this; }
226 
234  inline CreateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrder&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(std::move(value)); return *this; }
235 
236 
244  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
245 
253  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
254 
262  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
263 
271  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
272 
280  inline CreateJobQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
281 
289  inline CreateJobQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
290 
298  inline CreateJobQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
299 
307  inline CreateJobQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
308 
316  inline CreateJobQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
317 
325  inline CreateJobQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
326 
334  inline CreateJobQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
335 
343  inline CreateJobQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
344 
352  inline CreateJobQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
353 
354  private:
355 
356  Aws::String m_jobQueueName;
357  bool m_jobQueueNameHasBeenSet;
358 
359  JQState m_state;
360  bool m_stateHasBeenSet;
361 
362  int m_priority;
363  bool m_priorityHasBeenSet;
364 
365  Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
366  bool m_computeEnvironmentOrderHasBeenSet;
367 
369  bool m_tagsHasBeenSet;
370  };
371 
372 } // namespace Model
373 } // namespace Batch
374 } // namespace Aws
CreateJobQueueRequest & WithComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
CreateJobQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobQueueRequest & AddComputeEnvironmentOrder(ComputeEnvironmentOrder &&value)
CreateJobQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
#define AWS_BATCH_API
Definition: Batch_EXPORTS.h:28
CreateJobQueueRequest & WithState(JQState &&value)
CreateJobQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobQueueRequest & WithState(const JQState &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateJobQueueRequest & WithJobQueueName(const char *value)
void SetJobQueueName(const Aws::String &value)
CreateJobQueueRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
CreateJobQueueRequest & WithPriority(int value)
CreateJobQueueRequest & WithJobQueueName(const Aws::String &value)
CreateJobQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateJobQueueRequest & AddTags(const char *key, Aws::String &&value)
CreateJobQueueRequest & AddComputeEnvironmentOrder(const ComputeEnvironmentOrder &value)
CreateJobQueueRequest & WithComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateJobQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateJobQueueRequest & AddTags(const char *key, const char *value)
void SetComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
void SetComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
CreateJobQueueRequest & WithJobQueueName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override