AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
13namespace Aws
14{
15namespace Backup
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BACKUP_API StartRestoreJobRequest();
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 "StartRestoreJob"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; }
42 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
43 inline void SetRecoveryPointArn(const Aws::String& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = value; }
44 inline void SetRecoveryPointArn(Aws::String&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::move(value); }
45 inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn.assign(value); }
46 inline StartRestoreJobRequest& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;}
47 inline StartRestoreJobRequest& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;}
48 inline StartRestoreJobRequest& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;}
50
52
91 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
92 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
93 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
94 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
96 inline StartRestoreJobRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
97 inline StartRestoreJobRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
98 inline StartRestoreJobRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
99 inline StartRestoreJobRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
100 inline StartRestoreJobRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
101 inline StartRestoreJobRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
102 inline StartRestoreJobRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
103 inline StartRestoreJobRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
105
107
112 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
113 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
114 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
115 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
116 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
117 inline StartRestoreJobRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
118 inline StartRestoreJobRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
119 inline StartRestoreJobRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
121
123
129 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
130 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
131 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
132 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
133 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
134 inline StartRestoreJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
135 inline StartRestoreJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
136 inline StartRestoreJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
138
140
156 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
157 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
158 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
159 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
160 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
161 inline StartRestoreJobRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
162 inline StartRestoreJobRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
163 inline StartRestoreJobRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
165
167
172 inline bool GetCopySourceTagsToRestoredResource() const{ return m_copySourceTagsToRestoredResource; }
173 inline bool CopySourceTagsToRestoredResourceHasBeenSet() const { return m_copySourceTagsToRestoredResourceHasBeenSet; }
174 inline void SetCopySourceTagsToRestoredResource(bool value) { m_copySourceTagsToRestoredResourceHasBeenSet = true; m_copySourceTagsToRestoredResource = value; }
177 private:
178
179 Aws::String m_recoveryPointArn;
180 bool m_recoveryPointArnHasBeenSet = false;
181
183 bool m_metadataHasBeenSet = false;
184
185 Aws::String m_iamRoleArn;
186 bool m_iamRoleArnHasBeenSet = false;
187
188 Aws::String m_idempotencyToken;
189 bool m_idempotencyTokenHasBeenSet = false;
190
191 Aws::String m_resourceType;
192 bool m_resourceTypeHasBeenSet = false;
193
194 bool m_copySourceTagsToRestoredResource;
195 bool m_copySourceTagsToRestoredResourceHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace Backup
200} // namespace Aws
StartRestoreJobRequest & WithRecoveryPointArn(const char *value)
StartRestoreJobRequest & WithResourceType(const char *value)
StartRestoreJobRequest & WithResourceType(const Aws::String &value)
StartRestoreJobRequest & WithIamRoleArn(const Aws::String &value)
StartRestoreJobRequest & AddMetadata(Aws::String &&key, const char *value)
StartRestoreJobRequest & WithRecoveryPointArn(Aws::String &&value)
StartRestoreJobRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
StartRestoreJobRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
StartRestoreJobRequest & WithIamRoleArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
StartRestoreJobRequest & WithRecoveryPointArn(const Aws::String &value)
StartRestoreJobRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
StartRestoreJobRequest & AddMetadata(const char *key, Aws::String &&value)
StartRestoreJobRequest & WithIdempotencyToken(const char *value)
void SetIdempotencyToken(const Aws::String &value)
StartRestoreJobRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
StartRestoreJobRequest & WithIdempotencyToken(const Aws::String &value)
StartRestoreJobRequest & WithResourceType(Aws::String &&value)
StartRestoreJobRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
StartRestoreJobRequest & WithIamRoleArn(const char *value)
StartRestoreJobRequest & WithIdempotencyToken(Aws::String &&value)
StartRestoreJobRequest & AddMetadata(const char *key, const char *value)
StartRestoreJobRequest & WithCopySourceTagsToRestoredResource(bool value)
StartRestoreJobRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
AWS_BACKUP_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetRecoveryPointArn(const Aws::String &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