AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BackupSelection.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/backup/model/Conditions.h>
11#include <aws/backup/model/Condition.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Backup
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_BACKUP_API BackupSelection() = default;
45 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetSelectionName() const { return m_selectionName; }
54 inline bool SelectionNameHasBeenSet() const { return m_selectionNameHasBeenSet; }
55 template<typename SelectionNameT = Aws::String>
56 void SetSelectionName(SelectionNameT&& value) { m_selectionNameHasBeenSet = true; m_selectionName = std::forward<SelectionNameT>(value); }
57 template<typename SelectionNameT = Aws::String>
58 BackupSelection& WithSelectionName(SelectionNameT&& value) { SetSelectionName(std::forward<SelectionNameT>(value)); return *this;}
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) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
71 template<typename IamRoleArnT = Aws::String>
72 BackupSelection& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
74
76
85 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
86 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
87 template<typename ResourcesT = Aws::Vector<Aws::String>>
88 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
89 template<typename ResourcesT = Aws::Vector<Aws::String>>
90 BackupSelection& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
91 template<typename ResourcesT = Aws::String>
92 BackupSelection& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
94
96
104 inline const Aws::Vector<Condition>& GetListOfTags() const { return m_listOfTags; }
105 inline bool ListOfTagsHasBeenSet() const { return m_listOfTagsHasBeenSet; }
106 template<typename ListOfTagsT = Aws::Vector<Condition>>
107 void SetListOfTags(ListOfTagsT&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = std::forward<ListOfTagsT>(value); }
108 template<typename ListOfTagsT = Aws::Vector<Condition>>
109 BackupSelection& WithListOfTags(ListOfTagsT&& value) { SetListOfTags(std::forward<ListOfTagsT>(value)); return *this;}
110 template<typename ListOfTagsT = Condition>
111 BackupSelection& AddListOfTags(ListOfTagsT&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.emplace_back(std::forward<ListOfTagsT>(value)); return *this; }
113
115
122 inline const Aws::Vector<Aws::String>& GetNotResources() const { return m_notResources; }
123 inline bool NotResourcesHasBeenSet() const { return m_notResourcesHasBeenSet; }
124 template<typename NotResourcesT = Aws::Vector<Aws::String>>
125 void SetNotResources(NotResourcesT&& value) { m_notResourcesHasBeenSet = true; m_notResources = std::forward<NotResourcesT>(value); }
126 template<typename NotResourcesT = Aws::Vector<Aws::String>>
127 BackupSelection& WithNotResources(NotResourcesT&& value) { SetNotResources(std::forward<NotResourcesT>(value)); return *this;}
128 template<typename NotResourcesT = Aws::String>
129 BackupSelection& AddNotResources(NotResourcesT&& value) { m_notResourcesHasBeenSet = true; m_notResources.emplace_back(std::forward<NotResourcesT>(value)); return *this; }
131
133
143 inline const Conditions& GetConditions() const { return m_conditions; }
144 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
145 template<typename ConditionsT = Conditions>
146 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
147 template<typename ConditionsT = Conditions>
148 BackupSelection& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
150 private:
151
152 Aws::String m_selectionName;
153 bool m_selectionNameHasBeenSet = false;
154
155 Aws::String m_iamRoleArn;
156 bool m_iamRoleArnHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_resources;
159 bool m_resourcesHasBeenSet = false;
160
161 Aws::Vector<Condition> m_listOfTags;
162 bool m_listOfTagsHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_notResources;
165 bool m_notResourcesHasBeenSet = false;
166
167 Conditions m_conditions;
168 bool m_conditionsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Backup
173} // 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