AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdatePluginRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/CustomPluginConfiguration.h>
11#include <aws/qbusiness/model/PluginAuthConfiguration.h>
12#include <aws/qbusiness/model/PluginState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QBusiness {
18namespace Model {
19
23 public:
24 AWS_QBUSINESS_API UpdatePluginRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdatePlugin"; }
31
32 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
40 template <typename ApplicationIdT = Aws::String>
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPluginId() const { return m_pluginId; }
57 inline bool PluginIdHasBeenSet() const { return m_pluginIdHasBeenSet; }
58 template <typename PluginIdT = Aws::String>
59 void SetPluginId(PluginIdT&& value) {
60 m_pluginIdHasBeenSet = true;
61 m_pluginId = std::forward<PluginIdT>(value);
62 }
63 template <typename PluginIdT = Aws::String>
65 SetPluginId(std::forward<PluginIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDisplayName() const { return m_displayName; }
75 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
76 template <typename DisplayNameT = Aws::String>
78 m_displayNameHasBeenSet = true;
79 m_displayName = std::forward<DisplayNameT>(value);
80 }
81 template <typename DisplayNameT = Aws::String>
83 SetDisplayName(std::forward<DisplayNameT>(value));
84 return *this;
85 }
87
89
92 inline PluginState GetState() const { return m_state; }
93 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 inline void SetState(PluginState value) {
95 m_stateHasBeenSet = true;
96 m_state = value;
97 }
99 SetState(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetServerUrl() const { return m_serverUrl; }
109 inline bool ServerUrlHasBeenSet() const { return m_serverUrlHasBeenSet; }
110 template <typename ServerUrlT = Aws::String>
111 void SetServerUrl(ServerUrlT&& value) {
112 m_serverUrlHasBeenSet = true;
113 m_serverUrl = std::forward<ServerUrlT>(value);
114 }
115 template <typename ServerUrlT = Aws::String>
117 SetServerUrl(std::forward<ServerUrlT>(value));
118 return *this;
119 }
121
123
126 inline const CustomPluginConfiguration& GetCustomPluginConfiguration() const { return m_customPluginConfiguration; }
127 inline bool CustomPluginConfigurationHasBeenSet() const { return m_customPluginConfigurationHasBeenSet; }
128 template <typename CustomPluginConfigurationT = CustomPluginConfiguration>
130 m_customPluginConfigurationHasBeenSet = true;
131 m_customPluginConfiguration = std::forward<CustomPluginConfigurationT>(value);
132 }
133 template <typename CustomPluginConfigurationT = CustomPluginConfiguration>
135 SetCustomPluginConfiguration(std::forward<CustomPluginConfigurationT>(value));
136 return *this;
137 }
139
141
144 inline const PluginAuthConfiguration& GetAuthConfiguration() const { return m_authConfiguration; }
145 inline bool AuthConfigurationHasBeenSet() const { return m_authConfigurationHasBeenSet; }
146 template <typename AuthConfigurationT = PluginAuthConfiguration>
148 m_authConfigurationHasBeenSet = true;
149 m_authConfiguration = std::forward<AuthConfigurationT>(value);
150 }
151 template <typename AuthConfigurationT = PluginAuthConfiguration>
153 SetAuthConfiguration(std::forward<AuthConfigurationT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_applicationId;
159
160 Aws::String m_pluginId;
161
162 Aws::String m_displayName;
163
165
166 Aws::String m_serverUrl;
167
168 CustomPluginConfiguration m_customPluginConfiguration;
169
170 PluginAuthConfiguration m_authConfiguration;
171 bool m_applicationIdHasBeenSet = false;
172 bool m_pluginIdHasBeenSet = false;
173 bool m_displayNameHasBeenSet = false;
174 bool m_stateHasBeenSet = false;
175 bool m_serverUrlHasBeenSet = false;
176 bool m_customPluginConfigurationHasBeenSet = false;
177 bool m_authConfigurationHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace QBusiness
182} // namespace Aws
UpdatePluginRequest & WithDisplayName(DisplayNameT &&value)
UpdatePluginRequest & WithCustomPluginConfiguration(CustomPluginConfigurationT &&value)
void SetCustomPluginConfiguration(CustomPluginConfigurationT &&value)
UpdatePluginRequest & WithAuthConfiguration(AuthConfigurationT &&value)
const CustomPluginConfiguration & GetCustomPluginConfiguration() const
UpdatePluginRequest & WithState(PluginState value)
virtual const char * GetServiceRequestName() const override
void SetAuthConfiguration(AuthConfigurationT &&value)
UpdatePluginRequest & WithPluginId(PluginIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
UpdatePluginRequest & WithApplicationId(ApplicationIdT &&value)
UpdatePluginRequest & WithServerUrl(ServerUrlT &&value)
AWS_QBUSINESS_API UpdatePluginRequest()=default
void SetApplicationId(ApplicationIdT &&value)
const PluginAuthConfiguration & GetAuthConfiguration() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String