AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeServiceEnvironmentsRequest.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
21 public:
22 AWS_BATCH_API DescribeServiceEnvironmentsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeServiceEnvironments"; }
29
30 AWS_BATCH_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::Vector<Aws::String>& GetServiceEnvironments() const { return m_serviceEnvironments; }
37 inline bool ServiceEnvironmentsHasBeenSet() const { return m_serviceEnvironmentsHasBeenSet; }
38 template <typename ServiceEnvironmentsT = Aws::Vector<Aws::String>>
39 void SetServiceEnvironments(ServiceEnvironmentsT&& value) {
40 m_serviceEnvironmentsHasBeenSet = true;
41 m_serviceEnvironments = std::forward<ServiceEnvironmentsT>(value);
42 }
43 template <typename ServiceEnvironmentsT = Aws::Vector<Aws::String>>
45 SetServiceEnvironments(std::forward<ServiceEnvironmentsT>(value));
46 return *this;
47 }
48 template <typename ServiceEnvironmentsT = Aws::String>
50 m_serviceEnvironmentsHasBeenSet = true;
51 m_serviceEnvironments.emplace_back(std::forward<ServiceEnvironmentsT>(value));
52 return *this;
53 }
55
57
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) {
71 m_maxResultsHasBeenSet = true;
72 m_maxResults = value;
73 }
75 SetMaxResults(value);
76 return *this;
77 }
79
81
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 template <typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) {
95 m_nextTokenHasBeenSet = true;
96 m_nextToken = std::forward<NextTokenT>(value);
97 }
98 template <typename NextTokenT = Aws::String>
100 SetNextToken(std::forward<NextTokenT>(value));
101 return *this;
102 }
104 private:
105 Aws::Vector<Aws::String> m_serviceEnvironments;
106
107 int m_maxResults{0};
108
109 Aws::String m_nextToken;
110 bool m_serviceEnvironmentsHasBeenSet = false;
111 bool m_maxResultsHasBeenSet = false;
112 bool m_nextTokenHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Batch
117} // namespace Aws
DescribeServiceEnvironmentsRequest & AddServiceEnvironments(ServiceEnvironmentsT &&value)
DescribeServiceEnvironmentsRequest & WithServiceEnvironments(ServiceEnvironmentsT &&value)
DescribeServiceEnvironmentsRequest & WithMaxResults(int value)
DescribeServiceEnvironmentsRequest & WithNextToken(NextTokenT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector