AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DescribeApplicationsRequest.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#include <aws/workspaces/model/Compute.h>
12#include <aws/workspaces/model/OperatingSystemName.h>
13#include <aws/workspaces/model/WorkSpaceApplicationLicenseType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WorkSpaces {
19namespace Model {
20
24 public:
25 AWS_WORKSPACES_API DescribeApplicationsRequest() = 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 "DescribeApplications"; }
32
33 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::Vector<Aws::String>& GetApplicationIds() const { return m_applicationIds; }
42 inline bool ApplicationIdsHasBeenSet() const { return m_applicationIdsHasBeenSet; }
43 template <typename ApplicationIdsT = Aws::Vector<Aws::String>>
44 void SetApplicationIds(ApplicationIdsT&& value) {
45 m_applicationIdsHasBeenSet = true;
46 m_applicationIds = std::forward<ApplicationIdsT>(value);
47 }
48 template <typename ApplicationIdsT = Aws::Vector<Aws::String>>
50 SetApplicationIds(std::forward<ApplicationIdsT>(value));
51 return *this;
52 }
53 template <typename ApplicationIdsT = Aws::String>
55 m_applicationIdsHasBeenSet = true;
56 m_applicationIds.emplace_back(std::forward<ApplicationIdsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<Compute>& GetComputeTypeNames() const { return m_computeTypeNames; }
66 inline bool ComputeTypeNamesHasBeenSet() const { return m_computeTypeNamesHasBeenSet; }
67 template <typename ComputeTypeNamesT = Aws::Vector<Compute>>
68 void SetComputeTypeNames(ComputeTypeNamesT&& value) {
69 m_computeTypeNamesHasBeenSet = true;
70 m_computeTypeNames = std::forward<ComputeTypeNamesT>(value);
71 }
72 template <typename ComputeTypeNamesT = Aws::Vector<Compute>>
74 SetComputeTypeNames(std::forward<ComputeTypeNamesT>(value));
75 return *this;
76 }
78 m_computeTypeNamesHasBeenSet = true;
79 m_computeTypeNames.push_back(value);
80 return *this;
81 }
83
85
88 inline WorkSpaceApplicationLicenseType GetLicenseType() const { return m_licenseType; }
89 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
91 m_licenseTypeHasBeenSet = true;
92 m_licenseType = value;
93 }
99
101
104 inline const Aws::Vector<OperatingSystemName>& GetOperatingSystemNames() const { return m_operatingSystemNames; }
105 inline bool OperatingSystemNamesHasBeenSet() const { return m_operatingSystemNamesHasBeenSet; }
106 template <typename OperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
107 void SetOperatingSystemNames(OperatingSystemNamesT&& value) {
108 m_operatingSystemNamesHasBeenSet = true;
109 m_operatingSystemNames = std::forward<OperatingSystemNamesT>(value);
110 }
111 template <typename OperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
113 SetOperatingSystemNames(std::forward<OperatingSystemNamesT>(value));
114 return *this;
115 }
117 m_operatingSystemNamesHasBeenSet = true;
118 m_operatingSystemNames.push_back(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetOwner() const { return m_owner; }
128 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
129 template <typename OwnerT = Aws::String>
130 void SetOwner(OwnerT&& value) {
131 m_ownerHasBeenSet = true;
132 m_owner = std::forward<OwnerT>(value);
133 }
134 template <typename OwnerT = Aws::String>
136 SetOwner(std::forward<OwnerT>(value));
137 return *this;
138 }
140
142
145 inline int GetMaxResults() const { return m_maxResults; }
146 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
147 inline void SetMaxResults(int value) {
148 m_maxResultsHasBeenSet = true;
149 m_maxResults = value;
150 }
152 SetMaxResults(value);
153 return *this;
154 }
156
158
162 inline const Aws::String& GetNextToken() const { return m_nextToken; }
163 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
164 template <typename NextTokenT = Aws::String>
165 void SetNextToken(NextTokenT&& value) {
166 m_nextTokenHasBeenSet = true;
167 m_nextToken = std::forward<NextTokenT>(value);
168 }
169 template <typename NextTokenT = Aws::String>
171 SetNextToken(std::forward<NextTokenT>(value));
172 return *this;
173 }
175 private:
176 Aws::Vector<Aws::String> m_applicationIds;
177
178 Aws::Vector<Compute> m_computeTypeNames;
179
181
182 Aws::Vector<OperatingSystemName> m_operatingSystemNames;
183
184 Aws::String m_owner;
185
186 int m_maxResults{0};
187
188 Aws::String m_nextToken;
189 bool m_applicationIdsHasBeenSet = false;
190 bool m_computeTypeNamesHasBeenSet = false;
191 bool m_licenseTypeHasBeenSet = false;
192 bool m_operatingSystemNamesHasBeenSet = false;
193 bool m_ownerHasBeenSet = false;
194 bool m_maxResultsHasBeenSet = false;
195 bool m_nextTokenHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace WorkSpaces
200} // namespace Aws
DescribeApplicationsRequest & WithOwner(OwnerT &&value)
DescribeApplicationsRequest & WithApplicationIds(ApplicationIdsT &&value)
DescribeApplicationsRequest & WithLicenseType(WorkSpaceApplicationLicenseType value)
DescribeApplicationsRequest & WithOperatingSystemNames(OperatingSystemNamesT &&value)
AWS_WORKSPACES_API DescribeApplicationsRequest()=default
DescribeApplicationsRequest & AddComputeTypeNames(Compute value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
DescribeApplicationsRequest & AddOperatingSystemNames(OperatingSystemName value)
DescribeApplicationsRequest & WithComputeTypeNames(ComputeTypeNamesT &&value)
const Aws::Vector< OperatingSystemName > & GetOperatingSystemNames() const
const Aws::Vector< Aws::String > & GetApplicationIds() const
DescribeApplicationsRequest & AddApplicationIds(ApplicationIdsT &&value)
DescribeApplicationsRequest & WithNextToken(NextTokenT &&value)
void SetLicenseType(WorkSpaceApplicationLicenseType 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