AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeWorkspacesPoolsRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/workspaces/model/DescribeWorkspacesPoolsFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API DescribeWorkspacesPoolsRequest() = 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 "DescribeWorkspacesPools"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::Vector<Aws::String>& GetPoolIds() const { return m_poolIds; }
44 inline bool PoolIdsHasBeenSet() const { return m_poolIdsHasBeenSet; }
45 template<typename PoolIdsT = Aws::Vector<Aws::String>>
46 void SetPoolIds(PoolIdsT&& value) { m_poolIdsHasBeenSet = true; m_poolIds = std::forward<PoolIdsT>(value); }
47 template<typename PoolIdsT = Aws::Vector<Aws::String>>
48 DescribeWorkspacesPoolsRequest& WithPoolIds(PoolIdsT&& value) { SetPoolIds(std::forward<PoolIdsT>(value)); return *this;}
49 template<typename PoolIdsT = Aws::String>
50 DescribeWorkspacesPoolsRequest& AddPoolIds(PoolIdsT&& value) { m_poolIdsHasBeenSet = true; m_poolIds.emplace_back(std::forward<PoolIdsT>(value)); return *this; }
52
54
57 inline const Aws::Vector<DescribeWorkspacesPoolsFilter>& GetFilters() const { return m_filters; }
58 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
59 template<typename FiltersT = Aws::Vector<DescribeWorkspacesPoolsFilter>>
60 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
61 template<typename FiltersT = Aws::Vector<DescribeWorkspacesPoolsFilter>>
62 DescribeWorkspacesPoolsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
63 template<typename FiltersT = DescribeWorkspacesPoolsFilter>
64 DescribeWorkspacesPoolsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
66
68
71 inline int GetLimit() const { return m_limit; }
72 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
73 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
74 inline DescribeWorkspacesPoolsRequest& WithLimit(int value) { SetLimit(value); return *this;}
76
78
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 template<typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
86 template<typename NextTokenT = Aws::String>
87 DescribeWorkspacesPoolsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
89 private:
90
92 bool m_poolIdsHasBeenSet = false;
93
95 bool m_filtersHasBeenSet = false;
96
97 int m_limit{0};
98 bool m_limitHasBeenSet = false;
99
100 Aws::String m_nextToken;
101 bool m_nextTokenHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace WorkSpaces
106} // namespace Aws
DescribeWorkspacesPoolsRequest & AddFilters(FiltersT &&value)
DescribeWorkspacesPoolsRequest & WithFilters(FiltersT &&value)
const Aws::Vector< DescribeWorkspacesPoolsFilter > & GetFilters() const
DescribeWorkspacesPoolsRequest & WithNextToken(NextTokenT &&value)
AWS_WORKSPACES_API DescribeWorkspacesPoolsRequest()=default
DescribeWorkspacesPoolsRequest & WithPoolIds(PoolIdsT &&value)
DescribeWorkspacesPoolsRequest & AddPoolIds(PoolIdsT &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WORKSPACES_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector