AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSelectionName(const Aws::String& value) { m_selectionNameHasBeenSet = true; m_selectionName = value; }
56 inline void SetSelectionName(Aws::String&& value) { m_selectionNameHasBeenSet = true; m_selectionName = std::move(value); }
57 inline void SetSelectionName(const char* value) { m_selectionNameHasBeenSet = true; m_selectionName.assign(value); }
58 inline BackupSelection& WithSelectionName(const Aws::String& value) { SetSelectionName(value); return *this;}
59 inline BackupSelection& WithSelectionName(Aws::String&& value) { SetSelectionName(std::move(value)); return *this;}
60 inline BackupSelection& WithSelectionName(const char* value) { SetSelectionName(value); return *this;}
62
64
69 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
70 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
71 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
72 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
73 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
74 inline BackupSelection& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
75 inline BackupSelection& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
76 inline BackupSelection& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
78
80
89 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
90 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
91 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
92 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
93 inline BackupSelection& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
94 inline BackupSelection& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
95 inline BackupSelection& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
96 inline BackupSelection& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
97 inline BackupSelection& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
99
101
109 inline const Aws::Vector<Condition>& GetListOfTags() const{ return m_listOfTags; }
110 inline bool ListOfTagsHasBeenSet() const { return m_listOfTagsHasBeenSet; }
111 inline void SetListOfTags(const Aws::Vector<Condition>& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = value; }
112 inline void SetListOfTags(Aws::Vector<Condition>&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags = std::move(value); }
113 inline BackupSelection& WithListOfTags(const Aws::Vector<Condition>& value) { SetListOfTags(value); return *this;}
114 inline BackupSelection& WithListOfTags(Aws::Vector<Condition>&& value) { SetListOfTags(std::move(value)); return *this;}
115 inline BackupSelection& AddListOfTags(const Condition& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.push_back(value); return *this; }
116 inline BackupSelection& AddListOfTags(Condition&& value) { m_listOfTagsHasBeenSet = true; m_listOfTags.push_back(std::move(value)); return *this; }
118
120
127 inline const Aws::Vector<Aws::String>& GetNotResources() const{ return m_notResources; }
128 inline bool NotResourcesHasBeenSet() const { return m_notResourcesHasBeenSet; }
129 inline void SetNotResources(const Aws::Vector<Aws::String>& value) { m_notResourcesHasBeenSet = true; m_notResources = value; }
130 inline void SetNotResources(Aws::Vector<Aws::String>&& value) { m_notResourcesHasBeenSet = true; m_notResources = std::move(value); }
131 inline BackupSelection& WithNotResources(const Aws::Vector<Aws::String>& value) { SetNotResources(value); return *this;}
132 inline BackupSelection& WithNotResources(Aws::Vector<Aws::String>&& value) { SetNotResources(std::move(value)); return *this;}
133 inline BackupSelection& AddNotResources(const Aws::String& value) { m_notResourcesHasBeenSet = true; m_notResources.push_back(value); return *this; }
134 inline BackupSelection& AddNotResources(Aws::String&& value) { m_notResourcesHasBeenSet = true; m_notResources.push_back(std::move(value)); return *this; }
135 inline BackupSelection& AddNotResources(const char* value) { m_notResourcesHasBeenSet = true; m_notResources.push_back(value); return *this; }
137
139
149 inline const Conditions& GetConditions() const{ return m_conditions; }
150 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
151 inline void SetConditions(const Conditions& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
152 inline void SetConditions(Conditions&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
153 inline BackupSelection& WithConditions(const Conditions& value) { SetConditions(value); return *this;}
154 inline BackupSelection& WithConditions(Conditions&& value) { SetConditions(std::move(value)); return *this;}
156 private:
157
158 Aws::String m_selectionName;
159 bool m_selectionNameHasBeenSet = false;
160
161 Aws::String m_iamRoleArn;
162 bool m_iamRoleArnHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_resources;
165 bool m_resourcesHasBeenSet = false;
166
167 Aws::Vector<Condition> m_listOfTags;
168 bool m_listOfTagsHasBeenSet = false;
169
170 Aws::Vector<Aws::String> m_notResources;
171 bool m_notResourcesHasBeenSet = false;
172
173 Conditions m_conditions;
174 bool m_conditionsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace Backup
179} // namespace Aws
AWS_BACKUP_API BackupSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
BackupSelection & AddResources(Aws::String &&value)
const Aws::String & GetSelectionName() const
BackupSelection & AddListOfTags(const Condition &value)
BackupSelection & WithNotResources(Aws::Vector< Aws::String > &&value)
BackupSelection & WithSelectionName(Aws::String &&value)
BackupSelection & AddNotResources(const char *value)
BackupSelection & WithResources(const Aws::Vector< Aws::String > &value)
BackupSelection & WithListOfTags(const Aws::Vector< Condition > &value)
BackupSelection & WithIamRoleArn(const Aws::String &value)
void SetListOfTags(Aws::Vector< Condition > &&value)
void SetIamRoleArn(const Aws::String &value)
BackupSelection & AddResources(const Aws::String &value)
BackupSelection & WithIamRoleArn(const char *value)
void SetConditions(Conditions &&value)
void SetResources(const Aws::Vector< Aws::String > &value)
void SetSelectionName(const Aws::String &value)
BackupSelection & WithConditions(Conditions &&value)
const Aws::Vector< Aws::String > & GetResources() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNotResources(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetNotResources() const
void SetConditions(const Conditions &value)
BackupSelection & WithConditions(const Conditions &value)
void SetListOfTags(const Aws::Vector< Condition > &value)
BackupSelection & WithListOfTags(Aws::Vector< Condition > &&value)
void SetNotResources(const Aws::Vector< Aws::String > &value)
const Conditions & GetConditions() const
BackupSelection & AddListOfTags(Condition &&value)
const Aws::String & GetIamRoleArn() const
void SetIamRoleArn(Aws::String &&value)
BackupSelection & WithIamRoleArn(Aws::String &&value)
const Aws::Vector< Condition > & GetListOfTags() const
BackupSelection & WithSelectionName(const char *value)
BackupSelection & WithNotResources(const Aws::Vector< Aws::String > &value)
BackupSelection & WithSelectionName(const Aws::String &value)
AWS_BACKUP_API BackupSelection(Aws::Utils::Json::JsonView jsonValue)
BackupSelection & WithResources(Aws::Vector< Aws::String > &&value)
BackupSelection & AddResources(const char *value)
BackupSelection & AddNotResources(Aws::String &&value)
void SetIamRoleArn(const char *value)
void SetSelectionName(const char *value)
void SetResources(Aws::Vector< Aws::String > &&value)
BackupSelection & AddNotResources(const Aws::String &value)
void SetSelectionName(Aws::String &&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