AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetBackupPlanRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Backup {
18namespace Model {
19
23 public:
24 AWS_BACKUP_API GetBackupPlanRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetBackupPlan"; }
31
32 AWS_BACKUP_API Aws::String SerializePayload() const override;
33
34 AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
41 inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
42 template <typename BackupPlanIdT = Aws::String>
43 void SetBackupPlanId(BackupPlanIdT&& value) {
44 m_backupPlanIdHasBeenSet = true;
45 m_backupPlanId = std::forward<BackupPlanIdT>(value);
46 }
47 template <typename BackupPlanIdT = Aws::String>
48 GetBackupPlanRequest& WithBackupPlanId(BackupPlanIdT&& value) {
49 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetVersionId() const { return m_versionId; }
60 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
61 template <typename VersionIdT = Aws::String>
62 void SetVersionId(VersionIdT&& value) {
63 m_versionIdHasBeenSet = true;
64 m_versionId = std::forward<VersionIdT>(value);
65 }
66 template <typename VersionIdT = Aws::String>
67 GetBackupPlanRequest& WithVersionId(VersionIdT&& value) {
68 SetVersionId(std::forward<VersionIdT>(value));
69 return *this;
70 }
72
74
78 inline int GetMaxScheduledRunsPreview() const { return m_maxScheduledRunsPreview; }
79 inline bool MaxScheduledRunsPreviewHasBeenSet() const { return m_maxScheduledRunsPreviewHasBeenSet; }
80 inline void SetMaxScheduledRunsPreview(int value) {
81 m_maxScheduledRunsPreviewHasBeenSet = true;
82 m_maxScheduledRunsPreview = value;
83 }
86 return *this;
87 }
89 private:
90 Aws::String m_backupPlanId;
91
92 Aws::String m_versionId;
93
94 int m_maxScheduledRunsPreview{0};
95 bool m_backupPlanIdHasBeenSet = false;
96 bool m_versionIdHasBeenSet = false;
97 bool m_maxScheduledRunsPreviewHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Backup
102} // namespace Aws
GetBackupPlanRequest & WithMaxScheduledRunsPreview(int value)
AWS_BACKUP_API Aws::String SerializePayload() const override
GetBackupPlanRequest & WithBackupPlanId(BackupPlanIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BACKUP_API GetBackupPlanRequest()=default
AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetBackupPlanRequest & WithVersionId(VersionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String