AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBackupSelectionRequest.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/BackupSelection.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API CreateBackupSelectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateBackupSelection"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
42 inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
43 template<typename BackupPlanIdT = Aws::String>
44 void SetBackupPlanId(BackupPlanIdT&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::forward<BackupPlanIdT>(value); }
45 template<typename BackupPlanIdT = Aws::String>
46 CreateBackupSelectionRequest& WithBackupPlanId(BackupPlanIdT&& value) { SetBackupPlanId(std::forward<BackupPlanIdT>(value)); return *this;}
48
50
53 inline const BackupSelection& GetBackupSelection() const { return m_backupSelection; }
54 inline bool BackupSelectionHasBeenSet() const { return m_backupSelectionHasBeenSet; }
55 template<typename BackupSelectionT = BackupSelection>
56 void SetBackupSelection(BackupSelectionT&& value) { m_backupSelectionHasBeenSet = true; m_backupSelection = std::forward<BackupSelectionT>(value); }
57 template<typename BackupSelectionT = BackupSelection>
58 CreateBackupSelectionRequest& WithBackupSelection(BackupSelectionT&& value) { SetBackupSelection(std::forward<BackupSelectionT>(value)); return *this;}
60
62
68 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
69 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
70 template<typename CreatorRequestIdT = Aws::String>
71 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
72 template<typename CreatorRequestIdT = Aws::String>
73 CreateBackupSelectionRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
75 private:
76
77 Aws::String m_backupPlanId;
78 bool m_backupPlanIdHasBeenSet = false;
79
80 BackupSelection m_backupSelection;
81 bool m_backupSelectionHasBeenSet = false;
82
84 bool m_creatorRequestIdHasBeenSet = true;
85 };
86
87} // namespace Model
88} // namespace Backup
89} // 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