AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UpdateRecoveryPointLifecycleRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/Lifecycle.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Backup {
16namespace Model {
17
21 public:
22 AWS_BACKUP_API UpdateRecoveryPointLifecycleRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateRecoveryPointLifecycle"; }
29
30 AWS_BACKUP_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
39 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
40 template <typename BackupVaultNameT = Aws::String>
41 void SetBackupVaultName(BackupVaultNameT&& value) {
42 m_backupVaultNameHasBeenSet = true;
43 m_backupVaultName = std::forward<BackupVaultNameT>(value);
44 }
45 template <typename BackupVaultNameT = Aws::String>
47 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
59 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
60 template <typename RecoveryPointArnT = Aws::String>
61 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
62 m_recoveryPointArnHasBeenSet = true;
63 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
64 }
65 template <typename RecoveryPointArnT = Aws::String>
67 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
68 return *this;
69 }
71
73
82 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
83 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
84 template <typename LifecycleT = Lifecycle>
85 void SetLifecycle(LifecycleT&& value) {
86 m_lifecycleHasBeenSet = true;
87 m_lifecycle = std::forward<LifecycleT>(value);
88 }
89 template <typename LifecycleT = Lifecycle>
91 SetLifecycle(std::forward<LifecycleT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_backupVaultName;
97
98 Aws::String m_recoveryPointArn;
99
100 Lifecycle m_lifecycle;
101 bool m_backupVaultNameHasBeenSet = false;
102 bool m_recoveryPointArnHasBeenSet = false;
103 bool m_lifecycleHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Backup
108} // 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