AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkSpaceApplication.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/workspaces/model/WorkSpaceApplicationLicenseType.h>
11#include <aws/workspaces/model/WorkSpaceApplicationState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/workspaces/model/Compute.h>
14#include <aws/workspaces/model/OperatingSystemName.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WorkSpaces
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_WORKSPACES_API WorkSpaceApplication() = default;
41 AWS_WORKSPACES_API WorkSpaceApplication(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
51 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
52 template<typename ApplicationIdT = Aws::String>
53 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
54 template<typename ApplicationIdT = Aws::String>
55 WorkSpaceApplication& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
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) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
66 template<typename CreatedT = Aws::Utils::DateTime>
67 WorkSpaceApplication& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 WorkSpaceApplication& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline WorkSpaceApplicationLicenseType GetLicenseType() const { return m_licenseType; }
87 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
88 inline void SetLicenseType(WorkSpaceApplicationLicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template<typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
100 template<typename NameT = Aws::String>
101 WorkSpaceApplication& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
103
105
108 inline const Aws::String& GetOwner() const { return m_owner; }
109 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
110 template<typename OwnerT = Aws::String>
111 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
112 template<typename OwnerT = Aws::String>
113 WorkSpaceApplication& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
115
117
120 inline WorkSpaceApplicationState GetState() const { return m_state; }
121 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
122 inline void SetState(WorkSpaceApplicationState value) { m_stateHasBeenSet = true; m_state = value; }
123 inline WorkSpaceApplication& WithState(WorkSpaceApplicationState value) { SetState(value); return *this;}
125
127
130 inline const Aws::Vector<Compute>& GetSupportedComputeTypeNames() const { return m_supportedComputeTypeNames; }
131 inline bool SupportedComputeTypeNamesHasBeenSet() const { return m_supportedComputeTypeNamesHasBeenSet; }
132 template<typename SupportedComputeTypeNamesT = Aws::Vector<Compute>>
133 void SetSupportedComputeTypeNames(SupportedComputeTypeNamesT&& value) { m_supportedComputeTypeNamesHasBeenSet = true; m_supportedComputeTypeNames = std::forward<SupportedComputeTypeNamesT>(value); }
134 template<typename SupportedComputeTypeNamesT = Aws::Vector<Compute>>
135 WorkSpaceApplication& WithSupportedComputeTypeNames(SupportedComputeTypeNamesT&& value) { SetSupportedComputeTypeNames(std::forward<SupportedComputeTypeNamesT>(value)); return *this;}
136 inline WorkSpaceApplication& AddSupportedComputeTypeNames(Compute value) { m_supportedComputeTypeNamesHasBeenSet = true; m_supportedComputeTypeNames.push_back(value); return *this; }
138
140
143 inline const Aws::Vector<OperatingSystemName>& GetSupportedOperatingSystemNames() const { return m_supportedOperatingSystemNames; }
144 inline bool SupportedOperatingSystemNamesHasBeenSet() const { return m_supportedOperatingSystemNamesHasBeenSet; }
145 template<typename SupportedOperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
146 void SetSupportedOperatingSystemNames(SupportedOperatingSystemNamesT&& value) { m_supportedOperatingSystemNamesHasBeenSet = true; m_supportedOperatingSystemNames = std::forward<SupportedOperatingSystemNamesT>(value); }
147 template<typename SupportedOperatingSystemNamesT = Aws::Vector<OperatingSystemName>>
148 WorkSpaceApplication& WithSupportedOperatingSystemNames(SupportedOperatingSystemNamesT&& value) { SetSupportedOperatingSystemNames(std::forward<SupportedOperatingSystemNamesT>(value)); return *this;}
149 inline WorkSpaceApplication& AddSupportedOperatingSystemNames(OperatingSystemName value) { m_supportedOperatingSystemNamesHasBeenSet = true; m_supportedOperatingSystemNames.push_back(value); return *this; }
151 private:
152
153 Aws::String m_applicationId;
154 bool m_applicationIdHasBeenSet = false;
155
156 Aws::Utils::DateTime m_created{};
157 bool m_createdHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
163 bool m_licenseTypeHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_owner;
169 bool m_ownerHasBeenSet = false;
170
172 bool m_stateHasBeenSet = false;
173
174 Aws::Vector<Compute> m_supportedComputeTypeNames;
175 bool m_supportedComputeTypeNamesHasBeenSet = false;
176
177 Aws::Vector<OperatingSystemName> m_supportedOperatingSystemNames;
178 bool m_supportedOperatingSystemNamesHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace WorkSpaces
183} // namespace Aws
void SetSupportedOperatingSystemNames(SupportedOperatingSystemNamesT &&value)
WorkSpaceApplication & WithState(WorkSpaceApplicationState value)
WorkSpaceApplication & AddSupportedOperatingSystemNames(OperatingSystemName value)
const Aws::Vector< OperatingSystemName > & GetSupportedOperatingSystemNames() const
WorkSpaceApplicationLicenseType GetLicenseType() const
void SetSupportedComputeTypeNames(SupportedComputeTypeNamesT &&value)
AWS_WORKSPACES_API WorkSpaceApplication & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkSpaceApplication & WithSupportedComputeTypeNames(SupportedComputeTypeNamesT &&value)
AWS_WORKSPACES_API WorkSpaceApplication(Aws::Utils::Json::JsonView jsonValue)
WorkSpaceApplication & WithSupportedOperatingSystemNames(SupportedOperatingSystemNamesT &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Compute > & GetSupportedComputeTypeNames() const
WorkSpaceApplication & WithLicenseType(WorkSpaceApplicationLicenseType value)
WorkSpaceApplication & WithName(NameT &&value)
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
Aws::Utils::Json::JsonValue JsonValue