AWS SDK for C++
1.9.1
AWS SDK for C++
aws-cpp-sdk-backup
include
aws
backup
model
CreateBackupPlanRequest.h
Go to the documentation of this file.
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
14
namespace
Aws
15
{
16
namespace
Backup
17
{
18
namespace
Model
19
{
20
23
class
AWS_BACKUP_API
CreateBackupPlanRequest
:
public
BackupRequest
24
{
25
public
:
26
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::String
SerializePayload
()
const override
;
35
36
41
inline
const
BackupPlanInput
&
GetBackupPlan
()
const
{
return
m_backupPlan; }
42
47
inline
bool
BackupPlanHasBeenSet
()
const
{
return
m_backupPlanHasBeenSet; }
48
53
inline
void
SetBackupPlan
(
const
BackupPlanInput
& value) { m_backupPlanHasBeenSet =
true
; m_backupPlan = value; }
54
59
inline
void
SetBackupPlan
(
BackupPlanInput
&& value) { m_backupPlanHasBeenSet =
true
; m_backupPlan = std::move(value); }
60
65
inline
CreateBackupPlanRequest
&
WithBackupPlan
(
const
BackupPlanInput
& value) { SetBackupPlan(value);
return
*
this
;}
66
71
inline
CreateBackupPlanRequest
&
WithBackupPlan
(
BackupPlanInput
&& value) { SetBackupPlan(std::move(value));
return
*
this
;}
72
73
79
inline
const
Aws::Map<Aws::String, Aws::String>
&
GetBackupPlanTags
()
const
{
return
m_backupPlanTags; }
80
86
inline
bool
BackupPlanTagsHasBeenSet
()
const
{
return
m_backupPlanTagsHasBeenSet; }
87
93
inline
void
SetBackupPlanTags
(
const
Aws::Map<Aws::String, Aws::String>
& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags = value; }
94
100
inline
void
SetBackupPlanTags
(
Aws::Map<Aws::String, Aws::String>
&& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags = std::move(value); }
101
107
inline
CreateBackupPlanRequest
&
WithBackupPlanTags
(
const
Aws::Map<Aws::String, Aws::String>
& value) { SetBackupPlanTags(value);
return
*
this
;}
108
114
inline
CreateBackupPlanRequest
&
WithBackupPlanTags
(
Aws::Map<Aws::String, Aws::String>
&& value) { SetBackupPlanTags(std::move(value));
return
*
this
;}
115
121
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
const
Aws::String
& key,
const
Aws::String
& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(key, value);
return
*
this
; }
122
128
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
Aws::String
&& key,
const
Aws::String
& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(std::move(key), value);
return
*
this
; }
129
135
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
const
Aws::String
& key,
Aws::String
&& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(key, std::move(value));
return
*
this
; }
136
142
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
Aws::String
&& key,
Aws::String
&& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(std::move(key), std::move(value));
return
*
this
; }
143
149
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
const
char
* key,
Aws::String
&& value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(key, std::move(value));
return
*
this
; }
150
156
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
Aws::String
&& key,
const
char
* value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(std::move(key), value);
return
*
this
; }
157
163
inline
CreateBackupPlanRequest
&
AddBackupPlanTags
(
const
char
* key,
const
char
* value) { m_backupPlanTagsHasBeenSet =
true
; m_backupPlanTags.emplace(key, value);
return
*
this
; }
164
165
172
inline
const
Aws::String
&
GetCreatorRequestId
()
const
{
return
m_creatorRequestId; }
173
180
inline
bool
CreatorRequestIdHasBeenSet
()
const
{
return
m_creatorRequestIdHasBeenSet; }
181
188
inline
void
SetCreatorRequestId
(
const
Aws::String
& value) { m_creatorRequestIdHasBeenSet =
true
; m_creatorRequestId = value; }
189
196
inline
void
SetCreatorRequestId
(
Aws::String
&& value) { m_creatorRequestIdHasBeenSet =
true
; m_creatorRequestId = std::move(value); }
197
204
inline
void
SetCreatorRequestId
(
const
char
* value) { m_creatorRequestIdHasBeenSet =
true
; m_creatorRequestId.assign(value); }
205
212
inline
CreateBackupPlanRequest
&
WithCreatorRequestId
(
const
Aws::String
& value) { SetCreatorRequestId(value);
return
*
this
;}
213
220
inline
CreateBackupPlanRequest
&
WithCreatorRequestId
(
Aws::String
&& value) { SetCreatorRequestId(std::move(value));
return
*
this
;}
221
228
inline
CreateBackupPlanRequest
&
WithCreatorRequestId
(
const
char
* value) { SetCreatorRequestId(value);
return
*
this
;}
229
230
private
:
231
232
BackupPlanInput
m_backupPlan;
233
bool
m_backupPlanHasBeenSet;
234
235
Aws::Map<Aws::String, Aws::String>
m_backupPlanTags;
236
bool
m_backupPlanTagsHasBeenSet;
237
238
Aws::String
m_creatorRequestId;
239
bool
m_creatorRequestIdHasBeenSet;
240
};
241
242
}
// namespace Model
243
}
// namespace Backup
244
}
// namespace Aws
Aws::Backup::Model::CreateBackupPlanRequest::SetBackupPlanTags
void SetBackupPlanTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition:
CreateBackupPlanRequest.h:93
Aws::Backup::Model::CreateBackupPlanRequest::WithCreatorRequestId
CreateBackupPlanRequest & WithCreatorRequestId(Aws::String &&value)
Definition:
CreateBackupPlanRequest.h:220
Aws::Backup::Model::CreateBackupPlanRequest::SetBackupPlan
void SetBackupPlan(BackupPlanInput &&value)
Definition:
CreateBackupPlanRequest.h:59
Aws::Backup::Model::CreateBackupPlanRequest::GetBackupPlanTags
const Aws::Map< Aws::String, Aws::String > & GetBackupPlanTags() const
Definition:
CreateBackupPlanRequest.h:79
Aws::Backup::Model::CreateBackupPlanRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition:
CreateBackupPlanRequest.h:180
Aws::Backup::Model::CreateBackupPlanRequest::WithBackupPlanTags
CreateBackupPlanRequest & WithBackupPlanTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition:
CreateBackupPlanRequest.h:107
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition:
Backup_EXPORTS.h:28
Aws::Backup::Model::CreateBackupPlanRequest::WithCreatorRequestId
CreateBackupPlanRequest & WithCreatorRequestId(const char *value)
Definition:
CreateBackupPlanRequest.h:228
Aws::Backup::Model::CreateBackupPlanRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition:
CreateBackupPlanRequest.h:172
Aws::Backup::Model::CreateBackupPlanRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition:
CreateBackupPlanRequest.h:196
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(const char *key, const char *value)
Definition:
CreateBackupPlanRequest.h:163
BackupRequest.h
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(const char *key, Aws::String &&value)
Definition:
CreateBackupPlanRequest.h:149
Aws::Backup::Model::CreateBackupPlanRequest::GetBackupPlan
const BackupPlanInput & GetBackupPlan() const
Definition:
CreateBackupPlanRequest.h:41
Aws::Backup::Model::BackupPlanInput
Definition:
BackupPlanInput.h:38
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(const Aws::String &key, const Aws::String &value)
Definition:
CreateBackupPlanRequest.h:121
Aws::Backup::Model::CreateBackupPlanRequest::WithBackupPlan
CreateBackupPlanRequest & WithBackupPlan(const BackupPlanInput &value)
Definition:
CreateBackupPlanRequest.h:65
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(const Aws::String &key, Aws::String &&value)
Definition:
CreateBackupPlanRequest.h:135
Aws::Backup::Model::CreateBackupPlanRequest::WithBackupPlanTags
CreateBackupPlanRequest & WithBackupPlanTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition:
CreateBackupPlanRequest.h:114
Aws::Backup::BackupRequest
Definition:
BackupRequest.h:17
Aws::Backup::Model::CreateBackupPlanRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::CreateBackupPlanRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition:
CreateBackupPlanRequest.h:188
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(Aws::String &&key, Aws::String &&value)
Definition:
CreateBackupPlanRequest.h:142
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(Aws::String &&key, const char *value)
Definition:
CreateBackupPlanRequest.h:156
AWSString.h
Aws::Backup::Model::CreateBackupPlanRequest::BackupPlanTagsHasBeenSet
bool BackupPlanTagsHasBeenSet() const
Definition:
CreateBackupPlanRequest.h:86
Aws::Backup::Model::CreateBackupPlanRequest::CreateBackupPlanRequest
CreateBackupPlanRequest()
Aws::Backup::Model::CreateBackupPlanRequest::SetBackupPlanTags
void SetBackupPlanTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition:
CreateBackupPlanRequest.h:100
Aws::Backup::Model::CreateBackupPlanRequest::WithCreatorRequestId
CreateBackupPlanRequest & WithCreatorRequestId(const Aws::String &value)
Definition:
CreateBackupPlanRequest.h:212
Backup_EXPORTS.h
Aws::Backup::Model::CreateBackupPlanRequest::SetBackupPlan
void SetBackupPlan(const BackupPlanInput &value)
Definition:
CreateBackupPlanRequest.h:53
Aws::Backup::Model::CreateBackupPlanRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition:
CreateBackupPlanRequest.h:204
Aws::Backup::Model::CreateBackupPlanRequest::BackupPlanHasBeenSet
bool BackupPlanHasBeenSet() const
Definition:
CreateBackupPlanRequest.h:47
Aws::Backup::Model::CreateBackupPlanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition:
CreateBackupPlanRequest.h:32
Aws::Backup::Model::CreateBackupPlanRequest
Definition:
CreateBackupPlanRequest.h:24
Aws
Definition:
AccessManagementClient.h:15
Aws::Backup::Model::CreateBackupPlanRequest::WithBackupPlan
CreateBackupPlanRequest & WithBackupPlan(BackupPlanInput &&value)
Definition:
CreateBackupPlanRequest.h:71
Aws::Backup::Model::CreateBackupPlanRequest::AddBackupPlanTags
CreateBackupPlanRequest & AddBackupPlanTags(Aws::String &&key, const Aws::String &value)
Definition:
CreateBackupPlanRequest.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition:
AWSString.h:97
BackupPlanInput.h
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition:
AWSMap.h:19
Generated by
1.8.19
Privacy |
Site terms |
Cookie preferences