AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeComputeEnvironmentsRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Batch
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_BATCH_API DescribeComputeEnvironmentsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeComputeEnvironments"; }
36
37 AWS_BATCH_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::Vector<Aws::String>& GetComputeEnvironments() const { return m_computeEnvironments; }
46 inline bool ComputeEnvironmentsHasBeenSet() const { return m_computeEnvironmentsHasBeenSet; }
47 template<typename ComputeEnvironmentsT = Aws::Vector<Aws::String>>
48 void SetComputeEnvironments(ComputeEnvironmentsT&& value) { m_computeEnvironmentsHasBeenSet = true; m_computeEnvironments = std::forward<ComputeEnvironmentsT>(value); }
49 template<typename ComputeEnvironmentsT = Aws::Vector<Aws::String>>
50 DescribeComputeEnvironmentsRequest& WithComputeEnvironments(ComputeEnvironmentsT&& value) { SetComputeEnvironments(std::forward<ComputeEnvironmentsT>(value)); return *this;}
51 template<typename ComputeEnvironmentsT = Aws::String>
52 DescribeComputeEnvironmentsRequest& AddComputeEnvironments(ComputeEnvironmentsT&& value) { m_computeEnvironmentsHasBeenSet = true; m_computeEnvironments.emplace_back(std::forward<ComputeEnvironmentsT>(value)); return *this; }
54
56
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline DescribeComputeEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template<typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
89 template<typename NextTokenT = Aws::String>
90 DescribeComputeEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
92 private:
93
94 Aws::Vector<Aws::String> m_computeEnvironments;
95 bool m_computeEnvironmentsHasBeenSet = false;
96
97 int m_maxResults{0};
98 bool m_maxResultsHasBeenSet = false;
99
100 Aws::String m_nextToken;
101 bool m_nextTokenHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Batch
106} // 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