AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRecoveryPointLifecycleRequest.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/backup/model/Lifecycle.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Backup
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BACKUP_API UpdateRecoveryPointLifecycleRequest() = 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 "UpdateRecoveryPointLifecycle"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
43 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
44 template<typename BackupVaultNameT = Aws::String>
45 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
46 template<typename BackupVaultNameT = Aws::String>
47 UpdateRecoveryPointLifecycleRequest& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
49
51
56 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
57 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
58 template<typename RecoveryPointArnT = Aws::String>
59 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
60 template<typename RecoveryPointArnT = Aws::String>
61 UpdateRecoveryPointLifecycleRequest& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
63
65
74 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
75 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
76 template<typename LifecycleT = Lifecycle>
77 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
78 template<typename LifecycleT = Lifecycle>
79 UpdateRecoveryPointLifecycleRequest& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
81 private:
82
83 Aws::String m_backupVaultName;
84 bool m_backupVaultNameHasBeenSet = false;
85
86 Aws::String m_recoveryPointArn;
87 bool m_recoveryPointArnHasBeenSet = false;
88
89 Lifecycle m_lifecycle;
90 bool m_lifecycleHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Backup
95} // namespace Aws
UpdateRecoveryPointLifecycleRequest & WithLifecycle(LifecycleT &&value)
UpdateRecoveryPointLifecycleRequest & WithBackupVaultName(BackupVaultNameT &&value)
UpdateRecoveryPointLifecycleRequest & WithRecoveryPointArn(RecoveryPointArnT &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String