AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService
23{
24namespace Model
25{
26
37 class Scope
38 {
39 public:
40 AWS_CONFIGSERVICE_API Scope();
41 AWS_CONFIGSERVICE_API Scope(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONFIGSERVICE_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::Vector<Aws::String>& GetComplianceResourceTypes() const{ return m_complianceResourceTypes; }
53 inline bool ComplianceResourceTypesHasBeenSet() const { return m_complianceResourceTypesHasBeenSet; }
54 inline void SetComplianceResourceTypes(const Aws::Vector<Aws::String>& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes = value; }
55 inline void SetComplianceResourceTypes(Aws::Vector<Aws::String>&& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes = std::move(value); }
57 inline Scope& WithComplianceResourceTypes(Aws::Vector<Aws::String>&& value) { SetComplianceResourceTypes(std::move(value)); return *this;}
58 inline Scope& AddComplianceResourceTypes(const Aws::String& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
59 inline Scope& AddComplianceResourceTypes(Aws::String&& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(std::move(value)); return *this; }
60 inline Scope& AddComplianceResourceTypes(const char* value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
62
64
68 inline const Aws::String& GetTagKey() const{ return m_tagKey; }
69 inline bool TagKeyHasBeenSet() const { return m_tagKeyHasBeenSet; }
70 inline void SetTagKey(const Aws::String& value) { m_tagKeyHasBeenSet = true; m_tagKey = value; }
71 inline void SetTagKey(Aws::String&& value) { m_tagKeyHasBeenSet = true; m_tagKey = std::move(value); }
72 inline void SetTagKey(const char* value) { m_tagKeyHasBeenSet = true; m_tagKey.assign(value); }
73 inline Scope& WithTagKey(const Aws::String& value) { SetTagKey(value); return *this;}
74 inline Scope& WithTagKey(Aws::String&& value) { SetTagKey(std::move(value)); return *this;}
75 inline Scope& WithTagKey(const char* value) { SetTagKey(value); return *this;}
77
79
85 inline const Aws::String& GetTagValue() const{ return m_tagValue; }
86 inline bool TagValueHasBeenSet() const { return m_tagValueHasBeenSet; }
87 inline void SetTagValue(const Aws::String& value) { m_tagValueHasBeenSet = true; m_tagValue = value; }
88 inline void SetTagValue(Aws::String&& value) { m_tagValueHasBeenSet = true; m_tagValue = std::move(value); }
89 inline void SetTagValue(const char* value) { m_tagValueHasBeenSet = true; m_tagValue.assign(value); }
90 inline Scope& WithTagValue(const Aws::String& value) { SetTagValue(value); return *this;}
91 inline Scope& WithTagValue(Aws::String&& value) { SetTagValue(std::move(value)); return *this;}
92 inline Scope& WithTagValue(const char* value) { SetTagValue(value); return *this;}
94
96
101 inline const Aws::String& GetComplianceResourceId() const{ return m_complianceResourceId; }
102 inline bool ComplianceResourceIdHasBeenSet() const { return m_complianceResourceIdHasBeenSet; }
103 inline void SetComplianceResourceId(const Aws::String& value) { m_complianceResourceIdHasBeenSet = true; m_complianceResourceId = value; }
104 inline void SetComplianceResourceId(Aws::String&& value) { m_complianceResourceIdHasBeenSet = true; m_complianceResourceId = std::move(value); }
105 inline void SetComplianceResourceId(const char* value) { m_complianceResourceIdHasBeenSet = true; m_complianceResourceId.assign(value); }
106 inline Scope& WithComplianceResourceId(const Aws::String& value) { SetComplianceResourceId(value); return *this;}
107 inline Scope& WithComplianceResourceId(Aws::String&& value) { SetComplianceResourceId(std::move(value)); return *this;}
108 inline Scope& WithComplianceResourceId(const char* value) { SetComplianceResourceId(value); return *this;}
110 private:
111
112 Aws::Vector<Aws::String> m_complianceResourceTypes;
113 bool m_complianceResourceTypesHasBeenSet = false;
114
115 Aws::String m_tagKey;
116 bool m_tagKeyHasBeenSet = false;
117
118 Aws::String m_tagValue;
119 bool m_tagValueHasBeenSet = false;
120
121 Aws::String m_complianceResourceId;
122 bool m_complianceResourceIdHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ConfigService
127} // namespace Aws
void SetComplianceResourceId(const Aws::String &value)
Definition Scope.h:103
Scope & WithComplianceResourceId(Aws::String &&value)
Definition Scope.h:107
Scope & WithComplianceResourceTypes(const Aws::Vector< Aws::String > &value)
Definition Scope.h:56
void SetComplianceResourceId(Aws::String &&value)
Definition Scope.h:104
bool TagKeyHasBeenSet() const
Definition Scope.h:69
AWS_CONFIGSERVICE_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API Scope(Aws::Utils::Json::JsonView jsonValue)
Scope & WithTagValue(const Aws::String &value)
Definition Scope.h:90
const Aws::String & GetTagKey() const
Definition Scope.h:68
bool ComplianceResourceIdHasBeenSet() const
Definition Scope.h:102
void SetTagKey(const Aws::String &value)
Definition Scope.h:70
void SetComplianceResourceTypes(Aws::Vector< Aws::String > &&value)
Definition Scope.h:55
Scope & WithComplianceResourceTypes(Aws::Vector< Aws::String > &&value)
Definition Scope.h:57
const Aws::String & GetComplianceResourceId() const
Definition Scope.h:101
bool ComplianceResourceTypesHasBeenSet() const
Definition Scope.h:53
bool TagValueHasBeenSet() const
Definition Scope.h:86
void SetTagKey(const char *value)
Definition Scope.h:72
Scope & AddComplianceResourceTypes(Aws::String &&value)
Definition Scope.h:59
Scope & WithTagKey(Aws::String &&value)
Definition Scope.h:74
Scope & WithTagValue(const char *value)
Definition Scope.h:92
const Aws::Vector< Aws::String > & GetComplianceResourceTypes() const
Definition Scope.h:52
void SetTagValue(Aws::String &&value)
Definition Scope.h:88
void SetTagKey(Aws::String &&value)
Definition Scope.h:71
void SetTagValue(const char *value)
Definition Scope.h:89
Scope & WithTagKey(const Aws::String &value)
Definition Scope.h:73
AWS_CONFIGSERVICE_API Scope()
const Aws::String & GetTagValue() const
Definition Scope.h:85
void SetComplianceResourceId(const char *value)
Definition Scope.h:105
Scope & WithComplianceResourceId(const char *value)
Definition Scope.h:108
Scope & WithTagKey(const char *value)
Definition Scope.h:75
Scope & AddComplianceResourceTypes(const Aws::String &value)
Definition Scope.h:58
Scope & WithComplianceResourceId(const Aws::String &value)
Definition Scope.h:106
Scope & AddComplianceResourceTypes(const char *value)
Definition Scope.h:60
void SetComplianceResourceTypes(const Aws::Vector< Aws::String > &value)
Definition Scope.h:54
Scope & WithTagValue(Aws::String &&value)
Definition Scope.h:91
void SetTagValue(const Aws::String &value)
Definition Scope.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue