AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateResourceProviderRequest.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/ResourceTargetConfigurations.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BackupExternal {
19namespace Model {
20
24 public:
25 AWS_BACKUPEXTERNAL_API UpdateResourceProviderRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceProvider"; }
32
33 AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const ResourceProviderConfiguration& GetProviderConfiguration() const { return m_providerConfiguration; }
76 inline bool ProviderConfigurationHasBeenSet() const { return m_providerConfigurationHasBeenSet; }
77 template <typename ProviderConfigurationT = ResourceProviderConfiguration>
78 void SetProviderConfiguration(ProviderConfigurationT&& value) {
79 m_providerConfigurationHasBeenSet = true;
80 m_providerConfiguration = std::forward<ProviderConfigurationT>(value);
81 }
82 template <typename ProviderConfigurationT = ResourceProviderConfiguration>
84 SetProviderConfiguration(std::forward<ProviderConfigurationT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetSecretConfigurationArn() const { return m_secretConfigurationArn; }
95 inline bool SecretConfigurationArnHasBeenSet() const { return m_secretConfigurationArnHasBeenSet; }
96 template <typename SecretConfigurationArnT = Aws::String>
97 void SetSecretConfigurationArn(SecretConfigurationArnT&& value) {
98 m_secretConfigurationArnHasBeenSet = true;
99 m_secretConfigurationArn = std::forward<SecretConfigurationArnT>(value);
100 }
101 template <typename SecretConfigurationArnT = Aws::String>
103 SetSecretConfigurationArn(std::forward<SecretConfigurationArnT>(value));
104 return *this;
105 }
107
109
113 inline const ResourceTargetConfigurations& GetTargetConfiguration() const { return m_targetConfiguration; }
114 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
115 template <typename TargetConfigurationT = ResourceTargetConfigurations>
116 void SetTargetConfiguration(TargetConfigurationT&& value) {
117 m_targetConfigurationHasBeenSet = true;
118 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
119 }
120 template <typename TargetConfigurationT = ResourceTargetConfigurations>
122 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Map<Aws::String, Aws::String>& GetTargetTagsOnCreate() const { return m_targetTagsOnCreate; }
133 inline bool TargetTagsOnCreateHasBeenSet() const { return m_targetTagsOnCreateHasBeenSet; }
134 template <typename TargetTagsOnCreateT = Aws::Map<Aws::String, Aws::String>>
135 void SetTargetTagsOnCreate(TargetTagsOnCreateT&& value) {
136 m_targetTagsOnCreateHasBeenSet = true;
137 m_targetTagsOnCreate = std::forward<TargetTagsOnCreateT>(value);
138 }
139 template <typename TargetTagsOnCreateT = Aws::Map<Aws::String, Aws::String>>
141 SetTargetTagsOnCreate(std::forward<TargetTagsOnCreateT>(value));
142 return *this;
143 }
144 template <typename TargetTagsOnCreateKeyT = Aws::String, typename TargetTagsOnCreateValueT = Aws::String>
145 UpdateResourceProviderRequest& AddTargetTagsOnCreate(TargetTagsOnCreateKeyT&& key, TargetTagsOnCreateValueT&& value) {
146 m_targetTagsOnCreateHasBeenSet = true;
147 m_targetTagsOnCreate.emplace(std::forward<TargetTagsOnCreateKeyT>(key), std::forward<TargetTagsOnCreateValueT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Vector<Aws::String>& GetTargetTagKeysToSync() const { return m_targetTagKeysToSync; }
158 inline bool TargetTagKeysToSyncHasBeenSet() const { return m_targetTagKeysToSyncHasBeenSet; }
159 template <typename TargetTagKeysToSyncT = Aws::Vector<Aws::String>>
160 void SetTargetTagKeysToSync(TargetTagKeysToSyncT&& value) {
161 m_targetTagKeysToSyncHasBeenSet = true;
162 m_targetTagKeysToSync = std::forward<TargetTagKeysToSyncT>(value);
163 }
164 template <typename TargetTagKeysToSyncT = Aws::Vector<Aws::String>>
166 SetTargetTagKeysToSync(std::forward<TargetTagKeysToSyncT>(value));
167 return *this;
168 }
169 template <typename TargetTagKeysToSyncT = Aws::String>
171 m_targetTagKeysToSyncHasBeenSet = true;
172 m_targetTagKeysToSync.emplace_back(std::forward<TargetTagKeysToSyncT>(value));
173 return *this;
174 }
176
178
183 inline int GetAutoDeleteNotFoundTargetsAfterDays() const { return m_autoDeleteNotFoundTargetsAfterDays; }
184 inline bool AutoDeleteNotFoundTargetsAfterDaysHasBeenSet() const { return m_autoDeleteNotFoundTargetsAfterDaysHasBeenSet; }
186 m_autoDeleteNotFoundTargetsAfterDaysHasBeenSet = true;
187 m_autoDeleteNotFoundTargetsAfterDays = value;
188 }
194 private:
195 Aws::String m_arn;
196
197 Aws::String m_name;
198
199 ResourceProviderConfiguration m_providerConfiguration;
200
201 Aws::String m_secretConfigurationArn;
202
203 ResourceTargetConfigurations m_targetConfiguration;
204
205 Aws::Map<Aws::String, Aws::String> m_targetTagsOnCreate;
206
207 Aws::Vector<Aws::String> m_targetTagKeysToSync;
208
209 int m_autoDeleteNotFoundTargetsAfterDays{0};
210 bool m_arnHasBeenSet = false;
211 bool m_nameHasBeenSet = false;
212 bool m_providerConfigurationHasBeenSet = false;
213 bool m_secretConfigurationArnHasBeenSet = false;
214 bool m_targetConfigurationHasBeenSet = false;
215 bool m_targetTagsOnCreateHasBeenSet = false;
216 bool m_targetTagKeysToSyncHasBeenSet = false;
217 bool m_autoDeleteNotFoundTargetsAfterDaysHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace BackupExternal
222} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTargetTagsOnCreate() const
UpdateResourceProviderRequest & WithSecretConfigurationArn(SecretConfigurationArnT &&value)
const ResourceTargetConfigurations & GetTargetConfiguration() const
AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override
UpdateResourceProviderRequest & AddTargetTagKeysToSync(TargetTagKeysToSyncT &&value)
UpdateResourceProviderRequest & WithTargetTagsOnCreate(TargetTagsOnCreateT &&value)
UpdateResourceProviderRequest & AddTargetTagsOnCreate(TargetTagsOnCreateKeyT &&key, TargetTagsOnCreateValueT &&value)
UpdateResourceProviderRequest & WithAutoDeleteNotFoundTargetsAfterDays(int value)
AWS_BACKUPEXTERNAL_API UpdateResourceProviderRequest()=default
const ResourceProviderConfiguration & GetProviderConfiguration() const
UpdateResourceProviderRequest & WithTargetTagKeysToSync(TargetTagKeysToSyncT &&value)
UpdateResourceProviderRequest & WithProviderConfiguration(ProviderConfigurationT &&value)
UpdateResourceProviderRequest & WithTargetConfiguration(TargetConfigurationT &&value)
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