AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Plugin.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/PluginBuildStatus.h>
11#include <aws/qbusiness/model/PluginState.h>
12#include <aws/qbusiness/model/PluginType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness {
24namespace Model {
25
32class Plugin {
33 public:
34 AWS_QBUSINESS_API Plugin() = default;
37 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetPluginId() const { return m_pluginId; }
44 inline bool PluginIdHasBeenSet() const { return m_pluginIdHasBeenSet; }
45 template <typename PluginIdT = Aws::String>
46 void SetPluginId(PluginIdT&& value) {
47 m_pluginIdHasBeenSet = true;
48 m_pluginId = std::forward<PluginIdT>(value);
49 }
50 template <typename PluginIdT = Aws::String>
52 SetPluginId(std::forward<PluginIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDisplayName() const { return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 template <typename DisplayNameT = Aws::String>
65 m_displayNameHasBeenSet = true;
66 m_displayName = std::forward<DisplayNameT>(value);
67 }
68 template <typename DisplayNameT = Aws::String>
70 SetDisplayName(std::forward<DisplayNameT>(value));
71 return *this;
72 }
74
76
79 inline PluginType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(PluginType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
85 inline Plugin& WithType(PluginType value) {
86 SetType(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetServerUrl() const { return m_serverUrl; }
96 inline bool ServerUrlHasBeenSet() const { return m_serverUrlHasBeenSet; }
97 template <typename ServerUrlT = Aws::String>
98 void SetServerUrl(ServerUrlT&& value) {
99 m_serverUrlHasBeenSet = true;
100 m_serverUrl = std::forward<ServerUrlT>(value);
101 }
102 template <typename ServerUrlT = Aws::String>
104 SetServerUrl(std::forward<ServerUrlT>(value));
105 return *this;
106 }
108
110
113 inline PluginState GetState() const { return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 inline void SetState(PluginState value) {
116 m_stateHasBeenSet = true;
117 m_state = value;
118 }
119 inline Plugin& WithState(PluginState value) {
120 SetState(value);
121 return *this;
122 }
124
126
129 inline PluginBuildStatus GetBuildStatus() const { return m_buildStatus; }
130 inline bool BuildStatusHasBeenSet() const { return m_buildStatusHasBeenSet; }
132 m_buildStatusHasBeenSet = true;
133 m_buildStatus = value;
134 }
136 SetBuildStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
147 template <typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) {
149 m_createdAtHasBeenSet = true;
150 m_createdAt = std::forward<CreatedAtT>(value);
151 }
152 template <typename CreatedAtT = Aws::Utils::DateTime>
154 SetCreatedAt(std::forward<CreatedAtT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
164 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
165 template <typename UpdatedAtT = Aws::Utils::DateTime>
166 void SetUpdatedAt(UpdatedAtT&& value) {
167 m_updatedAtHasBeenSet = true;
168 m_updatedAt = std::forward<UpdatedAtT>(value);
169 }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
172 SetUpdatedAt(std::forward<UpdatedAtT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_pluginId;
178
179 Aws::String m_displayName;
180
182
183 Aws::String m_serverUrl;
184
186
188
189 Aws::Utils::DateTime m_createdAt{};
190
191 Aws::Utils::DateTime m_updatedAt{};
192 bool m_pluginIdHasBeenSet = false;
193 bool m_displayNameHasBeenSet = false;
194 bool m_typeHasBeenSet = false;
195 bool m_serverUrlHasBeenSet = false;
196 bool m_stateHasBeenSet = false;
197 bool m_buildStatusHasBeenSet = false;
198 bool m_createdAtHasBeenSet = false;
199 bool m_updatedAtHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace QBusiness
204} // namespace Aws
Plugin & WithState(PluginState value)
Definition Plugin.h:119
AWS_QBUSINESS_API Plugin()=default
const Aws::String & GetDisplayName() const
Definition Plugin.h:61
PluginType GetType() const
Definition Plugin.h:79
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ServerUrlHasBeenSet() const
Definition Plugin.h:96
void SetPluginId(PluginIdT &&value)
Definition Plugin.h:46
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Plugin.h:163
const Aws::String & GetServerUrl() const
Definition Plugin.h:95
Plugin & WithServerUrl(ServerUrlT &&value)
Definition Plugin.h:103
AWS_QBUSINESS_API Plugin(Aws::Utils::Json::JsonView jsonValue)
void SetServerUrl(ServerUrlT &&value)
Definition Plugin.h:98
void SetType(PluginType value)
Definition Plugin.h:81
const Aws::String & GetPluginId() const
Definition Plugin.h:43
AWS_QBUSINESS_API Plugin & operator=(Aws::Utils::Json::JsonView jsonValue)
Plugin & WithBuildStatus(PluginBuildStatus value)
Definition Plugin.h:135
PluginBuildStatus GetBuildStatus() const
Definition Plugin.h:129
Plugin & WithType(PluginType value)
Definition Plugin.h:85
void SetDisplayName(DisplayNameT &&value)
Definition Plugin.h:64
void SetState(PluginState value)
Definition Plugin.h:115
bool CreatedAtHasBeenSet() const
Definition Plugin.h:146
Plugin & WithPluginId(PluginIdT &&value)
Definition Plugin.h:51
Plugin & WithDisplayName(DisplayNameT &&value)
Definition Plugin.h:69
Plugin & WithUpdatedAt(UpdatedAtT &&value)
Definition Plugin.h:171
bool UpdatedAtHasBeenSet() const
Definition Plugin.h:164
bool TypeHasBeenSet() const
Definition Plugin.h:80
bool DisplayNameHasBeenSet() const
Definition Plugin.h:62
bool BuildStatusHasBeenSet() const
Definition Plugin.h:130
bool StateHasBeenSet() const
Definition Plugin.h:114
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Plugin.h:145
void SetBuildStatus(PluginBuildStatus value)
Definition Plugin.h:131
PluginState GetState() const
Definition Plugin.h:113
Plugin & WithCreatedAt(CreatedAtT &&value)
Definition Plugin.h:153
void SetUpdatedAt(UpdatedAtT &&value)
Definition Plugin.h:166
void SetCreatedAt(CreatedAtT &&value)
Definition Plugin.h:148
bool PluginIdHasBeenSet() const
Definition Plugin.h:44
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue