AWS SDK for C++  1.9.20
AWS SDK for C++
BackupSelection.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Backup
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetSelectionName() const{ return m_selectionName; }
47 
51  inline bool SelectionNameHasBeenSet() const { return m_selectionNameHasBeenSet; }
52 
56  inline void SetSelectionName(const Aws::String& value) { m_selectionNameHasBeenSet = true; m_selectionName = value; }
57 
61  inline void SetSelectionName(Aws::String&& value) { m_selectionNameHasBeenSet = true; m_selectionName = std::move(value); }
62 
66  inline void SetSelectionName(const char* value) { m_selectionNameHasBeenSet = true; m_selectionName.assign(value); }
67 
71  inline BackupSelection& WithSelectionName(const Aws::String& value) { SetSelectionName(value); return *this;}
72 
76  inline BackupSelection& WithSelectionName(Aws::String&& value) { SetSelectionName(std::move(value)); return *this;}
77 
81  inline BackupSelection& WithSelectionName(const char* value) { SetSelectionName(value); return *this;}
82 
83 
89  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
90 
96  inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
97 
103  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
104 
110  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
111 
117  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
118 
124  inline BackupSelection& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
125 
131  inline BackupSelection& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
132 
138  inline BackupSelection& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
139 
140 
145  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
146 
151  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
152 
157  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
158 
163  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
164 
169  inline BackupSelection& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
170 
175  inline BackupSelection& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
176 
181  inline BackupSelection& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
182 
187  inline BackupSelection& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
188 
193  inline BackupSelection& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
194 
195 
202  inline const Aws::Vector<Condition>& GetListOfTags() const{ return m_listOfTags; }
203 
210  inline bool ListOfTagsHasBeenSet() const { return m_listOfTagsHasBeenSet; }
211 
218  inline void SetListOfTags(const Aws::Vector<Condition>& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = value; }
219 
226  inline void SetListOfTags(Aws::Vector<Condition>&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = std::move(value); }
227 
234  inline BackupSelection& WithListOfTags(const Aws::Vector<Condition>& value) { SetListOfTags(value); return *this;}
235 
242  inline BackupSelection& WithListOfTags(Aws::Vector<Condition>&& value) { SetListOfTags(std::move(value)); return *this;}
243 
250  inline BackupSelection& AddListOfTags(const Condition& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.push_back(value); return *this; }
251 
258  inline BackupSelection& AddListOfTags(Condition&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.push_back(std::move(value)); return *this; }
259 
260  private:
261 
262  Aws::String m_selectionName;
263  bool m_selectionNameHasBeenSet;
264 
265  Aws::String m_iamRoleArn;
266  bool m_iamRoleArnHasBeenSet;
267 
268  Aws::Vector<Aws::String> m_resources;
269  bool m_resourcesHasBeenSet;
270 
271  Aws::Vector<Condition> m_listOfTags;
272  bool m_listOfTagsHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace Backup
277 } // namespace Aws
Aws::Backup::Model::BackupSelection
Definition: BackupSelection.h:35
Aws::Backup::Model::BackupSelection::ListOfTagsHasBeenSet
bool ListOfTagsHasBeenSet() const
Definition: BackupSelection.h:210
Aws::Backup::Model::BackupSelection::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: BackupSelection.h:163
Aws::Backup::Model::BackupSelection::AddResources
BackupSelection & AddResources(const char *value)
Definition: BackupSelection.h:193
Aws::Backup::Model::BackupSelection::WithIamRoleArn
BackupSelection & WithIamRoleArn(Aws::String &&value)
Definition: BackupSelection.h:131
Aws::Backup::Model::BackupSelection::GetListOfTags
const Aws::Vector< Condition > & GetListOfTags() const
Definition: BackupSelection.h:202
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:124
Aws::Backup::Model::BackupSelection::AddListOfTags
BackupSelection & AddListOfTags(Condition &&value)
Definition: BackupSelection.h:258
Aws::Backup::Model::BackupSelection::WithIamRoleArn
BackupSelection & WithIamRoleArn(const char *value)
Definition: BackupSelection.h:138
Aws::Backup::Model::BackupSelection::WithListOfTags
BackupSelection & WithListOfTags(const Aws::Vector< Condition > &value)
Definition: BackupSelection.h:234
Aws::Backup::Model::BackupSelection::WithSelectionName
BackupSelection & WithSelectionName(const char *value)
Definition: BackupSelection.h:81
Aws::Backup::Model::BackupSelection::WithResources
BackupSelection & WithResources(Aws::Vector< Aws::String > &&value)
Definition: BackupSelection.h:175
Aws::Backup::Model::BackupSelection::SetIamRoleArn
void SetIamRoleArn(const Aws::String &value)
Definition: BackupSelection.h:103
Aws::Backup::Model::BackupSelection::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: BackupSelection.h:151
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Backup::Model::BackupSelection::AddResources
BackupSelection & AddResources(const Aws::String &value)
Definition: BackupSelection.h:181
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:61
Aws::Backup::Model::BackupSelection::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: BackupSelection.h:157
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:226
Aws::Backup::Model::BackupSelection::WithResources
BackupSelection & WithResources(const Aws::Vector< Aws::String > &value)
Definition: BackupSelection.h:169
Aws::Backup::Model::BackupSelection::IamRoleArnHasBeenSet
bool IamRoleArnHasBeenSet() const
Definition: BackupSelection.h:96
Aws::Backup::Model::BackupSelection::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: BackupSelection.h:145
Aws::Backup::Model::BackupSelection::SelectionNameHasBeenSet
bool SelectionNameHasBeenSet() const
Definition: BackupSelection.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Backup::Model::BackupSelection::WithListOfTags
BackupSelection & WithListOfTags(Aws::Vector< Condition > &&value)
Definition: BackupSelection.h:242
Aws::Backup::Model::BackupSelection::GetSelectionName
const Aws::String & GetSelectionName() const
Definition: BackupSelection.h:46
Aws::Backup::Model::BackupSelection::SetListOfTags
void SetListOfTags(const Aws::Vector< Condition > &value)
Definition: BackupSelection.h:218
Condition.h
Aws::Backup::Model::BackupSelection::WithSelectionName
BackupSelection & WithSelectionName(const Aws::String &value)
Definition: BackupSelection.h:71
Aws::Backup::Model::BackupSelection::SetSelectionName
void SetSelectionName(const char *value)
Definition: BackupSelection.h:66
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
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::AddListOfTags
BackupSelection & AddListOfTags(const Condition &value)
Definition: BackupSelection.h:250
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:56
Aws::Backup::Model::BackupSelection::GetIamRoleArn
const Aws::String & GetIamRoleArn() const
Definition: BackupSelection.h:89
Aws::Backup::Model::BackupSelection::SetIamRoleArn
void SetIamRoleArn(Aws::String &&value)
Definition: BackupSelection.h:110
Aws::Backup::Model::Condition
Definition: Condition.h:36
Aws::Backup::Model::BackupSelection::SetIamRoleArn
void SetIamRoleArn(const char *value)
Definition: BackupSelection.h:117
Aws::Backup::Model::BackupSelection::WithSelectionName
BackupSelection & WithSelectionName(Aws::String &&value)
Definition: BackupSelection.h:76
Aws::Backup::Model::BackupSelection::AddResources
BackupSelection & AddResources(Aws::String &&value)
Definition: BackupSelection.h:187