AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeComputeEnvironmentsRequest.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 DescribeComputeEnvironmentsRequest() = 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 "DescribeComputeEnvironments"; }
33
34 AWS_BATCH_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::Vector<Aws::String>& GetComputeEnvironments() const { return m_computeEnvironments; }
42 inline bool ComputeEnvironmentsHasBeenSet() const { return m_computeEnvironmentsHasBeenSet; }
43 template <typename ComputeEnvironmentsT = Aws::Vector<Aws::String>>
44 void SetComputeEnvironments(ComputeEnvironmentsT&& value) {
45 m_computeEnvironmentsHasBeenSet = true;
46 m_computeEnvironments = std::forward<ComputeEnvironmentsT>(value);
47 }
48 template <typename ComputeEnvironmentsT = Aws::Vector<Aws::String>>
50 SetComputeEnvironments(std::forward<ComputeEnvironmentsT>(value));
51 return *this;
52 }
53 template <typename ComputeEnvironmentsT = Aws::String>
55 m_computeEnvironmentsHasBeenSet = true;
56 m_computeEnvironments.emplace_back(std::forward<ComputeEnvironmentsT>(value));
57 return *this;
58 }
60
62
74 inline int GetMaxResults() const { return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) {
77 m_maxResultsHasBeenSet = true;
78 m_maxResults = value;
79 }
81 SetMaxResults(value);
82 return *this;
83 }
85
87
97 inline const Aws::String& GetNextToken() const { return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 template <typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) {
101 m_nextTokenHasBeenSet = true;
102 m_nextToken = std::forward<NextTokenT>(value);
103 }
104 template <typename NextTokenT = Aws::String>
106 SetNextToken(std::forward<NextTokenT>(value));
107 return *this;
108 }
110 private:
111 Aws::Vector<Aws::String> m_computeEnvironments;
112
113 int m_maxResults{0};
114
115 Aws::String m_nextToken;
116 bool m_computeEnvironmentsHasBeenSet = false;
117 bool m_maxResultsHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Batch
123} // namespace Aws
AWS_BATCH_API Aws::String SerializePayload() const override
DescribeComputeEnvironmentsRequest & WithMaxResults(int value)
DescribeComputeEnvironmentsRequest & WithNextToken(NextTokenT &&value)
DescribeComputeEnvironmentsRequest & AddComputeEnvironments(ComputeEnvironmentsT &&value)
DescribeComputeEnvironmentsRequest & WithComputeEnvironments(ComputeEnvironmentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector