AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DescribeWorkspacesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workspaces/WorkSpacesRequest.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkSpaces {
16namespace Model {
17
21 public:
22 AWS_WORKSPACES_API DescribeWorkspacesRequest() = 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 "DescribeWorkspaces"; }
29
30 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
31
33
35
42 inline const Aws::Vector<Aws::String>& GetWorkspaceIds() const { return m_workspaceIds; }
43 inline bool WorkspaceIdsHasBeenSet() const { return m_workspaceIdsHasBeenSet; }
44 template <typename WorkspaceIdsT = Aws::Vector<Aws::String>>
45 void SetWorkspaceIds(WorkspaceIdsT&& value) {
46 m_workspaceIdsHasBeenSet = true;
47 m_workspaceIds = std::forward<WorkspaceIdsT>(value);
48 }
49 template <typename WorkspaceIdsT = Aws::Vector<Aws::String>>
51 SetWorkspaceIds(std::forward<WorkspaceIdsT>(value));
52 return *this;
53 }
54 template <typename WorkspaceIdsT = Aws::String>
56 m_workspaceIdsHasBeenSet = true;
57 m_workspaceIds.emplace_back(std::forward<WorkspaceIdsT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
69 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
70 template <typename DirectoryIdT = Aws::String>
71 void SetDirectoryId(DirectoryIdT&& value) {
72 m_directoryIdHasBeenSet = true;
73 m_directoryId = std::forward<DirectoryIdT>(value);
74 }
75 template <typename DirectoryIdT = Aws::String>
77 SetDirectoryId(std::forward<DirectoryIdT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetUserName() const { return m_userName; }
88 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
89 template <typename UserNameT = Aws::String>
90 void SetUserName(UserNameT&& value) {
91 m_userNameHasBeenSet = true;
92 m_userName = std::forward<UserNameT>(value);
93 }
94 template <typename UserNameT = Aws::String>
96 SetUserName(std::forward<UserNameT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::String& GetBundleId() const { return m_bundleId; }
108 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
109 template <typename BundleIdT = Aws::String>
110 void SetBundleId(BundleIdT&& value) {
111 m_bundleIdHasBeenSet = true;
112 m_bundleId = std::forward<BundleIdT>(value);
113 }
114 template <typename BundleIdT = Aws::String>
116 SetBundleId(std::forward<BundleIdT>(value));
117 return *this;
118 }
120
122
125 inline int GetLimit() const { return m_limit; }
126 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
127 inline void SetLimit(int value) {
128 m_limitHasBeenSet = true;
129 m_limit = value;
130 }
132 SetLimit(value);
133 return *this;
134 }
136
138
142 inline const Aws::String& GetNextToken() const { return m_nextToken; }
143 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 template <typename NextTokenT = Aws::String>
145 void SetNextToken(NextTokenT&& value) {
146 m_nextTokenHasBeenSet = true;
147 m_nextToken = std::forward<NextTokenT>(value);
148 }
149 template <typename NextTokenT = Aws::String>
151 SetNextToken(std::forward<NextTokenT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetWorkspaceName() const { return m_workspaceName; }
161 inline bool WorkspaceNameHasBeenSet() const { return m_workspaceNameHasBeenSet; }
162 template <typename WorkspaceNameT = Aws::String>
163 void SetWorkspaceName(WorkspaceNameT&& value) {
164 m_workspaceNameHasBeenSet = true;
165 m_workspaceName = std::forward<WorkspaceNameT>(value);
166 }
167 template <typename WorkspaceNameT = Aws::String>
169 SetWorkspaceName(std::forward<WorkspaceNameT>(value));
170 return *this;
171 }
173 private:
174 Aws::Vector<Aws::String> m_workspaceIds;
175
176 Aws::String m_directoryId;
177
178 Aws::String m_userName;
179
180 Aws::String m_bundleId;
181
182 int m_limit{0};
183
184 Aws::String m_nextToken;
185
186 Aws::String m_workspaceName;
187 bool m_workspaceIdsHasBeenSet = false;
188 bool m_directoryIdHasBeenSet = false;
189 bool m_userNameHasBeenSet = false;
190 bool m_bundleIdHasBeenSet = false;
191 bool m_limitHasBeenSet = false;
192 bool m_nextTokenHasBeenSet = false;
193 bool m_workspaceNameHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace WorkSpaces
198} // namespace Aws
const Aws::Vector< Aws::String > & GetWorkspaceIds() const
DescribeWorkspacesRequest & WithBundleId(BundleIdT &&value)
DescribeWorkspacesRequest & WithUserName(UserNameT &&value)
DescribeWorkspacesRequest & WithDirectoryId(DirectoryIdT &&value)
AWS_WORKSPACES_API DescribeWorkspacesRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeWorkspacesRequest & AddWorkspaceIds(WorkspaceIdsT &&value)
DescribeWorkspacesRequest & WithWorkspaceName(WorkspaceNameT &&value)
DescribeWorkspacesRequest & WithWorkspaceIds(WorkspaceIdsT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
DescribeWorkspacesRequest & WithNextToken(NextTokenT &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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