AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBackupPlanRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/backup/model/BackupPlanInput.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Backup
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BACKUP_API CreateBackupPlanRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateBackupPlan"; }
34
35 AWS_BACKUP_API Aws::String SerializePayload() const override;
36
37
39
43 inline const BackupPlanInput& GetBackupPlan() const { return m_backupPlan; }
44 inline bool BackupPlanHasBeenSet() const { return m_backupPlanHasBeenSet; }
45 template<typename BackupPlanT = BackupPlanInput>
46 void SetBackupPlan(BackupPlanT&& value) { m_backupPlanHasBeenSet = true; m_backupPlan = std::forward<BackupPlanT>(value); }
47 template<typename BackupPlanT = BackupPlanInput>
48 CreateBackupPlanRequest& WithBackupPlan(BackupPlanT&& value) { SetBackupPlan(std::forward<BackupPlanT>(value)); return *this;}
50
52
55 inline const Aws::Map<Aws::String, Aws::String>& GetBackupPlanTags() const { return m_backupPlanTags; }
56 inline bool BackupPlanTagsHasBeenSet() const { return m_backupPlanTagsHasBeenSet; }
57 template<typename BackupPlanTagsT = Aws::Map<Aws::String, Aws::String>>
58 void SetBackupPlanTags(BackupPlanTagsT&& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags = std::forward<BackupPlanTagsT>(value); }
59 template<typename BackupPlanTagsT = Aws::Map<Aws::String, Aws::String>>
60 CreateBackupPlanRequest& WithBackupPlanTags(BackupPlanTagsT&& value) { SetBackupPlanTags(std::forward<BackupPlanTagsT>(value)); return *this;}
61 template<typename BackupPlanTagsKeyT = Aws::String, typename BackupPlanTagsValueT = Aws::String>
62 CreateBackupPlanRequest& AddBackupPlanTags(BackupPlanTagsKeyT&& key, BackupPlanTagsValueT&& value) {
63 m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(std::forward<BackupPlanTagsKeyT>(key), std::forward<BackupPlanTagsValueT>(value)); return *this;
64 }
66
68
75 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
76 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
77 template<typename CreatorRequestIdT = Aws::String>
78 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
79 template<typename CreatorRequestIdT = Aws::String>
80 CreateBackupPlanRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
82 private:
83
84 BackupPlanInput m_backupPlan;
85 bool m_backupPlanHasBeenSet = false;
86
88 bool m_backupPlanTagsHasBeenSet = false;
89
91 bool m_creatorRequestIdHasBeenSet = true;
92 };
93
94} // namespace Model
95} // namespace Backup
96} // 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