AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateBackupPlanRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/BackupPlanInput.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Backup {
18namespace Model {
19
23 public:
24 AWS_BACKUP_API CreateBackupPlanRequest() = 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 "CreateBackupPlan"; }
31
32 AWS_BACKUP_API Aws::String SerializePayload() const override;
33
35
39 inline const BackupPlanInput& GetBackupPlan() const { return m_backupPlan; }
40 inline bool BackupPlanHasBeenSet() const { return m_backupPlanHasBeenSet; }
41 template <typename BackupPlanT = BackupPlanInput>
42 void SetBackupPlan(BackupPlanT&& value) {
43 m_backupPlanHasBeenSet = true;
44 m_backupPlan = std::forward<BackupPlanT>(value);
45 }
46 template <typename BackupPlanT = BackupPlanInput>
48 SetBackupPlan(std::forward<BackupPlanT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetBackupPlanTags() const { return m_backupPlanTags; }
58 inline bool BackupPlanTagsHasBeenSet() const { return m_backupPlanTagsHasBeenSet; }
59 template <typename BackupPlanTagsT = Aws::Map<Aws::String, Aws::String>>
60 void SetBackupPlanTags(BackupPlanTagsT&& value) {
61 m_backupPlanTagsHasBeenSet = true;
62 m_backupPlanTags = std::forward<BackupPlanTagsT>(value);
63 }
64 template <typename BackupPlanTagsT = Aws::Map<Aws::String, Aws::String>>
65 CreateBackupPlanRequest& WithBackupPlanTags(BackupPlanTagsT&& value) {
66 SetBackupPlanTags(std::forward<BackupPlanTagsT>(value));
67 return *this;
68 }
69 template <typename BackupPlanTagsKeyT = Aws::String, typename BackupPlanTagsValueT = Aws::String>
70 CreateBackupPlanRequest& AddBackupPlanTags(BackupPlanTagsKeyT&& key, BackupPlanTagsValueT&& value) {
71 m_backupPlanTagsHasBeenSet = true;
72 m_backupPlanTags.emplace(std::forward<BackupPlanTagsKeyT>(key), std::forward<BackupPlanTagsValueT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
86 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
87 template <typename CreatorRequestIdT = Aws::String>
88 void SetCreatorRequestId(CreatorRequestIdT&& value) {
89 m_creatorRequestIdHasBeenSet = true;
90 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
91 }
92 template <typename CreatorRequestIdT = Aws::String>
93 CreateBackupPlanRequest& WithCreatorRequestId(CreatorRequestIdT&& value) {
94 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
95 return *this;
96 }
98 private:
99 BackupPlanInput m_backupPlan;
100
101 Aws::Map<Aws::String, Aws::String> m_backupPlanTags;
102
104 bool m_backupPlanHasBeenSet = false;
105 bool m_backupPlanTagsHasBeenSet = false;
106 bool m_creatorRequestIdHasBeenSet = true;
107};
108
109} // namespace Model
110} // namespace Backup
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_BACKUP_API CreateBackupPlanRequest()=default
CreateBackupPlanRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
void SetCreatorRequestId(CreatorRequestIdT &&value)
CreateBackupPlanRequest & WithBackupPlan(BackupPlanT &&value)
CreateBackupPlanRequest & AddBackupPlanTags(BackupPlanTagsKeyT &&key, BackupPlanTagsValueT &&value)
CreateBackupPlanRequest & WithBackupPlanTags(BackupPlanTagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetBackupPlanTags() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String