AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkSpaceApplication.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/workspaces/WorkSpaces_EXPORTS.h>
12#include <aws/workspaces/model/Compute.h>
13#include <aws/workspaces/model/OperatingSystemName.h>
14#include <aws/workspaces/model/WorkSpaceApplicationLicenseType.h>
15#include <aws/workspaces/model/WorkSpaceApplicationState.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace WorkSpaces {
26namespace Model {
27
34 public:
35 AWS_WORKSPACES_API WorkSpaceApplication() = default;
36 AWS_WORKSPACES_API WorkSpaceApplication(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_WORKSPACES_API WorkSpaceApplication& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 template <typename ApplicationIdT = Aws::String>
47 void SetApplicationId(ApplicationIdT&& value) {
48 m_applicationIdHasBeenSet = true;
49 m_applicationId = std::forward<ApplicationIdT>(value);
50 }
51 template <typename ApplicationIdT = Aws::String>
52 WorkSpaceApplication& WithApplicationId(ApplicationIdT&& value) {
53 SetApplicationId(std::forward<ApplicationIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
63 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
64 template <typename CreatedT = Aws::Utils::DateTime>
65 void SetCreated(CreatedT&& value) {
66 m_createdHasBeenSet = true;
67 m_created = std::forward<CreatedT>(value);
68 }
69 template <typename CreatedT = Aws::Utils::DateTime>
70 WorkSpaceApplication& WithCreated(CreatedT&& value) {
71 SetCreated(std::forward<CreatedT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 WorkSpaceApplication& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline WorkSpaceApplicationLicenseType GetLicenseType() const { return m_licenseType; }
99 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
101 m_licenseTypeHasBeenSet = true;
102 m_licenseType = value;
103 }
105 SetLicenseType(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetName() const { return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 template <typename NameT = Aws::String>
117 void SetName(NameT&& value) {
118 m_nameHasBeenSet = true;
119 m_name = std::forward<NameT>(value);
120 }
121 template <typename NameT = Aws::String>
123 SetName(std::forward<NameT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetOwner() const { return m_owner; }
133 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
134 template <typename OwnerT = Aws::String>
135 void SetOwner(OwnerT&& value) {
136 m_ownerHasBeenSet = true;
137 m_owner = std::forward<OwnerT>(value);
138 }
139 template <typename OwnerT = Aws::String>
141 SetOwner(std::forward<OwnerT>(value));
142 return *this;
143 }
145
147
150 inline WorkSpaceApplicationState GetState() const { return m_state; }
151 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
153 m_stateHasBeenSet = true;
154 m_state = value;
155 }
157 SetState(value);
158 return *this;
159 }
161
163
166 inline const Aws::Vector<Compute>& GetSupportedComputeTypeNames() const { return m_supportedComputeTypeNames; }
167 inline bool SupportedComputeTypeNamesHasBeenSet() const { return m_supportedComputeTypeNamesHasBeenSet; }
168 template <typename SupportedComputeTypeNamesT = Aws::Vector<Compute>>
169 void SetSupportedComputeTypeNames(SupportedComputeTypeNamesT&& value) {
170 m_supportedComputeTypeNamesHasBeenSet = true;
171 m_supportedComputeTypeNames = std::forward<SupportedComputeTypeNamesT>(value);
172 }
173 template <typename SupportedComputeTypeNamesT = Aws::Vector<Compute>>
174 WorkSpaceApplication& WithSupportedComputeTypeNames(SupportedComputeTypeNamesT&& value) {
175 SetSupportedComputeTypeNames(std::forward<SupportedComputeTypeNamesT>(value));
176 return *this;
177 }
179 m_supportedComputeTypeNamesHasBeenSet = true;
180 m_supportedComputeTypeNames.push_back(value);
181 return *this;
182 }
184
186
189 inline const Aws::Vector<OperatingSystemName>& GetSupportedOperatingSystemNames() const { return m_supportedOperatingSystemNames; }
190 inline bool SupportedOperatingSystemNamesHasBeenSet() const { return m_supportedOperatingSystemNamesHasBeenSet; }
191 template <typename SupportedOperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
192 void SetSupportedOperatingSystemNames(SupportedOperatingSystemNamesT&& value) {
193 m_supportedOperatingSystemNamesHasBeenSet = true;
194 m_supportedOperatingSystemNames = std::forward<SupportedOperatingSystemNamesT>(value);
195 }
196 template <typename SupportedOperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
197 WorkSpaceApplication& WithSupportedOperatingSystemNames(SupportedOperatingSystemNamesT&& value) {
198 SetSupportedOperatingSystemNames(std::forward<SupportedOperatingSystemNamesT>(value));
199 return *this;
200 }
202 m_supportedOperatingSystemNamesHasBeenSet = true;
203 m_supportedOperatingSystemNames.push_back(value);
204 return *this;
205 }
207 private:
208 Aws::String m_applicationId;
209
210 Aws::Utils::DateTime m_created{};
211
212 Aws::String m_description;
213
215
216 Aws::String m_name;
217
218 Aws::String m_owner;
219
221
222 Aws::Vector<Compute> m_supportedComputeTypeNames;
223
224 Aws::Vector<OperatingSystemName> m_supportedOperatingSystemNames;
225 bool m_applicationIdHasBeenSet = false;
226 bool m_createdHasBeenSet = false;
227 bool m_descriptionHasBeenSet = false;
228 bool m_licenseTypeHasBeenSet = false;
229 bool m_nameHasBeenSet = false;
230 bool m_ownerHasBeenSet = false;
231 bool m_stateHasBeenSet = false;
232 bool m_supportedComputeTypeNamesHasBeenSet = false;
233 bool m_supportedOperatingSystemNamesHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace WorkSpaces
238} // namespace Aws
void SetSupportedOperatingSystemNames(SupportedOperatingSystemNamesT &&value)
WorkSpaceApplication & WithState(WorkSpaceApplicationState value)
WorkSpaceApplication & AddSupportedOperatingSystemNames(OperatingSystemName value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< OperatingSystemName > & GetSupportedOperatingSystemNames() const
WorkSpaceApplicationLicenseType GetLicenseType() const
void SetSupportedComputeTypeNames(SupportedComputeTypeNamesT &&value)
WorkSpaceApplication & WithSupportedComputeTypeNames(SupportedComputeTypeNamesT &&value)
WorkSpaceApplication & WithSupportedOperatingSystemNames(SupportedOperatingSystemNamesT &&value)
AWS_WORKSPACES_API WorkSpaceApplication & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Compute > & GetSupportedComputeTypeNames() const
WorkSpaceApplication & WithLicenseType(WorkSpaceApplicationLicenseType value)
WorkSpaceApplication & WithName(NameT &&value)
AWS_WORKSPACES_API WorkSpaceApplication(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkSpaceApplication & WithCreated(CreatedT &&value)
WorkSpaceApplication & WithApplicationId(ApplicationIdT &&value)
void SetState(WorkSpaceApplicationState value)
WorkSpaceApplication & WithOwner(OwnerT &&value)
WorkSpaceApplication & WithDescription(DescriptionT &&value)
WorkSpaceApplication & AddSupportedComputeTypeNames(Compute value)
AWS_WORKSPACES_API WorkSpaceApplication()=default
void SetLicenseType(WorkSpaceApplicationLicenseType value)
const Aws::Utils::DateTime & GetCreated() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector