AWS SDK for C++  1.8.129
AWS SDK for C++
CreateBackupSelectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace 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::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; }
41 
46  inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
47 
52  inline void SetBackupPlanId(const Aws::String& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = value; }
53 
58  inline void SetBackupPlanId(Aws::String&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::move(value); }
59 
64  inline void SetBackupPlanId(const char* value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId.assign(value); }
65 
70  inline CreateBackupSelectionRequest& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;}
71 
76  inline CreateBackupSelectionRequest& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;}
77 
82  inline CreateBackupSelectionRequest& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;}
83 
84 
89  inline const BackupSelection& GetBackupSelection() const{ return m_backupSelection; }
90 
95  inline bool BackupSelectionHasBeenSet() const { return m_backupSelectionHasBeenSet; }
96 
101  inline void SetBackupSelection(const BackupSelection& value) { m_backupSelectionHasBeenSet = true; m_backupSelection = value; }
102 
107  inline void SetBackupSelection(BackupSelection&& value) { m_backupSelectionHasBeenSet = true; m_backupSelection = std::move(value); }
108 
113  inline CreateBackupSelectionRequest& WithBackupSelection(const BackupSelection& value) { SetBackupSelection(value); return *this;}
114 
119  inline CreateBackupSelectionRequest& WithBackupSelection(BackupSelection&& value) { SetBackupSelection(std::move(value)); return *this;}
120 
121 
126  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
127 
132  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
133 
138  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
139 
144  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
145 
150  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
151 
156  inline CreateBackupSelectionRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
157 
162  inline CreateBackupSelectionRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
163 
168  inline CreateBackupSelectionRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
169 
170  private:
171 
172  Aws::String m_backupPlanId;
173  bool m_backupPlanIdHasBeenSet;
174 
175  BackupSelection m_backupSelection;
176  bool m_backupSelectionHasBeenSet;
177 
178  Aws::String m_creatorRequestId;
179  bool m_creatorRequestIdHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace Backup
184 } // namespace Aws
Aws::Backup::Model::BackupSelection
Definition: BackupSelection.h:35
Aws::Backup::Model::CreateBackupSelectionRequest::WithCreatorRequestId
CreateBackupSelectionRequest & WithCreatorRequestId(const char *value)
Definition: CreateBackupSelectionRequest.h:168
Aws::Backup::Model::CreateBackupSelectionRequest::BackupPlanIdHasBeenSet
bool BackupPlanIdHasBeenSet() const
Definition: CreateBackupSelectionRequest.h:46
Aws::Backup::Model::CreateBackupSelectionRequest::CreateBackupSelectionRequest
CreateBackupSelectionRequest()
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::CreateBackupSelectionRequest::SetBackupPlanId
void SetBackupPlanId(Aws::String &&value)
Definition: CreateBackupSelectionRequest.h:58
Aws::Backup::Model::CreateBackupSelectionRequest::WithCreatorRequestId
CreateBackupSelectionRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreateBackupSelectionRequest.h:162
Aws::Backup::Model::CreateBackupSelectionRequest::SetBackupSelection
void SetBackupSelection(BackupSelection &&value)
Definition: CreateBackupSelectionRequest.h:107
Aws::Backup::Model::CreateBackupSelectionRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreateBackupSelectionRequest.h:132
Aws::Backup::Model::CreateBackupSelectionRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreateBackupSelectionRequest.h:126
BackupRequest.h
Aws::Backup::Model::CreateBackupSelectionRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreateBackupSelectionRequest.h:138
Aws::Backup::Model::CreateBackupSelectionRequest::WithBackupPlanId
CreateBackupSelectionRequest & WithBackupPlanId(Aws::String &&value)
Definition: CreateBackupSelectionRequest.h:76
Aws::Backup::Model::CreateBackupSelectionRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreateBackupSelectionRequest.h:150
Aws::Backup::Model::CreateBackupSelectionRequest::SetBackupSelection
void SetBackupSelection(const BackupSelection &value)
Definition: CreateBackupSelectionRequest.h:101
Aws::Backup::Model::CreateBackupSelectionRequest::WithBackupPlanId
CreateBackupSelectionRequest & WithBackupPlanId(const Aws::String &value)
Definition: CreateBackupSelectionRequest.h:70
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::CreateBackupSelectionRequest::WithBackupSelection
CreateBackupSelectionRequest & WithBackupSelection(BackupSelection &&value)
Definition: CreateBackupSelectionRequest.h:119
Aws::Backup::Model::CreateBackupSelectionRequest::WithBackupPlanId
CreateBackupSelectionRequest & WithBackupPlanId(const char *value)
Definition: CreateBackupSelectionRequest.h:82
AWSString.h
Aws::Backup::Model::CreateBackupSelectionRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreateBackupSelectionRequest.h:144
Aws::Backup::Model::CreateBackupSelectionRequest::GetBackupPlanId
const Aws::String & GetBackupPlanId() const
Definition: CreateBackupSelectionRequest.h:40
BackupSelection.h
Aws::Backup::Model::CreateBackupSelectionRequest::WithCreatorRequestId
CreateBackupSelectionRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreateBackupSelectionRequest.h:156
Aws::Backup::Model::CreateBackupSelectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::CreateBackupSelectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateBackupSelectionRequest.h:31
Backup_EXPORTS.h
Aws::Backup::Model::CreateBackupSelectionRequest::WithBackupSelection
CreateBackupSelectionRequest & WithBackupSelection(const BackupSelection &value)
Definition: CreateBackupSelectionRequest.h:113
Aws::Backup::Model::CreateBackupSelectionRequest::SetBackupPlanId
void SetBackupPlanId(const Aws::String &value)
Definition: CreateBackupSelectionRequest.h:52
Aws::Backup::Model::CreateBackupSelectionRequest::SetBackupPlanId
void SetBackupPlanId(const char *value)
Definition: CreateBackupSelectionRequest.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::CreateBackupSelectionRequest
Definition: CreateBackupSelectionRequest.h:23
Aws::Backup::Model::CreateBackupSelectionRequest::BackupSelectionHasBeenSet
bool BackupSelectionHasBeenSet() const
Definition: CreateBackupSelectionRequest.h:95
Aws::Backup::Model::CreateBackupSelectionRequest::GetBackupSelection
const BackupSelection & GetBackupSelection() const
Definition: CreateBackupSelectionRequest.h:89