AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateResourceProviderRequest.h
1
6#pragma once
7#include <aws/backup-external/BackupExternalRequest.h>
8#include <aws/backup-external/BackupExternal_EXPORTS.h>
9#include <aws/backup-external/model/ResourceProviderConfiguration.h>
10#include <aws/backup-external/model/ResourceProviderType.h>
11#include <aws/backup-external/model/ResourceTargetConfigurations.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace BackupExternal {
21namespace Model {
22
26 public:
27 AWS_BACKUPEXTERNAL_API CreateResourceProviderRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceProvider"; }
34
35 AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetApplianceArn() const { return m_applianceArn; }
42 inline bool ApplianceArnHasBeenSet() const { return m_applianceArnHasBeenSet; }
43 template <typename ApplianceArnT = Aws::String>
44 void SetApplianceArn(ApplianceArnT&& value) {
45 m_applianceArnHasBeenSet = true;
46 m_applianceArn = std::forward<ApplianceArnT>(value);
47 }
48 template <typename ApplianceArnT = Aws::String>
50 SetApplianceArn(std::forward<ApplianceArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template <typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) {
64 m_clientTokenHasBeenSet = true;
65 m_clientToken = std::forward<ClientTokenT>(value);
66 }
67 template <typename ClientTokenT = Aws::String>
69 SetClientToken(std::forward<ClientTokenT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const ResourceProviderConfiguration& GetProviderConfiguration() const { return m_providerConfiguration; }
97 inline bool ProviderConfigurationHasBeenSet() const { return m_providerConfigurationHasBeenSet; }
98 template <typename ProviderConfigurationT = ResourceProviderConfiguration>
99 void SetProviderConfiguration(ProviderConfigurationT&& value) {
100 m_providerConfigurationHasBeenSet = true;
101 m_providerConfiguration = std::forward<ProviderConfigurationT>(value);
102 }
103 template <typename ProviderConfigurationT = ResourceProviderConfiguration>
105 SetProviderConfiguration(std::forward<ProviderConfigurationT>(value));
106 return *this;
107 }
109
111
114 inline ResourceProviderType GetProviderType() const { return m_providerType; }
115 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
117 m_providerTypeHasBeenSet = true;
118 m_providerType = value;
119 }
121 SetProviderType(value);
122 return *this;
123 }
125
127
131 inline const Aws::String& GetSecretConfigurationArn() const { return m_secretConfigurationArn; }
132 inline bool SecretConfigurationArnHasBeenSet() const { return m_secretConfigurationArnHasBeenSet; }
133 template <typename SecretConfigurationArnT = Aws::String>
134 void SetSecretConfigurationArn(SecretConfigurationArnT&& value) {
135 m_secretConfigurationArnHasBeenSet = true;
136 m_secretConfigurationArn = std::forward<SecretConfigurationArnT>(value);
137 }
138 template <typename SecretConfigurationArnT = Aws::String>
140 SetSecretConfigurationArn(std::forward<SecretConfigurationArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 CreateResourceProviderRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
168
170
174 inline const ResourceTargetConfigurations& GetTargetConfiguration() const { return m_targetConfiguration; }
175 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
176 template <typename TargetConfigurationT = ResourceTargetConfigurations>
177 void SetTargetConfiguration(TargetConfigurationT&& value) {
178 m_targetConfigurationHasBeenSet = true;
179 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
180 }
181 template <typename TargetConfigurationT = ResourceTargetConfigurations>
183 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::Map<Aws::String, Aws::String>& GetTargetTagsOnCreate() const { return m_targetTagsOnCreate; }
194 inline bool TargetTagsOnCreateHasBeenSet() const { return m_targetTagsOnCreateHasBeenSet; }
195 template <typename TargetTagsOnCreateT = Aws::Map<Aws::String, Aws::String>>
196 void SetTargetTagsOnCreate(TargetTagsOnCreateT&& value) {
197 m_targetTagsOnCreateHasBeenSet = true;
198 m_targetTagsOnCreate = std::forward<TargetTagsOnCreateT>(value);
199 }
200 template <typename TargetTagsOnCreateT = Aws::Map<Aws::String, Aws::String>>
202 SetTargetTagsOnCreate(std::forward<TargetTagsOnCreateT>(value));
203 return *this;
204 }
205 template <typename TargetTagsOnCreateKeyT = Aws::String, typename TargetTagsOnCreateValueT = Aws::String>
206 CreateResourceProviderRequest& AddTargetTagsOnCreate(TargetTagsOnCreateKeyT&& key, TargetTagsOnCreateValueT&& value) {
207 m_targetTagsOnCreateHasBeenSet = true;
208 m_targetTagsOnCreate.emplace(std::forward<TargetTagsOnCreateKeyT>(key), std::forward<TargetTagsOnCreateValueT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::Vector<Aws::String>& GetTargetTagKeysToSync() const { return m_targetTagKeysToSync; }
219 inline bool TargetTagKeysToSyncHasBeenSet() const { return m_targetTagKeysToSyncHasBeenSet; }
220 template <typename TargetTagKeysToSyncT = Aws::Vector<Aws::String>>
221 void SetTargetTagKeysToSync(TargetTagKeysToSyncT&& value) {
222 m_targetTagKeysToSyncHasBeenSet = true;
223 m_targetTagKeysToSync = std::forward<TargetTagKeysToSyncT>(value);
224 }
225 template <typename TargetTagKeysToSyncT = Aws::Vector<Aws::String>>
227 SetTargetTagKeysToSync(std::forward<TargetTagKeysToSyncT>(value));
228 return *this;
229 }
230 template <typename TargetTagKeysToSyncT = Aws::String>
232 m_targetTagKeysToSyncHasBeenSet = true;
233 m_targetTagKeysToSync.emplace_back(std::forward<TargetTagKeysToSyncT>(value));
234 return *this;
235 }
237
239
243 inline int GetAutoDeleteNotFoundTargetsAfterDays() const { return m_autoDeleteNotFoundTargetsAfterDays; }
244 inline bool AutoDeleteNotFoundTargetsAfterDaysHasBeenSet() const { return m_autoDeleteNotFoundTargetsAfterDaysHasBeenSet; }
246 m_autoDeleteNotFoundTargetsAfterDaysHasBeenSet = true;
247 m_autoDeleteNotFoundTargetsAfterDays = value;
248 }
254 private:
255 Aws::String m_applianceArn;
256
258
259 Aws::String m_name;
260
261 ResourceProviderConfiguration m_providerConfiguration;
262
264
265 Aws::String m_secretConfigurationArn;
266
268
269 ResourceTargetConfigurations m_targetConfiguration;
270
271 Aws::Map<Aws::String, Aws::String> m_targetTagsOnCreate;
272
273 Aws::Vector<Aws::String> m_targetTagKeysToSync;
274
275 int m_autoDeleteNotFoundTargetsAfterDays{0};
276 bool m_applianceArnHasBeenSet = false;
277 bool m_clientTokenHasBeenSet = true;
278 bool m_nameHasBeenSet = false;
279 bool m_providerConfigurationHasBeenSet = false;
280 bool m_providerTypeHasBeenSet = false;
281 bool m_secretConfigurationArnHasBeenSet = false;
282 bool m_tagsHasBeenSet = false;
283 bool m_targetConfigurationHasBeenSet = false;
284 bool m_targetTagsOnCreateHasBeenSet = false;
285 bool m_targetTagKeysToSyncHasBeenSet = false;
286 bool m_autoDeleteNotFoundTargetsAfterDaysHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace BackupExternal
291} // namespace Aws
CreateResourceProviderRequest & WithAutoDeleteNotFoundTargetsAfterDays(int value)
CreateResourceProviderRequest & WithTargetTagKeysToSync(TargetTagKeysToSyncT &&value)
const ResourceProviderConfiguration & GetProviderConfiguration() const
CreateResourceProviderRequest & WithClientToken(ClientTokenT &&value)
const ResourceTargetConfigurations & GetTargetConfiguration() const
CreateResourceProviderRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override
CreateResourceProviderRequest & WithProviderConfiguration(ProviderConfigurationT &&value)
CreateResourceProviderRequest & WithSecretConfigurationArn(SecretConfigurationArnT &&value)
CreateResourceProviderRequest & WithApplianceArn(ApplianceArnT &&value)
CreateResourceProviderRequest & AddTargetTagsOnCreate(TargetTagsOnCreateKeyT &&key, TargetTagsOnCreateValueT &&value)
CreateResourceProviderRequest & WithTargetTagsOnCreate(TargetTagsOnCreateT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateResourceProviderRequest & WithTargetConfiguration(TargetConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTargetTagsOnCreate() const
CreateResourceProviderRequest & AddTargetTagKeysToSync(TargetTagKeysToSyncT &&value)
CreateResourceProviderRequest & WithProviderType(ResourceProviderType value)
AWS_BACKUPEXTERNAL_API CreateResourceProviderRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector