AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeApplicationsRequest.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/workspaces/model/WorkSpaceApplicationLicenseType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/workspaces/model/Compute.h>
13#include <aws/workspaces/model/OperatingSystemName.h>
14#include <utility>
15
16namespace Aws
17{
18namespace WorkSpaces
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WORKSPACES_API DescribeApplicationsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeApplications"; }
35
36 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::Vector<Aws::String>& GetApplicationIds() const { return m_applicationIds; }
46 inline bool ApplicationIdsHasBeenSet() const { return m_applicationIdsHasBeenSet; }
47 template<typename ApplicationIdsT = Aws::Vector<Aws::String>>
48 void SetApplicationIds(ApplicationIdsT&& value) { m_applicationIdsHasBeenSet = true; m_applicationIds = std::forward<ApplicationIdsT>(value); }
49 template<typename ApplicationIdsT = Aws::Vector<Aws::String>>
50 DescribeApplicationsRequest& WithApplicationIds(ApplicationIdsT&& value) { SetApplicationIds(std::forward<ApplicationIdsT>(value)); return *this;}
51 template<typename ApplicationIdsT = Aws::String>
52 DescribeApplicationsRequest& AddApplicationIds(ApplicationIdsT&& value) { m_applicationIdsHasBeenSet = true; m_applicationIds.emplace_back(std::forward<ApplicationIdsT>(value)); return *this; }
54
56
59 inline const Aws::Vector<Compute>& GetComputeTypeNames() const { return m_computeTypeNames; }
60 inline bool ComputeTypeNamesHasBeenSet() const { return m_computeTypeNamesHasBeenSet; }
61 template<typename ComputeTypeNamesT = Aws::Vector<Compute>>
62 void SetComputeTypeNames(ComputeTypeNamesT&& value) { m_computeTypeNamesHasBeenSet = true; m_computeTypeNames = std::forward<ComputeTypeNamesT>(value); }
63 template<typename ComputeTypeNamesT = Aws::Vector<Compute>>
64 DescribeApplicationsRequest& WithComputeTypeNames(ComputeTypeNamesT&& value) { SetComputeTypeNames(std::forward<ComputeTypeNamesT>(value)); return *this;}
65 inline DescribeApplicationsRequest& AddComputeTypeNames(Compute value) { m_computeTypeNamesHasBeenSet = true; m_computeTypeNames.push_back(value); return *this; }
67
69
72 inline WorkSpaceApplicationLicenseType GetLicenseType() const { return m_licenseType; }
73 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
74 inline void SetLicenseType(WorkSpaceApplicationLicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
77
79
82 inline const Aws::Vector<OperatingSystemName>& GetOperatingSystemNames() const { return m_operatingSystemNames; }
83 inline bool OperatingSystemNamesHasBeenSet() const { return m_operatingSystemNamesHasBeenSet; }
84 template<typename OperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
85 void SetOperatingSystemNames(OperatingSystemNamesT&& value) { m_operatingSystemNamesHasBeenSet = true; m_operatingSystemNames = std::forward<OperatingSystemNamesT>(value); }
86 template<typename OperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
87 DescribeApplicationsRequest& WithOperatingSystemNames(OperatingSystemNamesT&& value) { SetOperatingSystemNames(std::forward<OperatingSystemNamesT>(value)); return *this;}
88 inline DescribeApplicationsRequest& AddOperatingSystemNames(OperatingSystemName value) { m_operatingSystemNamesHasBeenSet = true; m_operatingSystemNames.push_back(value); return *this; }
90
92
95 inline const Aws::String& GetOwner() const { return m_owner; }
96 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
97 template<typename OwnerT = Aws::String>
98 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
99 template<typename OwnerT = Aws::String>
100 DescribeApplicationsRequest& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
102
104
107 inline int GetMaxResults() const { return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 inline DescribeApplicationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112
114
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template<typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
122 template<typename NextTokenT = Aws::String>
123 DescribeApplicationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
125 private:
126
127 Aws::Vector<Aws::String> m_applicationIds;
128 bool m_applicationIdsHasBeenSet = false;
129
130 Aws::Vector<Compute> m_computeTypeNames;
131 bool m_computeTypeNamesHasBeenSet = false;
132
134 bool m_licenseTypeHasBeenSet = false;
135
136 Aws::Vector<OperatingSystemName> m_operatingSystemNames;
137 bool m_operatingSystemNamesHasBeenSet = false;
138
139 Aws::String m_owner;
140 bool m_ownerHasBeenSet = false;
141
142 int m_maxResults{0};
143 bool m_maxResultsHasBeenSet = false;
144
145 Aws::String m_nextToken;
146 bool m_nextTokenHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace WorkSpaces
151} // 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