AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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
91 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
92 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
93 template <typename ResourcesT = Aws::Vector<Aws::String>>
94 void SetResources(ResourcesT&& value) {
95 m_resourcesHasBeenSet = true;
96 m_resources = std::forward<ResourcesT>(value);
97 }
98 template <typename ResourcesT = Aws::Vector<Aws::String>>
99 BackupSelection& WithResources(ResourcesT&& value) {
100 SetResources(std::forward<ResourcesT>(value));
101 return *this;
102 }
103 template <typename ResourcesT = Aws::String>
104 BackupSelection& AddResources(ResourcesT&& value) {
105 m_resourcesHasBeenSet = true;
106 m_resources.emplace_back(std::forward<ResourcesT>(value));
107 return *this;
108 }
110
112
120 inline const Aws::Vector<Condition>& GetListOfTags() const { return m_listOfTags; }
121 inline bool ListOfTagsHasBeenSet() const { return m_listOfTagsHasBeenSet; }
122 template <typename ListOfTagsT = Aws::Vector<Condition>>
123 void SetListOfTags(ListOfTagsT&& value) {
124 m_listOfTagsHasBeenSet = true;
125 m_listOfTags = std::forward<ListOfTagsT>(value);
126 }
127 template <typename ListOfTagsT = Aws::Vector<Condition>>
128 BackupSelection& WithListOfTags(ListOfTagsT&& value) {
129 SetListOfTags(std::forward<ListOfTagsT>(value));
130 return *this;
131 }
132 template <typename ListOfTagsT = Condition>
133 BackupSelection& AddListOfTags(ListOfTagsT&& value) {
134 m_listOfTagsHasBeenSet = true;
135 m_listOfTags.emplace_back(std::forward<ListOfTagsT>(value));
136 return *this;
137 }
139
141
148 inline const Aws::Vector<Aws::String>& GetNotResources() const { return m_notResources; }
149 inline bool NotResourcesHasBeenSet() const { return m_notResourcesHasBeenSet; }
150 template <typename NotResourcesT = Aws::Vector<Aws::String>>
151 void SetNotResources(NotResourcesT&& value) {
152 m_notResourcesHasBeenSet = true;
153 m_notResources = std::forward<NotResourcesT>(value);
154 }
155 template <typename NotResourcesT = Aws::Vector<Aws::String>>
156 BackupSelection& WithNotResources(NotResourcesT&& value) {
157 SetNotResources(std::forward<NotResourcesT>(value));
158 return *this;
159 }
160 template <typename NotResourcesT = Aws::String>
161 BackupSelection& AddNotResources(NotResourcesT&& value) {
162 m_notResourcesHasBeenSet = true;
163 m_notResources.emplace_back(std::forward<NotResourcesT>(value));
164 return *this;
165 }
167
169
179 inline const Conditions& GetConditions() const { return m_conditions; }
180 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
181 template <typename ConditionsT = Conditions>
182 void SetConditions(ConditionsT&& value) {
183 m_conditionsHasBeenSet = true;
184 m_conditions = std::forward<ConditionsT>(value);
185 }
186 template <typename ConditionsT = Conditions>
187 BackupSelection& WithConditions(ConditionsT&& value) {
188 SetConditions(std::forward<ConditionsT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_selectionName;
194
195 Aws::String m_iamRoleArn;
196
197 Aws::Vector<Aws::String> m_resources;
198
199 Aws::Vector<Condition> m_listOfTags;
200
201 Aws::Vector<Aws::String> m_notResources;
202
203 Conditions m_conditions;
204 bool m_selectionNameHasBeenSet = false;
205 bool m_iamRoleArnHasBeenSet = false;
206 bool m_resourcesHasBeenSet = false;
207 bool m_listOfTagsHasBeenSet = false;
208 bool m_notResourcesHasBeenSet = false;
209 bool m_conditionsHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace Backup
214} // 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