AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeJobQueuesRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Batch {
16namespace Model {
17
25 public:
26 AWS_BATCH_API DescribeJobQueuesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeJobQueues"; }
33
34 AWS_BATCH_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::Vector<Aws::String>& GetJobQueues() const { return m_jobQueues; }
42 inline bool JobQueuesHasBeenSet() const { return m_jobQueuesHasBeenSet; }
43 template <typename JobQueuesT = Aws::Vector<Aws::String>>
44 void SetJobQueues(JobQueuesT&& value) {
45 m_jobQueuesHasBeenSet = true;
46 m_jobQueues = std::forward<JobQueuesT>(value);
47 }
48 template <typename JobQueuesT = Aws::Vector<Aws::String>>
50 SetJobQueues(std::forward<JobQueuesT>(value));
51 return *this;
52 }
53 template <typename JobQueuesT = Aws::String>
55 m_jobQueuesHasBeenSet = true;
56 m_jobQueues.emplace_back(std::forward<JobQueuesT>(value));
57 return *this;
58 }
60
62
72 inline int GetMaxResults() const { return m_maxResults; }
73 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
74 inline void SetMaxResults(int value) {
75 m_maxResultsHasBeenSet = true;
76 m_maxResults = value;
77 }
79 SetMaxResults(value);
80 return *this;
81 }
83
85
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template <typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) {
98 m_nextTokenHasBeenSet = true;
99 m_nextToken = std::forward<NextTokenT>(value);
100 }
101 template <typename NextTokenT = Aws::String>
103 SetNextToken(std::forward<NextTokenT>(value));
104 return *this;
105 }
107 private:
108 Aws::Vector<Aws::String> m_jobQueues;
109
110 int m_maxResults{0};
111
112 Aws::String m_nextToken;
113 bool m_jobQueuesHasBeenSet = false;
114 bool m_maxResultsHasBeenSet = false;
115 bool m_nextTokenHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Batch
120} // namespace Aws
DescribeJobQueuesRequest & WithJobQueues(JobQueuesT &&value)
DescribeJobQueuesRequest & WithMaxResults(int value)
AWS_BATCH_API DescribeJobQueuesRequest()=default
AWS_BATCH_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetJobQueues() const
DescribeJobQueuesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
DescribeJobQueuesRequest & AddJobQueues(JobQueuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector