AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeWorkspacesRequest.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 <utility>
12
13namespace Aws
14{
15namespace WorkSpaces
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKSPACES_API DescribeWorkspacesRequest();
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 "DescribeWorkspaces"; }
32
33 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
34
36
37
39
46 inline const Aws::Vector<Aws::String>& GetWorkspaceIds() const{ return m_workspaceIds; }
47 inline bool WorkspaceIdsHasBeenSet() const { return m_workspaceIdsHasBeenSet; }
48 inline void SetWorkspaceIds(const Aws::Vector<Aws::String>& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds = value; }
49 inline void SetWorkspaceIds(Aws::Vector<Aws::String>&& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds = std::move(value); }
51 inline DescribeWorkspacesRequest& WithWorkspaceIds(Aws::Vector<Aws::String>&& value) { SetWorkspaceIds(std::move(value)); return *this;}
52 inline DescribeWorkspacesRequest& AddWorkspaceIds(const Aws::String& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(value); return *this; }
53 inline DescribeWorkspacesRequest& AddWorkspaceIds(Aws::String&& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(std::move(value)); return *this; }
54 inline DescribeWorkspacesRequest& AddWorkspaceIds(const char* value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(value); return *this; }
56
58
63 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
64 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
65 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
66 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
67 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
68 inline DescribeWorkspacesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
69 inline DescribeWorkspacesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
70 inline DescribeWorkspacesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
72
74
78 inline const Aws::String& GetUserName() const{ return m_userName; }
79 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
80 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
81 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
82 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
83 inline DescribeWorkspacesRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
84 inline DescribeWorkspacesRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
85 inline DescribeWorkspacesRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
87
89
94 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
95 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
96 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
97 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
98 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
99 inline DescribeWorkspacesRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
100 inline DescribeWorkspacesRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
101 inline DescribeWorkspacesRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
103
105
108 inline int GetLimit() const{ return m_limit; }
109 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
110 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
111 inline DescribeWorkspacesRequest& WithLimit(int value) { SetLimit(value); return *this;}
113
115
119 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
120 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
121 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
122 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
123 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
124 inline DescribeWorkspacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
125 inline DescribeWorkspacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 inline DescribeWorkspacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128
130
133 inline const Aws::String& GetWorkspaceName() const{ return m_workspaceName; }
134 inline bool WorkspaceNameHasBeenSet() const { return m_workspaceNameHasBeenSet; }
135 inline void SetWorkspaceName(const Aws::String& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = value; }
136 inline void SetWorkspaceName(Aws::String&& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = std::move(value); }
137 inline void SetWorkspaceName(const char* value) { m_workspaceNameHasBeenSet = true; m_workspaceName.assign(value); }
138 inline DescribeWorkspacesRequest& WithWorkspaceName(const Aws::String& value) { SetWorkspaceName(value); return *this;}
139 inline DescribeWorkspacesRequest& WithWorkspaceName(Aws::String&& value) { SetWorkspaceName(std::move(value)); return *this;}
140 inline DescribeWorkspacesRequest& WithWorkspaceName(const char* value) { SetWorkspaceName(value); return *this;}
142 private:
143
144 Aws::Vector<Aws::String> m_workspaceIds;
145 bool m_workspaceIdsHasBeenSet = false;
146
147 Aws::String m_directoryId;
148 bool m_directoryIdHasBeenSet = false;
149
150 Aws::String m_userName;
151 bool m_userNameHasBeenSet = false;
152
153 Aws::String m_bundleId;
154 bool m_bundleIdHasBeenSet = false;
155
156 int m_limit;
157 bool m_limitHasBeenSet = false;
158
159 Aws::String m_nextToken;
160 bool m_nextTokenHasBeenSet = false;
161
162 Aws::String m_workspaceName;
163 bool m_workspaceNameHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace WorkSpaces
168} // namespace Aws
DescribeWorkspacesRequest & WithUserName(const char *value)
DescribeWorkspacesRequest & WithDirectoryId(const char *value)
const Aws::Vector< Aws::String > & GetWorkspaceIds() const
DescribeWorkspacesRequest & AddWorkspaceIds(Aws::String &&value)
DescribeWorkspacesRequest & WithUserName(Aws::String &&value)
DescribeWorkspacesRequest & WithNextToken(const Aws::String &value)
DescribeWorkspacesRequest & WithWorkspaceName(Aws::String &&value)
DescribeWorkspacesRequest & WithBundleId(const Aws::String &value)
void SetWorkspaceIds(const Aws::Vector< Aws::String > &value)
DescribeWorkspacesRequest & WithWorkspaceIds(Aws::Vector< Aws::String > &&value)
DescribeWorkspacesRequest & WithDirectoryId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeWorkspacesRequest & WithBundleId(Aws::String &&value)
DescribeWorkspacesRequest & WithWorkspaceName(const Aws::String &value)
DescribeWorkspacesRequest & WithUserName(const Aws::String &value)
DescribeWorkspacesRequest & WithDirectoryId(const Aws::String &value)
DescribeWorkspacesRequest & AddWorkspaceIds(const Aws::String &value)
void SetWorkspaceIds(Aws::Vector< Aws::String > &&value)
DescribeWorkspacesRequest & AddWorkspaceIds(const char *value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
DescribeWorkspacesRequest & WithNextToken(Aws::String &&value)
DescribeWorkspacesRequest & WithBundleId(const char *value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeWorkspacesRequest & WithWorkspaceName(const char *value)
DescribeWorkspacesRequest & WithWorkspaceIds(const Aws::Vector< Aws::String > &value)
DescribeWorkspacesRequest & WithNextToken(const char *value)
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