AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BackupSelection.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/Condition.h>
9#include <aws/backup/model/Conditions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Backup {
23namespace Model {
24
36 public:
37 AWS_BACKUP_API BackupSelection() = default;
40 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetSelectionName() const { return m_selectionName; }
48 inline bool SelectionNameHasBeenSet() const { return m_selectionNameHasBeenSet; }
49 template <typename SelectionNameT = Aws::String>
50 void SetSelectionName(SelectionNameT&& value) {
51 m_selectionNameHasBeenSet = true;
52 m_selectionName = std::forward<SelectionNameT>(value);
53 }
54 template <typename SelectionNameT = Aws::String>
55 BackupSelection& WithSelectionName(SelectionNameT&& value) {
56 SetSelectionName(std::forward<SelectionNameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
68 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
69 template <typename IamRoleArnT = Aws::String>
70 void SetIamRoleArn(IamRoleArnT&& value) {
71 m_iamRoleArnHasBeenSet = true;
72 m_iamRoleArn = std::forward<IamRoleArnT>(value);
73 }
74 template <typename IamRoleArnT = Aws::String>
75 BackupSelection& WithIamRoleArn(IamRoleArnT&& value) {
76 SetIamRoleArn(std::forward<IamRoleArnT>(value));
77 return *this;
78 }
80
82
94 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
95 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
96 template <typename ResourcesT = Aws::Vector<Aws::String>>
97 void SetResources(ResourcesT&& value) {
98 m_resourcesHasBeenSet = true;
99 m_resources = std::forward<ResourcesT>(value);
100 }
101 template <typename ResourcesT = Aws::Vector<Aws::String>>
102 BackupSelection& WithResources(ResourcesT&& value) {
103 SetResources(std::forward<ResourcesT>(value));
104 return *this;
105 }
106 template <typename ResourcesT = Aws::String>
107 BackupSelection& AddResources(ResourcesT&& value) {
108 m_resourcesHasBeenSet = true;
109 m_resources.emplace_back(std::forward<ResourcesT>(value));
110 return *this;
111 }
113
115
123 inline const Aws::Vector<Condition>& GetListOfTags() const { return m_listOfTags; }
124 inline bool ListOfTagsHasBeenSet() const { return m_listOfTagsHasBeenSet; }
125 template <typename ListOfTagsT = Aws::Vector<Condition>>
126 void SetListOfTags(ListOfTagsT&& value) {
127 m_listOfTagsHasBeenSet = true;
128 m_listOfTags = std::forward<ListOfTagsT>(value);
129 }
130 template <typename ListOfTagsT = Aws::Vector<Condition>>
131 BackupSelection& WithListOfTags(ListOfTagsT&& value) {
132 SetListOfTags(std::forward<ListOfTagsT>(value));
133 return *this;
134 }
135 template <typename ListOfTagsT = Condition>
136 BackupSelection& AddListOfTags(ListOfTagsT&& value) {
137 m_listOfTagsHasBeenSet = true;
138 m_listOfTags.emplace_back(std::forward<ListOfTagsT>(value));
139 return *this;
140 }
142
144
151 inline const Aws::Vector<Aws::String>& GetNotResources() const { return m_notResources; }
152 inline bool NotResourcesHasBeenSet() const { return m_notResourcesHasBeenSet; }
153 template <typename NotResourcesT = Aws::Vector<Aws::String>>
154 void SetNotResources(NotResourcesT&& value) {
155 m_notResourcesHasBeenSet = true;
156 m_notResources = std::forward<NotResourcesT>(value);
157 }
158 template <typename NotResourcesT = Aws::Vector<Aws::String>>
159 BackupSelection& WithNotResources(NotResourcesT&& value) {
160 SetNotResources(std::forward<NotResourcesT>(value));
161 return *this;
162 }
163 template <typename NotResourcesT = Aws::String>
164 BackupSelection& AddNotResources(NotResourcesT&& value) {
165 m_notResourcesHasBeenSet = true;
166 m_notResources.emplace_back(std::forward<NotResourcesT>(value));
167 return *this;
168 }
170
172
182 inline const Conditions& GetConditions() const { return m_conditions; }
183 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
184 template <typename ConditionsT = Conditions>
185 void SetConditions(ConditionsT&& value) {
186 m_conditionsHasBeenSet = true;
187 m_conditions = std::forward<ConditionsT>(value);
188 }
189 template <typename ConditionsT = Conditions>
190 BackupSelection& WithConditions(ConditionsT&& value) {
191 SetConditions(std::forward<ConditionsT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_selectionName;
197
198 Aws::String m_iamRoleArn;
199
200 Aws::Vector<Aws::String> m_resources;
201
202 Aws::Vector<Condition> m_listOfTags;
203
204 Aws::Vector<Aws::String> m_notResources;
205
206 Conditions m_conditions;
207 bool m_selectionNameHasBeenSet = false;
208 bool m_iamRoleArnHasBeenSet = false;
209 bool m_resourcesHasBeenSet = false;
210 bool m_listOfTagsHasBeenSet = false;
211 bool m_notResourcesHasBeenSet = false;
212 bool m_conditionsHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace Backup
217} // namespace Aws
AWS_BACKUP_API BackupSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSelectionName() const
void SetIamRoleArn(IamRoleArnT &&value)
BackupSelection & AddResources(ResourcesT &&value)
BackupSelection & AddListOfTags(ListOfTagsT &&value)
void SetResources(ResourcesT &&value)
BackupSelection & WithSelectionName(SelectionNameT &&value)
BackupSelection & WithConditions(ConditionsT &&value)
const Aws::Vector< Aws::String > & GetResources() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetNotResources() const
BackupSelection & WithResources(ResourcesT &&value)
void SetNotResources(NotResourcesT &&value)
BackupSelection & WithNotResources(NotResourcesT &&value)
const Conditions & GetConditions() const
const Aws::String & GetIamRoleArn() const
const Aws::Vector< Condition > & GetListOfTags() const
void SetConditions(ConditionsT &&value)
BackupSelection & AddNotResources(NotResourcesT &&value)
AWS_BACKUP_API BackupSelection()=default
AWS_BACKUP_API BackupSelection(Aws::Utils::Json::JsonView jsonValue)
BackupSelection & WithListOfTags(ListOfTagsT &&value)
BackupSelection & WithIamRoleArn(IamRoleArnT &&value)
void SetSelectionName(SelectionNameT &&value)
void SetListOfTags(ListOfTagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue