AWS SDK for C++  1.8.182
AWS SDK for C++
GetBackupPlanRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Backup
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetBackupPlan"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; }
45 
49  inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
50 
54  inline void SetBackupPlanId(const Aws::String& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = value; }
55 
59  inline void SetBackupPlanId(Aws::String&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::move(value); }
60 
64  inline void SetBackupPlanId(const char* value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId.assign(value); }
65 
69  inline GetBackupPlanRequest& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;}
70 
74  inline GetBackupPlanRequest& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;}
75 
79  inline GetBackupPlanRequest& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;}
80 
81 
86  inline const Aws::String& GetVersionId() const{ return m_versionId; }
87 
92  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
93 
98  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
99 
104  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
105 
110  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
111 
116  inline GetBackupPlanRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
117 
122  inline GetBackupPlanRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
123 
128  inline GetBackupPlanRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
129 
130  private:
131 
132  Aws::String m_backupPlanId;
133  bool m_backupPlanIdHasBeenSet;
134 
135  Aws::String m_versionId;
136  bool m_versionIdHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Backup
141 } // namespace Aws
Aws::Backup::Model::GetBackupPlanRequest::SetBackupPlanId
void SetBackupPlanId(const Aws::String &value)
Definition: GetBackupPlanRequest.h:54
Aws::Backup::Model::GetBackupPlanRequest::WithVersionId
GetBackupPlanRequest & WithVersionId(const char *value)
Definition: GetBackupPlanRequest.h:128
Aws::Backup::Model::GetBackupPlanRequest::SetVersionId
void SetVersionId(const char *value)
Definition: GetBackupPlanRequest.h:110
Aws::Http::URI
Definition: URI.h:32
Aws::Backup::Model::GetBackupPlanRequest::WithBackupPlanId
GetBackupPlanRequest & WithBackupPlanId(const char *value)
Definition: GetBackupPlanRequest.h:79
Aws::Backup::Model::GetBackupPlanRequest::WithBackupPlanId
GetBackupPlanRequest & WithBackupPlanId(Aws::String &&value)
Definition: GetBackupPlanRequest.h:74
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::GetBackupPlanRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::GetBackupPlanRequest::SetBackupPlanId
void SetBackupPlanId(const char *value)
Definition: GetBackupPlanRequest.h:64
Aws::Backup::Model::GetBackupPlanRequest::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: GetBackupPlanRequest.h:104
Aws::Backup::Model::GetBackupPlanRequest::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: GetBackupPlanRequest.h:98
Aws::Backup::Model::GetBackupPlanRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: GetBackupPlanRequest.h:92
Aws::Backup::Model::GetBackupPlanRequest::WithVersionId
GetBackupPlanRequest & WithVersionId(Aws::String &&value)
Definition: GetBackupPlanRequest.h:122
BackupRequest.h
Aws::Backup::Model::GetBackupPlanRequest::BackupPlanIdHasBeenSet
bool BackupPlanIdHasBeenSet() const
Definition: GetBackupPlanRequest.h:49
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::GetBackupPlanRequest::GetVersionId
const Aws::String & GetVersionId() const
Definition: GetBackupPlanRequest.h:86
AWSString.h
Aws::Backup::Model::GetBackupPlanRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Backup::Model::GetBackupPlanRequest::SetBackupPlanId
void SetBackupPlanId(Aws::String &&value)
Definition: GetBackupPlanRequest.h:59
Backup_EXPORTS.h
Aws::Backup::Model::GetBackupPlanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBackupPlanRequest.h:34
Aws::Backup::Model::GetBackupPlanRequest
Definition: GetBackupPlanRequest.h:26
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::GetBackupPlanRequest::WithBackupPlanId
GetBackupPlanRequest & WithBackupPlanId(const Aws::String &value)
Definition: GetBackupPlanRequest.h:69
Aws::Backup::Model::GetBackupPlanRequest::WithVersionId
GetBackupPlanRequest & WithVersionId(const Aws::String &value)
Definition: GetBackupPlanRequest.h:116
Aws::Backup::Model::GetBackupPlanRequest::GetBackupPlanRequest
GetBackupPlanRequest()
Aws::Backup::Model::GetBackupPlanRequest::GetBackupPlanId
const Aws::String & GetBackupPlanId() const
Definition: GetBackupPlanRequest.h:44