AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateBackupSelectionRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/BackupSelection.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Backup {
17namespace Model {
18
22 public:
23 AWS_BACKUP_API CreateBackupSelectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateBackupSelection"; }
30
31 AWS_BACKUP_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
38 inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
39 template <typename BackupPlanIdT = Aws::String>
40 void SetBackupPlanId(BackupPlanIdT&& value) {
41 m_backupPlanIdHasBeenSet = true;
42 m_backupPlanId = std::forward<BackupPlanIdT>(value);
43 }
44 template <typename BackupPlanIdT = Aws::String>
46 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
47 return *this;
48 }
50
52
55 inline const BackupSelection& GetBackupSelection() const { return m_backupSelection; }
56 inline bool BackupSelectionHasBeenSet() const { return m_backupSelectionHasBeenSet; }
57 template <typename BackupSelectionT = BackupSelection>
58 void SetBackupSelection(BackupSelectionT&& value) {
59 m_backupSelectionHasBeenSet = true;
60 m_backupSelection = std::forward<BackupSelectionT>(value);
61 }
62 template <typename BackupSelectionT = BackupSelection>
64 SetBackupSelection(std::forward<BackupSelectionT>(value));
65 return *this;
66 }
68
70
76 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
77 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
78 template <typename CreatorRequestIdT = Aws::String>
79 void SetCreatorRequestId(CreatorRequestIdT&& value) {
80 m_creatorRequestIdHasBeenSet = true;
81 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
82 }
83 template <typename CreatorRequestIdT = Aws::String>
85 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_backupPlanId;
91
92 BackupSelection m_backupSelection;
93
95 bool m_backupPlanIdHasBeenSet = false;
96 bool m_backupSelectionHasBeenSet = false;
97 bool m_creatorRequestIdHasBeenSet = true;
98};
99
100} // namespace Model
101} // namespace Backup
102} // namespace Aws
CreateBackupSelectionRequest & WithBackupPlanId(BackupPlanIdT &&value)
CreateBackupSelectionRequest & WithBackupSelection(BackupSelectionT &&value)
virtual const char * GetServiceRequestName() const override
CreateBackupSelectionRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
AWS_BACKUP_API CreateBackupSelectionRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String