AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePluginRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/PluginType.h>
11#include <aws/qbusiness/model/PluginAuthConfiguration.h>
12#include <aws/qbusiness/model/CustomPluginConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/qbusiness/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace QBusiness
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QBUSINESS_API CreatePluginRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreatePlugin"; }
37
38 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
46 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
47 template<typename ApplicationIdT = Aws::String>
48 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
49 template<typename ApplicationIdT = Aws::String>
50 CreatePluginRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 template<typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
61 template<typename DisplayNameT = Aws::String>
62 CreatePluginRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
64
66
69 inline PluginType GetType() const { return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(PluginType value) { m_typeHasBeenSet = true; m_type = value; }
72 inline CreatePluginRequest& WithType(PluginType value) { SetType(value); return *this;}
74
76
77 inline const PluginAuthConfiguration& GetAuthConfiguration() const { return m_authConfiguration; }
78 inline bool AuthConfigurationHasBeenSet() const { return m_authConfigurationHasBeenSet; }
79 template<typename AuthConfigurationT = PluginAuthConfiguration>
80 void SetAuthConfiguration(AuthConfigurationT&& value) { m_authConfigurationHasBeenSet = true; m_authConfiguration = std::forward<AuthConfigurationT>(value); }
81 template<typename AuthConfigurationT = PluginAuthConfiguration>
82 CreatePluginRequest& WithAuthConfiguration(AuthConfigurationT&& value) { SetAuthConfiguration(std::forward<AuthConfigurationT>(value)); return *this;}
84
86
89 inline const Aws::String& GetServerUrl() const { return m_serverUrl; }
90 inline bool ServerUrlHasBeenSet() const { return m_serverUrlHasBeenSet; }
91 template<typename ServerUrlT = Aws::String>
92 void SetServerUrl(ServerUrlT&& value) { m_serverUrlHasBeenSet = true; m_serverUrl = std::forward<ServerUrlT>(value); }
93 template<typename ServerUrlT = Aws::String>
94 CreatePluginRequest& WithServerUrl(ServerUrlT&& value) { SetServerUrl(std::forward<ServerUrlT>(value)); return *this;}
96
98
101 inline const CustomPluginConfiguration& GetCustomPluginConfiguration() const { return m_customPluginConfiguration; }
102 inline bool CustomPluginConfigurationHasBeenSet() const { return m_customPluginConfigurationHasBeenSet; }
103 template<typename CustomPluginConfigurationT = CustomPluginConfiguration>
104 void SetCustomPluginConfiguration(CustomPluginConfigurationT&& value) { m_customPluginConfigurationHasBeenSet = true; m_customPluginConfiguration = std::forward<CustomPluginConfigurationT>(value); }
105 template<typename CustomPluginConfigurationT = CustomPluginConfiguration>
106 CreatePluginRequest& WithCustomPluginConfiguration(CustomPluginConfigurationT&& value) { SetCustomPluginConfiguration(std::forward<CustomPluginConfigurationT>(value)); return *this;}
108
110
116 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template<typename TagsT = Aws::Vector<Tag>>
119 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
120 template<typename TagsT = Aws::Vector<Tag>>
121 CreatePluginRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
122 template<typename TagsT = Tag>
123 CreatePluginRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
125
127
131 inline const Aws::String& GetClientToken() const { return m_clientToken; }
132 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
133 template<typename ClientTokenT = Aws::String>
134 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
135 template<typename ClientTokenT = Aws::String>
136 CreatePluginRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
138 private:
139
140 Aws::String m_applicationId;
141 bool m_applicationIdHasBeenSet = false;
142
143 Aws::String m_displayName;
144 bool m_displayNameHasBeenSet = false;
145
147 bool m_typeHasBeenSet = false;
148
149 PluginAuthConfiguration m_authConfiguration;
150 bool m_authConfigurationHasBeenSet = false;
151
152 Aws::String m_serverUrl;
153 bool m_serverUrlHasBeenSet = false;
154
155 CustomPluginConfiguration m_customPluginConfiguration;
156 bool m_customPluginConfigurationHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160
162 bool m_clientTokenHasBeenSet = true;
163 };
164
165} // namespace Model
166} // namespace QBusiness
167} // namespace Aws
CreatePluginRequest & WithTags(TagsT &&value)
void SetAuthConfiguration(AuthConfigurationT &&value)
CreatePluginRequest & WithCustomPluginConfiguration(CustomPluginConfigurationT &&value)
CreatePluginRequest & WithApplicationId(ApplicationIdT &&value)
CreatePluginRequest & WithType(PluginType value)
CreatePluginRequest & WithAuthConfiguration(AuthConfigurationT &&value)
AWS_QBUSINESS_API CreatePluginRequest()=default
CreatePluginRequest & WithDisplayName(DisplayNameT &&value)
void SetCustomPluginConfiguration(CustomPluginConfigurationT &&value)
void SetApplicationId(ApplicationIdT &&value)
const PluginAuthConfiguration & GetAuthConfiguration() const
const Aws::Vector< Tag > & GetTags() const
const CustomPluginConfiguration & GetCustomPluginConfiguration() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreatePluginRequest & WithServerUrl(ServerUrlT &&value)
CreatePluginRequest & WithClientToken(ClientTokenT &&value)
CreatePluginRequest & AddTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector