AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SoftwareSet.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/workspaces-thin-client/WorkSpacesThinClient_EXPORTS.h>
11#include <aws/workspaces-thin-client/model/Software.h>
12#include <aws/workspaces-thin-client/model/SoftwareSetValidationStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkSpacesThinClient {
24namespace Model {
25
32 public:
33 AWS_WORKSPACESTHINCLIENT_API SoftwareSet() = default;
34 AWS_WORKSPACESTHINCLIENT_API SoftwareSet(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKSPACESTHINCLIENT_API SoftwareSet& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 SoftwareSet& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetVersion() const { return m_version; }
61 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
62 template <typename VersionT = Aws::String>
63 void SetVersion(VersionT&& value) {
64 m_versionHasBeenSet = true;
65 m_version = std::forward<VersionT>(value);
66 }
67 template <typename VersionT = Aws::String>
68 SoftwareSet& WithVersion(VersionT&& value) {
69 SetVersion(std::forward<VersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetReleasedAt() const { return m_releasedAt; }
79 inline bool ReleasedAtHasBeenSet() const { return m_releasedAtHasBeenSet; }
80 template <typename ReleasedAtT = Aws::Utils::DateTime>
81 void SetReleasedAt(ReleasedAtT&& value) {
82 m_releasedAtHasBeenSet = true;
83 m_releasedAt = std::forward<ReleasedAtT>(value);
84 }
85 template <typename ReleasedAtT = Aws::Utils::DateTime>
86 SoftwareSet& WithReleasedAt(ReleasedAtT&& value) {
87 SetReleasedAt(std::forward<ReleasedAtT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetSupportedUntil() const { return m_supportedUntil; }
97 inline bool SupportedUntilHasBeenSet() const { return m_supportedUntilHasBeenSet; }
98 template <typename SupportedUntilT = Aws::Utils::DateTime>
99 void SetSupportedUntil(SupportedUntilT&& value) {
100 m_supportedUntilHasBeenSet = true;
101 m_supportedUntil = std::forward<SupportedUntilT>(value);
102 }
103 template <typename SupportedUntilT = Aws::Utils::DateTime>
104 SoftwareSet& WithSupportedUntil(SupportedUntilT&& value) {
105 SetSupportedUntil(std::forward<SupportedUntilT>(value));
106 return *this;
107 }
109
111
114 inline SoftwareSetValidationStatus GetValidationStatus() const { return m_validationStatus; }
115 inline bool ValidationStatusHasBeenSet() const { return m_validationStatusHasBeenSet; }
117 m_validationStatusHasBeenSet = true;
118 m_validationStatus = value;
119 }
121 SetValidationStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::Vector<Software>& GetSoftware() const { return m_software; }
131 inline bool SoftwareHasBeenSet() const { return m_softwareHasBeenSet; }
132 template <typename SoftwareT = Aws::Vector<Software>>
133 void SetSoftware(SoftwareT&& value) {
134 m_softwareHasBeenSet = true;
135 m_software = std::forward<SoftwareT>(value);
136 }
137 template <typename SoftwareT = Aws::Vector<Software>>
138 SoftwareSet& WithSoftware(SoftwareT&& value) {
139 SetSoftware(std::forward<SoftwareT>(value));
140 return *this;
141 }
142 template <typename SoftwareT = Software>
143 SoftwareSet& AddSoftware(SoftwareT&& value) {
144 m_softwareHasBeenSet = true;
145 m_software.emplace_back(std::forward<SoftwareT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetArn() const { return m_arn; }
155 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
156 template <typename ArnT = Aws::String>
157 void SetArn(ArnT&& value) {
158 m_arnHasBeenSet = true;
159 m_arn = std::forward<ArnT>(value);
160 }
161 template <typename ArnT = Aws::String>
162 SoftwareSet& WithArn(ArnT&& value) {
163 SetArn(std::forward<ArnT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_id;
169
170 Aws::String m_version;
171
172 Aws::Utils::DateTime m_releasedAt{};
173
174 Aws::Utils::DateTime m_supportedUntil{};
175
177
178 Aws::Vector<Software> m_software;
179
180 Aws::String m_arn;
181 bool m_idHasBeenSet = false;
182 bool m_versionHasBeenSet = false;
183 bool m_releasedAtHasBeenSet = false;
184 bool m_supportedUntilHasBeenSet = false;
185 bool m_validationStatusHasBeenSet = false;
186 bool m_softwareHasBeenSet = false;
187 bool m_arnHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace WorkSpacesThinClient
192} // namespace Aws
const Aws::String & GetVersion() const
Definition SoftwareSet.h:60
const Aws::Vector< Software > & GetSoftware() const
const Aws::Utils::DateTime & GetSupportedUntil() const
Definition SoftwareSet.h:96
SoftwareSet & WithReleasedAt(ReleasedAtT &&value)
Definition SoftwareSet.h:86
AWS_WORKSPACESTHINCLIENT_API SoftwareSet(Aws::Utils::Json::JsonView jsonValue)
SoftwareSet & WithValidationStatus(SoftwareSetValidationStatus value)
SoftwareSet & WithSupportedUntil(SupportedUntilT &&value)
AWS_WORKSPACESTHINCLIENT_API SoftwareSet()=default
SoftwareSet & AddSoftware(SoftwareT &&value)
AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValidationStatus(SoftwareSetValidationStatus value)
AWS_WORKSPACESTHINCLIENT_API SoftwareSet & operator=(Aws::Utils::Json::JsonView jsonValue)
SoftwareSet & WithSoftware(SoftwareT &&value)
void SetSupportedUntil(SupportedUntilT &&value)
Definition SoftwareSet.h:99
SoftwareSetValidationStatus GetValidationStatus() const
const Aws::Utils::DateTime & GetReleasedAt() const
Definition SoftwareSet.h:78
SoftwareSet & WithVersion(VersionT &&value)
Definition SoftwareSet.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue