AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartRestoreJobRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API StartRestoreJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartRestoreJob"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
43 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
44 template<typename RecoveryPointArnT = Aws::String>
45 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
46 template<typename RecoveryPointArnT = Aws::String>
47 StartRestoreJobRequest& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
49
51
90 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
91 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
92 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
93 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
94 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
95 StartRestoreJobRequest& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
96 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
97 StartRestoreJobRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
98 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
99 }
101
103
108 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
109 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
110 template<typename IamRoleArnT = Aws::String>
111 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
112 template<typename IamRoleArnT = Aws::String>
113 StartRestoreJobRequest& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
115
117
123 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
124 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
125 template<typename IdempotencyTokenT = Aws::String>
126 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
127 template<typename IdempotencyTokenT = Aws::String>
128 StartRestoreJobRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
130
132
148 inline const Aws::String& GetResourceType() const { return m_resourceType; }
149 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
150 template<typename ResourceTypeT = Aws::String>
151 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
152 template<typename ResourceTypeT = Aws::String>
153 StartRestoreJobRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
155
157
162 inline bool GetCopySourceTagsToRestoredResource() const { return m_copySourceTagsToRestoredResource; }
163 inline bool CopySourceTagsToRestoredResourceHasBeenSet() const { return m_copySourceTagsToRestoredResourceHasBeenSet; }
164 inline void SetCopySourceTagsToRestoredResource(bool value) { m_copySourceTagsToRestoredResourceHasBeenSet = true; m_copySourceTagsToRestoredResource = value; }
167 private:
168
169 Aws::String m_recoveryPointArn;
170 bool m_recoveryPointArnHasBeenSet = false;
171
173 bool m_metadataHasBeenSet = false;
174
175 Aws::String m_iamRoleArn;
176 bool m_iamRoleArnHasBeenSet = false;
177
179 bool m_idempotencyTokenHasBeenSet = true;
180
181 Aws::String m_resourceType;
182 bool m_resourceTypeHasBeenSet = false;
183
184 bool m_copySourceTagsToRestoredResource{false};
185 bool m_copySourceTagsToRestoredResourceHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace Backup
190} // namespace Aws
StartRestoreJobRequest & WithMetadata(MetadataT &&value)
StartRestoreJobRequest & WithRecoveryPointArn(RecoveryPointArnT &&value)
void SetRecoveryPointArn(RecoveryPointArnT &&value)
virtual const char * GetServiceRequestName() const override
StartRestoreJobRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
StartRestoreJobRequest & WithIamRoleArn(IamRoleArnT &&value)
StartRestoreJobRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
StartRestoreJobRequest & WithCopySourceTagsToRestoredResource(bool value)
void SetIdempotencyToken(IdempotencyTokenT &&value)
StartRestoreJobRequest & WithResourceType(ResourceTypeT &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_BACKUP_API StartRestoreJobRequest()=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