AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateBackupPlanRequest.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 "UpdateBackupPlan"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; }
40 
44  inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
45 
49  inline void SetBackupPlanId(const Aws::String& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = value; }
50 
54  inline void SetBackupPlanId(Aws::String&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::move(value); }
55 
59  inline void SetBackupPlanId(const char* value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId.assign(value); }
60 
64  inline UpdateBackupPlanRequest& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;}
65 
69  inline UpdateBackupPlanRequest& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;}
70 
74  inline UpdateBackupPlanRequest& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;}
75 
76 
81  inline const BackupPlanInput& GetBackupPlan() const{ return m_backupPlan; }
82 
87  inline bool BackupPlanHasBeenSet() const { return m_backupPlanHasBeenSet; }
88 
93  inline void SetBackupPlan(const BackupPlanInput& value) { m_backupPlanHasBeenSet = true; m_backupPlan = value; }
94 
99  inline void SetBackupPlan(BackupPlanInput&& value) { m_backupPlanHasBeenSet = true; m_backupPlan = std::move(value); }
100 
105  inline UpdateBackupPlanRequest& WithBackupPlan(const BackupPlanInput& value) { SetBackupPlan(value); return *this;}
106 
111  inline UpdateBackupPlanRequest& WithBackupPlan(BackupPlanInput&& value) { SetBackupPlan(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_backupPlanId;
116  bool m_backupPlanIdHasBeenSet;
117 
118  BackupPlanInput m_backupPlan;
119  bool m_backupPlanHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace Backup
124 } // namespace Aws
Aws::Backup::Model::UpdateBackupPlanRequest::SetBackupPlanId
void SetBackupPlanId(Aws::String &&value)
Definition: UpdateBackupPlanRequest.h:54
Aws::Backup::Model::UpdateBackupPlanRequest::WithBackupPlan
UpdateBackupPlanRequest & WithBackupPlan(const BackupPlanInput &value)
Definition: UpdateBackupPlanRequest.h:105
Aws::Backup::Model::UpdateBackupPlanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBackupPlanRequest.h:31
Aws::Backup::Model::UpdateBackupPlanRequest::WithBackupPlanId
UpdateBackupPlanRequest & WithBackupPlanId(Aws::String &&value)
Definition: UpdateBackupPlanRequest.h:69
Aws::Backup::Model::UpdateBackupPlanRequest::BackupPlanHasBeenSet
bool BackupPlanHasBeenSet() const
Definition: UpdateBackupPlanRequest.h:87
Aws::Backup::Model::UpdateBackupPlanRequest::WithBackupPlanId
UpdateBackupPlanRequest & WithBackupPlanId(const char *value)
Definition: UpdateBackupPlanRequest.h:74
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::UpdateBackupPlanRequest::SetBackupPlan
void SetBackupPlan(BackupPlanInput &&value)
Definition: UpdateBackupPlanRequest.h:99
Aws::Backup::Model::UpdateBackupPlanRequest::GetBackupPlanId
const Aws::String & GetBackupPlanId() const
Definition: UpdateBackupPlanRequest.h:39
Aws::Backup::Model::UpdateBackupPlanRequest::BackupPlanIdHasBeenSet
bool BackupPlanIdHasBeenSet() const
Definition: UpdateBackupPlanRequest.h:44
BackupRequest.h
Aws::Backup::Model::UpdateBackupPlanRequest::WithBackupPlanId
UpdateBackupPlanRequest & WithBackupPlanId(const Aws::String &value)
Definition: UpdateBackupPlanRequest.h:64
Aws::Backup::Model::BackupPlanInput
Definition: BackupPlanInput.h:38
Aws::Backup::Model::UpdateBackupPlanRequest::WithBackupPlan
UpdateBackupPlanRequest & WithBackupPlan(BackupPlanInput &&value)
Definition: UpdateBackupPlanRequest.h:111
Aws::Backup::Model::UpdateBackupPlanRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::UpdateBackupPlanRequest
Definition: UpdateBackupPlanRequest.h:23
Aws::Backup::Model::UpdateBackupPlanRequest::SetBackupPlan
void SetBackupPlan(const BackupPlanInput &value)
Definition: UpdateBackupPlanRequest.h:93
AWSString.h
Aws::Backup::Model::UpdateBackupPlanRequest::GetBackupPlan
const BackupPlanInput & GetBackupPlan() const
Definition: UpdateBackupPlanRequest.h:81
Backup_EXPORTS.h
Aws::Backup::Model::UpdateBackupPlanRequest::UpdateBackupPlanRequest
UpdateBackupPlanRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::UpdateBackupPlanRequest::SetBackupPlanId
void SetBackupPlanId(const char *value)
Definition: UpdateBackupPlanRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BackupPlanInput.h
Aws::Backup::Model::UpdateBackupPlanRequest::SetBackupPlanId
void SetBackupPlanId(const Aws::String &value)
Definition: UpdateBackupPlanRequest.h:49