AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateRecoveryPointLifecycleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "UpdateRecoveryPointLifecycle"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
42  inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
43 
50  inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
51 
58  inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
59 
66  inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
67 
74  inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
75 
82  inline UpdateRecoveryPointLifecycleRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
83 
90  inline UpdateRecoveryPointLifecycleRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
91 
98  inline UpdateRecoveryPointLifecycleRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
99 
100 
106  inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; }
107 
113  inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
114 
120  inline void SetRecoveryPointArn(const Aws::String& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = value; }
121 
127  inline void SetRecoveryPointArn(Aws::String&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::move(value); }
128 
134  inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn.assign(value); }
135 
141  inline UpdateRecoveryPointLifecycleRequest& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;}
142 
148  inline UpdateRecoveryPointLifecycleRequest& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;}
149 
155  inline UpdateRecoveryPointLifecycleRequest& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;}
156 
157 
167  inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
168 
178  inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
179 
189  inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
190 
200  inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
201 
211  inline UpdateRecoveryPointLifecycleRequest& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
212 
222  inline UpdateRecoveryPointLifecycleRequest& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
223 
224  private:
225 
226  Aws::String m_backupVaultName;
227  bool m_backupVaultNameHasBeenSet;
228 
229  Aws::String m_recoveryPointArn;
230  bool m_recoveryPointArnHasBeenSet;
231 
232  Lifecycle m_lifecycle;
233  bool m_lifecycleHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace Backup
238 } // namespace Aws
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::GetLifecycle
const Lifecycle & GetLifecycle() const
Definition: UpdateRecoveryPointLifecycleRequest.h:167
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::GetRecoveryPointArn
const Aws::String & GetRecoveryPointArn() const
Definition: UpdateRecoveryPointLifecycleRequest.h:106
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetLifecycle
void SetLifecycle(const Lifecycle &value)
Definition: UpdateRecoveryPointLifecycleRequest.h:189
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetRecoveryPointArn
void SetRecoveryPointArn(const char *value)
Definition: UpdateRecoveryPointLifecycleRequest.h:134
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithRecoveryPointArn
UpdateRecoveryPointLifecycleRequest & WithRecoveryPointArn(const char *value)
Definition: UpdateRecoveryPointLifecycleRequest.h:155
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetBackupVaultName
void SetBackupVaultName(Aws::String &&value)
Definition: UpdateRecoveryPointLifecycleRequest.h:66
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::RecoveryPointArnHasBeenSet
bool RecoveryPointArnHasBeenSet() const
Definition: UpdateRecoveryPointLifecycleRequest.h:113
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::UpdateRecoveryPointLifecycleRequest
UpdateRecoveryPointLifecycleRequest()
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRecoveryPointLifecycleRequest.h:31
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithBackupVaultName
UpdateRecoveryPointLifecycleRequest & WithBackupVaultName(const char *value)
Definition: UpdateRecoveryPointLifecycleRequest.h:98
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithRecoveryPointArn
UpdateRecoveryPointLifecycleRequest & WithRecoveryPointArn(Aws::String &&value)
Definition: UpdateRecoveryPointLifecycleRequest.h:148
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest
Definition: UpdateRecoveryPointLifecycleRequest.h:23
BackupRequest.h
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithLifecycle
UpdateRecoveryPointLifecycleRequest & WithLifecycle(Lifecycle &&value)
Definition: UpdateRecoveryPointLifecycleRequest.h:222
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithBackupVaultName
UpdateRecoveryPointLifecycleRequest & WithBackupVaultName(const Aws::String &value)
Definition: UpdateRecoveryPointLifecycleRequest.h:82
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::GetBackupVaultName
const Aws::String & GetBackupVaultName() const
Definition: UpdateRecoveryPointLifecycleRequest.h:42
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::BackupVaultNameHasBeenSet
bool BackupVaultNameHasBeenSet() const
Definition: UpdateRecoveryPointLifecycleRequest.h:50
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetLifecycle
void SetLifecycle(Lifecycle &&value)
Definition: UpdateRecoveryPointLifecycleRequest.h:200
Aws::Backup::Model::Lifecycle
Definition: Lifecycle.h:37
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::LifecycleHasBeenSet
bool LifecycleHasBeenSet() const
Definition: UpdateRecoveryPointLifecycleRequest.h:178
AWSString.h
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetBackupVaultName
void SetBackupVaultName(const Aws::String &value)
Definition: UpdateRecoveryPointLifecycleRequest.h:58
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetRecoveryPointArn
void SetRecoveryPointArn(Aws::String &&value)
Definition: UpdateRecoveryPointLifecycleRequest.h:127
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithBackupVaultName
UpdateRecoveryPointLifecycleRequest & WithBackupVaultName(Aws::String &&value)
Definition: UpdateRecoveryPointLifecycleRequest.h:90
Lifecycle.h
Backup_EXPORTS.h
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithLifecycle
UpdateRecoveryPointLifecycleRequest & WithLifecycle(const Lifecycle &value)
Definition: UpdateRecoveryPointLifecycleRequest.h:211
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::WithRecoveryPointArn
UpdateRecoveryPointLifecycleRequest & WithRecoveryPointArn(const Aws::String &value)
Definition: UpdateRecoveryPointLifecycleRequest.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetBackupVaultName
void SetBackupVaultName(const char *value)
Definition: UpdateRecoveryPointLifecycleRequest.h:74
Aws::Backup::Model::UpdateRecoveryPointLifecycleRequest::SetRecoveryPointArn
void SetRecoveryPointArn(const Aws::String &value)
Definition: UpdateRecoveryPointLifecycleRequest.h:120