AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ControlScope.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Backup
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_BACKUP_API ControlScope();
44 AWS_BACKUP_API ControlScope(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::Vector<Aws::String>& GetComplianceResourceIds() const{ return m_complianceResourceIds; }
55 inline bool ComplianceResourceIdsHasBeenSet() const { return m_complianceResourceIdsHasBeenSet; }
56 inline void SetComplianceResourceIds(const Aws::Vector<Aws::String>& value) { m_complianceResourceIdsHasBeenSet = true; m_complianceResourceIds = value; }
57 inline void SetComplianceResourceIds(Aws::Vector<Aws::String>&& value) { m_complianceResourceIdsHasBeenSet = true; m_complianceResourceIds = std::move(value); }
60 inline ControlScope& AddComplianceResourceIds(const Aws::String& value) { m_complianceResourceIdsHasBeenSet = true; m_complianceResourceIds.push_back(value); return *this; }
61 inline ControlScope& AddComplianceResourceIds(Aws::String&& value) { m_complianceResourceIdsHasBeenSet = true; m_complianceResourceIds.push_back(std::move(value)); return *this; }
62 inline ControlScope& AddComplianceResourceIds(const char* value) { m_complianceResourceIdsHasBeenSet = true; m_complianceResourceIds.push_back(value); return *this; }
64
66
70 inline const Aws::Vector<Aws::String>& GetComplianceResourceTypes() const{ return m_complianceResourceTypes; }
71 inline bool ComplianceResourceTypesHasBeenSet() const { return m_complianceResourceTypesHasBeenSet; }
72 inline void SetComplianceResourceTypes(const Aws::Vector<Aws::String>& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes = value; }
73 inline void SetComplianceResourceTypes(Aws::Vector<Aws::String>&& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes = std::move(value); }
76 inline ControlScope& AddComplianceResourceTypes(const Aws::String& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
77 inline ControlScope& AddComplianceResourceTypes(Aws::String&& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(std::move(value)); return *this; }
78 inline ControlScope& AddComplianceResourceTypes(const char* value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
80
82
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline ControlScope& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
96 inline ControlScope& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
97 inline ControlScope& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
98 inline ControlScope& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline ControlScope& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
100 inline ControlScope& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
101 inline ControlScope& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
102 inline ControlScope& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
103 inline ControlScope& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
105 private:
106
107 Aws::Vector<Aws::String> m_complianceResourceIds;
108 bool m_complianceResourceIdsHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_complianceResourceTypes;
111 bool m_complianceResourceTypesHasBeenSet = false;
112
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Backup
119} // namespace Aws
ControlScope & AddTags(Aws::String &&key, const char *value)
ControlScope & AddTags(const char *key, const char *value)
ControlScope & WithComplianceResourceTypes(Aws::Vector< Aws::String > &&value)
ControlScope & AddComplianceResourceIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetComplianceResourceTypes() const
bool ComplianceResourceTypesHasBeenSet() const
ControlScope & AddComplianceResourceIds(const Aws::String &value)
ControlScope & WithComplianceResourceIds(const Aws::Vector< Aws::String > &value)
void SetComplianceResourceIds(const Aws::Vector< Aws::String > &value)
void SetComplianceResourceTypes(Aws::Vector< Aws::String > &&value)
ControlScope & AddTags(const Aws::String &key, const Aws::String &value)
AWS_BACKUP_API ControlScope & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetComplianceResourceTypes(const Aws::Vector< Aws::String > &value)
ControlScope & AddTags(const Aws::String &key, Aws::String &&value)
AWS_BACKUP_API ControlScope(Aws::Utils::Json::JsonView jsonValue)
bool ComplianceResourceIdsHasBeenSet() const
void SetComplianceResourceIds(Aws::Vector< Aws::String > &&value)
ControlScope & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ControlScope & AddTags(Aws::String &&key, const Aws::String &value)
ControlScope & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetComplianceResourceIds() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ControlScope & AddComplianceResourceIds(const char *value)
ControlScope & AddTags(Aws::String &&key, Aws::String &&value)
ControlScope & AddComplianceResourceTypes(Aws::String &&value)
ControlScope & WithComplianceResourceTypes(const Aws::Vector< Aws::String > &value)
ControlScope & AddComplianceResourceTypes(const char *value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ControlScope & AddComplianceResourceTypes(const Aws::String &value)
ControlScope & AddTags(const char *key, Aws::String &&value)
ControlScope & WithComplianceResourceIds(Aws::Vector< Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue