AWS SDK for C++  1.9.160
AWS SDK for C++
BackupSelection.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Backup
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetSelectionName() const{ return m_selectionName; }
49 
54  inline bool SelectionNameHasBeenSet() const { return m_selectionNameHasBeenSet; }
55 
60  inline void SetSelectionName(const Aws::String& value) { m_selectionNameHasBeenSet = true; m_selectionName = value; }
61 
66  inline void SetSelectionName(Aws::String&& value) { m_selectionNameHasBeenSet = true; m_selectionName = std::move(value); }
67 
72  inline void SetSelectionName(const char* value) { m_selectionNameHasBeenSet = true; m_selectionName.assign(value); }
73 
78  inline BackupSelection& WithSelectionName(const Aws::String& value) { SetSelectionName(value); return *this;}
79 
84  inline BackupSelection& WithSelectionName(Aws::String&& value) { SetSelectionName(std::move(value)); return *this;}
85 
90  inline BackupSelection& WithSelectionName(const char* value) { SetSelectionName(value); return *this;}
91 
92 
98  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
99 
105  inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
106 
112  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
113 
119  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
120 
126  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
127 
133  inline BackupSelection& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
134 
140  inline BackupSelection& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
141 
147  inline BackupSelection& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
148 
149 
157  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
158 
166  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
167 
175  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
176 
184  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
185 
193  inline BackupSelection& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
194 
202  inline BackupSelection& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
203 
211  inline BackupSelection& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
212 
220  inline BackupSelection& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
221 
229  inline BackupSelection& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
230 
231 
244  inline const Aws::Vector<Condition>& GetListOfTags() const{ return m_listOfTags; }
245 
258  inline bool ListOfTagsHasBeenSet() const { return m_listOfTagsHasBeenSet; }
259 
272  inline void SetListOfTags(const Aws::Vector<Condition>& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = value; }
273 
286  inline void SetListOfTags(Aws::Vector<Condition>&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = std::move(value); }
287 
300  inline BackupSelection& WithListOfTags(const Aws::Vector<Condition>& value) { SetListOfTags(value); return *this;}
301 
314  inline BackupSelection& WithListOfTags(Aws::Vector<Condition>&& value) { SetListOfTags(std::move(value)); return *this;}
315 
328  inline BackupSelection& AddListOfTags(const Condition& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.push_back(value); return *this; }
329 
342  inline BackupSelection& AddListOfTags(Condition&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.push_back(std::move(value)); return *this; }
343 
344 
352  inline const Aws::Vector<Aws::String>& GetNotResources() const{ return m_notResources; }
353 
361  inline bool NotResourcesHasBeenSet() const { return m_notResourcesHasBeenSet; }
362 
370  inline void SetNotResources(const Aws::Vector<Aws::String>& value) { m_notResourcesHasBeenSet = true; m_notResources = value; }
371 
379  inline void SetNotResources(Aws::Vector<Aws::String>&& value) { m_notResourcesHasBeenSet = true; m_notResources = std::move(value); }
380 
388  inline BackupSelection& WithNotResources(const Aws::Vector<Aws::String>& value) { SetNotResources(value); return *this;}
389 
397  inline BackupSelection& WithNotResources(Aws::Vector<Aws::String>&& value) { SetNotResources(std::move(value)); return *this;}
398 
406  inline BackupSelection& AddNotResources(const Aws::String& value) { m_notResourcesHasBeenSet = true; m_notResources.push_back(value); return *this; }
407 
415  inline BackupSelection& AddNotResources(Aws::String&& value) { m_notResourcesHasBeenSet = true; m_notResources.push_back(std::move(value)); return *this; }
416 
424  inline BackupSelection& AddNotResources(const char* value) { m_notResourcesHasBeenSet = true; m_notResources.push_back(value); return *this; }
425 
426 
439  inline const Conditions& GetConditions() const{ return m_conditions; }
440 
453  inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
454 
467  inline void SetConditions(const Conditions& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
468 
481  inline void SetConditions(Conditions&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
482 
495  inline BackupSelection& WithConditions(const Conditions& value) { SetConditions(value); return *this;}
496 
509  inline BackupSelection& WithConditions(Conditions&& value) { SetConditions(std::move(value)); return *this;}
510 
511  private:
512 
513  Aws::String m_selectionName;
514  bool m_selectionNameHasBeenSet;
515 
516  Aws::String m_iamRoleArn;
517  bool m_iamRoleArnHasBeenSet;
518 
519  Aws::Vector<Aws::String> m_resources;
520  bool m_resourcesHasBeenSet;
521 
522  Aws::Vector<Condition> m_listOfTags;
523  bool m_listOfTagsHasBeenSet;
524 
525  Aws::Vector<Aws::String> m_notResources;
526  bool m_notResourcesHasBeenSet;
527 
528  Conditions m_conditions;
529  bool m_conditionsHasBeenSet;
530  };
531 
532 } // namespace Model
533 } // namespace Backup
534 } // namespace Aws
Aws::Backup::Model::BackupSelection
Definition: BackupSelection.h:36
Aws::Backup::Model::BackupSelection::ListOfTagsHasBeenSet
bool ListOfTagsHasBeenSet() const
Definition: BackupSelection.h:258
Aws::Backup::Model::BackupSelection::GetConditions
const Conditions & GetConditions() const
Definition: BackupSelection.h:439
Aws::Backup::Model::BackupSelection::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: BackupSelection.h:184
Aws::Backup::Model::BackupSelection::AddNotResources
BackupSelection & AddNotResources(Aws::String &&value)
Definition: BackupSelection.h:415
Aws::Backup::Model::BackupSelection::AddResources
BackupSelection & AddResources(const char *value)
Definition: BackupSelection.h:229
Aws::Backup::Model::BackupSelection::WithIamRoleArn
BackupSelection & WithIamRoleArn(Aws::String &&value)
Definition: BackupSelection.h:140
Aws::Backup::Model::BackupSelection::SetConditions
void SetConditions(Conditions &&value)
Definition: BackupSelection.h:481
Aws::Backup::Model::BackupSelection::GetListOfTags
const Aws::Vector< Condition > & GetListOfTags() const
Definition: BackupSelection.h:244
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::BackupSelection::WithIamRoleArn
BackupSelection & WithIamRoleArn(const Aws::String &value)
Definition: BackupSelection.h:133
Aws::Backup::Model::BackupSelection::AddListOfTags
BackupSelection & AddListOfTags(Condition &&value)
Definition: BackupSelection.h:342
Aws::Backup::Model::BackupSelection::WithIamRoleArn
BackupSelection & WithIamRoleArn(const char *value)
Definition: BackupSelection.h:147
Aws::Backup::Model::BackupSelection::WithListOfTags
BackupSelection & WithListOfTags(const Aws::Vector< Condition > &value)
Definition: BackupSelection.h:300
Aws::Backup::Model::BackupSelection::WithSelectionName
BackupSelection & WithSelectionName(const char *value)
Definition: BackupSelection.h:90
Aws::Backup::Model::BackupSelection::WithResources
BackupSelection & WithResources(Aws::Vector< Aws::String > &&value)
Definition: BackupSelection.h:202
Aws::Backup::Model::BackupSelection::SetConditions
void SetConditions(const Conditions &value)
Definition: BackupSelection.h:467
Aws::Backup::Model::BackupSelection::SetIamRoleArn
void SetIamRoleArn(const Aws::String &value)
Definition: BackupSelection.h:112
Aws::Backup::Model::BackupSelection::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: BackupSelection.h:166
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Backup::Model::BackupSelection::SetNotResources
void SetNotResources(const Aws::Vector< Aws::String > &value)
Definition: BackupSelection.h:370
AWSVector.h
Aws::Backup::Model::BackupSelection::WithConditions
BackupSelection & WithConditions(Conditions &&value)
Definition: BackupSelection.h:509
Aws::Backup::Model::BackupSelection::WithNotResources
BackupSelection & WithNotResources(const Aws::Vector< Aws::String > &value)
Definition: BackupSelection.h:388
Aws::Backup::Model::BackupSelection::AddResources
BackupSelection & AddResources(const Aws::String &value)
Definition: BackupSelection.h:211
Aws::Backup::Model::BackupSelection::operator=
BackupSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::BackupSelection::SetSelectionName
void SetSelectionName(Aws::String &&value)
Definition: BackupSelection.h:66
Aws::Backup::Model::BackupSelection::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: BackupSelection.h:175
Aws::Backup::Model::BackupSelection::BackupSelection
BackupSelection(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::BackupSelection::SetListOfTags
void SetListOfTags(Aws::Vector< Condition > &&value)
Definition: BackupSelection.h:286
Aws::Backup::Model::BackupSelection::WithResources
BackupSelection & WithResources(const Aws::Vector< Aws::String > &value)
Definition: BackupSelection.h:193
Aws::Backup::Model::BackupSelection::WithConditions
BackupSelection & WithConditions(const Conditions &value)
Definition: BackupSelection.h:495
Aws::Backup::Model::BackupSelection::IamRoleArnHasBeenSet
bool IamRoleArnHasBeenSet() const
Definition: BackupSelection.h:105
Aws::Backup::Model::BackupSelection::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: BackupSelection.h:157
Aws::Backup::Model::BackupSelection::SelectionNameHasBeenSet
bool SelectionNameHasBeenSet() const
Definition: BackupSelection.h:54
Conditions.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Backup::Model::BackupSelection::WithListOfTags
BackupSelection & WithListOfTags(Aws::Vector< Condition > &&value)
Definition: BackupSelection.h:314
Aws::Backup::Model::BackupSelection::GetSelectionName
const Aws::String & GetSelectionName() const
Definition: BackupSelection.h:48
Aws::Backup::Model::BackupSelection::SetListOfTags
void SetListOfTags(const Aws::Vector< Condition > &value)
Definition: BackupSelection.h:272
Condition.h
Aws::Backup::Model::BackupSelection::WithSelectionName
BackupSelection & WithSelectionName(const Aws::String &value)
Definition: BackupSelection.h:78
Aws::Backup::Model::Conditions
Definition: Conditions.h:35
Aws::Backup::Model::BackupSelection::SetSelectionName
void SetSelectionName(const char *value)
Definition: BackupSelection.h:72
Backup_EXPORTS.h
Aws::Backup::Model::BackupSelection::ConditionsHasBeenSet
bool ConditionsHasBeenSet() const
Definition: BackupSelection.h:453
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::BackupSelection::NotResourcesHasBeenSet
bool NotResourcesHasBeenSet() const
Definition: BackupSelection.h:361
Aws::Backup::Model::BackupSelection::WithNotResources
BackupSelection & WithNotResources(Aws::Vector< Aws::String > &&value)
Definition: BackupSelection.h:397
Aws::Backup::Model::BackupSelection::BackupSelection
BackupSelection()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::BackupSelection::SetNotResources
void SetNotResources(Aws::Vector< Aws::String > &&value)
Definition: BackupSelection.h:379
Aws::Backup::Model::BackupSelection::AddListOfTags
BackupSelection & AddListOfTags(const Condition &value)
Definition: BackupSelection.h:328
Aws::Backup::Model::BackupSelection::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Backup::Model::BackupSelection::SetSelectionName
void SetSelectionName(const Aws::String &value)
Definition: BackupSelection.h:60
Aws::Backup::Model::BackupSelection::GetIamRoleArn
const Aws::String & GetIamRoleArn() const
Definition: BackupSelection.h:98
Aws::Backup::Model::BackupSelection::SetIamRoleArn
void SetIamRoleArn(Aws::String &&value)
Definition: BackupSelection.h:119
Aws::Backup::Model::Condition
Definition: Condition.h:36
Aws::Backup::Model::BackupSelection::SetIamRoleArn
void SetIamRoleArn(const char *value)
Definition: BackupSelection.h:126
Aws::Backup::Model::BackupSelection::WithSelectionName
BackupSelection & WithSelectionName(Aws::String &&value)
Definition: BackupSelection.h:84
Aws::Backup::Model::BackupSelection::AddNotResources
BackupSelection & AddNotResources(const char *value)
Definition: BackupSelection.h:424
Aws::Backup::Model::BackupSelection::GetNotResources
const Aws::Vector< Aws::String > & GetNotResources() const
Definition: BackupSelection.h:352
Aws::Backup::Model::BackupSelection::AddResources
BackupSelection & AddResources(Aws::String &&value)
Definition: BackupSelection.h:220
Aws::Backup::Model::BackupSelection::AddNotResources
BackupSelection & AddNotResources(const Aws::String &value)
Definition: BackupSelection.h:406