AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPoolIds(const Aws::Vector<Aws::String>& value) { m_poolIdsHasBeenSet = true; m_poolIds = value; }
46 inline void SetPoolIds(Aws::Vector<Aws::String>&& value) { m_poolIdsHasBeenSet = true; m_poolIds = std::move(value); }
48 inline DescribeWorkspacesPoolsRequest& WithPoolIds(Aws::Vector<Aws::String>&& value) { SetPoolIds(std::move(value)); return *this;}
49 inline DescribeWorkspacesPoolsRequest& AddPoolIds(const Aws::String& value) { m_poolIdsHasBeenSet = true; m_poolIds.push_back(value); return *this; }
50 inline DescribeWorkspacesPoolsRequest& AddPoolIds(Aws::String&& value) { m_poolIdsHasBeenSet = true; m_poolIds.push_back(std::move(value)); return *this; }
51 inline DescribeWorkspacesPoolsRequest& AddPoolIds(const char* value) { m_poolIdsHasBeenSet = true; m_poolIds.push_back(value); return *this; }
53
55
58 inline const Aws::Vector<DescribeWorkspacesPoolsFilter>& GetFilters() const{ return m_filters; }
59 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
60 inline void SetFilters(const Aws::Vector<DescribeWorkspacesPoolsFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
61 inline void SetFilters(Aws::Vector<DescribeWorkspacesPoolsFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
64 inline DescribeWorkspacesPoolsRequest& AddFilters(const DescribeWorkspacesPoolsFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
65 inline DescribeWorkspacesPoolsRequest& AddFilters(DescribeWorkspacesPoolsFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
67
69
72 inline int GetLimit() const{ return m_limit; }
73 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
74 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
75 inline DescribeWorkspacesPoolsRequest& WithLimit(int value) { SetLimit(value); return *this;}
77
79
83 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
86 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
87 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
88 inline DescribeWorkspacesPoolsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
89 inline DescribeWorkspacesPoolsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
90 inline DescribeWorkspacesPoolsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
92 private:
93
95 bool m_poolIdsHasBeenSet = false;
96
98 bool m_filtersHasBeenSet = false;
99
100 int m_limit;
101 bool m_limitHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace WorkSpaces
109} // namespace Aws
DescribeWorkspacesPoolsRequest & AddPoolIds(Aws::String &&value)
DescribeWorkspacesPoolsRequest & AddPoolIds(const char *value)
const Aws::Vector< DescribeWorkspacesPoolsFilter > & GetFilters() const
DescribeWorkspacesPoolsRequest & WithPoolIds(const Aws::Vector< Aws::String > &value)
DescribeWorkspacesPoolsRequest & WithNextToken(const Aws::String &value)
DescribeWorkspacesPoolsRequest & AddFilters(const DescribeWorkspacesPoolsFilter &value)
DescribeWorkspacesPoolsRequest & WithNextToken(Aws::String &&value)
DescribeWorkspacesPoolsRequest & WithPoolIds(Aws::Vector< Aws::String > &&value)
DescribeWorkspacesPoolsRequest & WithFilters(Aws::Vector< DescribeWorkspacesPoolsFilter > &&value)
DescribeWorkspacesPoolsRequest & WithNextToken(const char *value)
DescribeWorkspacesPoolsRequest & WithFilters(const Aws::Vector< DescribeWorkspacesPoolsFilter > &value)
DescribeWorkspacesPoolsRequest & AddFilters(DescribeWorkspacesPoolsFilter &&value)
void SetFilters(Aws::Vector< DescribeWorkspacesPoolsFilter > &&value)
DescribeWorkspacesPoolsRequest & AddPoolIds(const Aws::String &value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetFilters(const Aws::Vector< DescribeWorkspacesPoolsFilter > &value)
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