AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API CreateBackupPlanRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateBackupPlan"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
42 inline const BackupPlanInput& GetBackupPlan() const{ return m_backupPlan; }
43 inline bool BackupPlanHasBeenSet() const { return m_backupPlanHasBeenSet; }
44 inline void SetBackupPlan(const BackupPlanInput& value) { m_backupPlanHasBeenSet = true; m_backupPlan = value; }
45 inline void SetBackupPlan(BackupPlanInput&& value) { m_backupPlanHasBeenSet = true; m_backupPlan = std::move(value); }
46 inline CreateBackupPlanRequest& WithBackupPlan(const BackupPlanInput& value) { SetBackupPlan(value); return *this;}
47 inline CreateBackupPlanRequest& WithBackupPlan(BackupPlanInput&& value) { SetBackupPlan(std::move(value)); return *this;}
49
51
54 inline const Aws::Map<Aws::String, Aws::String>& GetBackupPlanTags() const{ return m_backupPlanTags; }
55 inline bool BackupPlanTagsHasBeenSet() const { return m_backupPlanTagsHasBeenSet; }
56 inline void SetBackupPlanTags(const Aws::Map<Aws::String, Aws::String>& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags = value; }
57 inline void SetBackupPlanTags(Aws::Map<Aws::String, Aws::String>&& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags = std::move(value); }
60 inline CreateBackupPlanRequest& AddBackupPlanTags(const Aws::String& key, const Aws::String& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(key, value); return *this; }
61 inline CreateBackupPlanRequest& AddBackupPlanTags(Aws::String&& key, const Aws::String& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(std::move(key), value); return *this; }
62 inline CreateBackupPlanRequest& AddBackupPlanTags(const Aws::String& key, Aws::String&& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(key, std::move(value)); return *this; }
63 inline CreateBackupPlanRequest& AddBackupPlanTags(Aws::String&& key, Aws::String&& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(std::move(key), std::move(value)); return *this; }
64 inline CreateBackupPlanRequest& AddBackupPlanTags(const char* key, Aws::String&& value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(key, std::move(value)); return *this; }
65 inline CreateBackupPlanRequest& AddBackupPlanTags(Aws::String&& key, const char* value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(std::move(key), value); return *this; }
66 inline CreateBackupPlanRequest& AddBackupPlanTags(const char* key, const char* value) { m_backupPlanTagsHasBeenSet = true; m_backupPlanTags.emplace(key, value); return *this; }
68
70
77 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
78 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
79 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
80 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
81 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
82 inline CreateBackupPlanRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
83 inline CreateBackupPlanRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
84 inline CreateBackupPlanRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
86 private:
87
88 BackupPlanInput m_backupPlan;
89 bool m_backupPlanHasBeenSet = false;
90
92 bool m_backupPlanTagsHasBeenSet = false;
93
94 Aws::String m_creatorRequestId;
95 bool m_creatorRequestIdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Backup
100} // namespace Aws
CreateBackupPlanRequest & AddBackupPlanTags(const char *key, const char *value)
void SetBackupPlanTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateBackupPlanRequest & AddBackupPlanTags(const Aws::String &key, Aws::String &&value)
CreateBackupPlanRequest & AddBackupPlanTags(const char *key, Aws::String &&value)
CreateBackupPlanRequest & WithBackupPlanTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetBackupPlan(const BackupPlanInput &value)
CreateBackupPlanRequest & WithBackupPlan(BackupPlanInput &&value)
void SetBackupPlanTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBackupPlanRequest & WithBackupPlanTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBackupPlanRequest & AddBackupPlanTags(const Aws::String &key, const Aws::String &value)
CreateBackupPlanRequest & AddBackupPlanTags(Aws::String &&key, const char *value)
CreateBackupPlanRequest & WithCreatorRequestId(Aws::String &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
CreateBackupPlanRequest & WithCreatorRequestId(const Aws::String &value)
CreateBackupPlanRequest & WithCreatorRequestId(const char *value)
CreateBackupPlanRequest & AddBackupPlanTags(Aws::String &&key, const Aws::String &value)
CreateBackupPlanRequest & WithBackupPlan(const BackupPlanInput &value)
CreateBackupPlanRequest & AddBackupPlanTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetBackupPlanTags() const
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