AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
13namespace Aws
14{
15namespace Backup
16{
17namespace 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 "CreateBackupSelection"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; }
41 inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
42 inline void SetBackupPlanId(const Aws::String& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = value; }
43 inline void SetBackupPlanId(Aws::String&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::move(value); }
44 inline void SetBackupPlanId(const char* value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId.assign(value); }
45 inline CreateBackupSelectionRequest& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;}
46 inline CreateBackupSelectionRequest& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;}
47 inline CreateBackupSelectionRequest& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;}
49
51
54 inline const BackupSelection& GetBackupSelection() const{ return m_backupSelection; }
55 inline bool BackupSelectionHasBeenSet() const { return m_backupSelectionHasBeenSet; }
56 inline void SetBackupSelection(const BackupSelection& value) { m_backupSelectionHasBeenSet = true; m_backupSelection = value; }
57 inline void SetBackupSelection(BackupSelection&& value) { m_backupSelectionHasBeenSet = true; m_backupSelection = std::move(value); }
59 inline CreateBackupSelectionRequest& WithBackupSelection(BackupSelection&& value) { SetBackupSelection(std::move(value)); return *this;}
61
63
69 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
70 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
71 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
72 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
73 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
75 inline CreateBackupSelectionRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
76 inline CreateBackupSelectionRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
78 private:
79
80 Aws::String m_backupPlanId;
81 bool m_backupPlanIdHasBeenSet = false;
82
83 BackupSelection m_backupSelection;
84 bool m_backupSelectionHasBeenSet = false;
85
86 Aws::String m_creatorRequestId;
87 bool m_creatorRequestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Backup
92} // namespace Aws
CreateBackupSelectionRequest & WithBackupSelection(const BackupSelection &value)
CreateBackupSelectionRequest & WithCreatorRequestId(Aws::String &&value)
CreateBackupSelectionRequest & WithBackupPlanId(const Aws::String &value)
CreateBackupSelectionRequest & WithCreatorRequestId(const Aws::String &value)
CreateBackupSelectionRequest & WithCreatorRequestId(const char *value)
CreateBackupSelectionRequest & WithBackupPlanId(Aws::String &&value)
CreateBackupSelectionRequest & WithBackupPlanId(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_BACKUP_API Aws::String SerializePayload() const override
CreateBackupSelectionRequest & WithBackupSelection(BackupSelection &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String