AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
DescribeServiceEnvironmentsRequest.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
23 {
24 public:
25 AWS_BATCH_API DescribeServiceEnvironmentsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeServiceEnvironments"; }
32
33 AWS_BATCH_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::Vector<Aws::String>& GetServiceEnvironments() const { return m_serviceEnvironments; }
41 inline bool ServiceEnvironmentsHasBeenSet() const { return m_serviceEnvironmentsHasBeenSet; }
42 template<typename ServiceEnvironmentsT = Aws::Vector<Aws::String>>
43 void SetServiceEnvironments(ServiceEnvironmentsT&& value) { m_serviceEnvironmentsHasBeenSet = true; m_serviceEnvironments = std::forward<ServiceEnvironmentsT>(value); }
44 template<typename ServiceEnvironmentsT = Aws::Vector<Aws::String>>
45 DescribeServiceEnvironmentsRequest& WithServiceEnvironments(ServiceEnvironmentsT&& value) { SetServiceEnvironments(std::forward<ServiceEnvironmentsT>(value)); return *this;}
46 template<typename ServiceEnvironmentsT = Aws::String>
47 DescribeServiceEnvironmentsRequest& AddServiceEnvironments(ServiceEnvironmentsT&& value) { m_serviceEnvironmentsHasBeenSet = true; m_serviceEnvironments.emplace_back(std::forward<ServiceEnvironmentsT>(value)); return *this; }
49
51
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
65 inline DescribeServiceEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
67
69
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template<typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
83 template<typename NextTokenT = Aws::String>
84 DescribeServiceEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
86 private:
87
88 Aws::Vector<Aws::String> m_serviceEnvironments;
89 bool m_serviceEnvironmentsHasBeenSet = false;
90
91 int m_maxResults{0};
92 bool m_maxResultsHasBeenSet = false;
93
94 Aws::String m_nextToken;
95 bool m_nextTokenHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Batch
100} // 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