AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AnalysisRuleCriteria.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer {
22namespace Model {
23
31 public:
32 AWS_ACCESSANALYZER_API AnalysisRuleCriteria() = default;
33 AWS_ACCESSANALYZER_API AnalysisRuleCriteria(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ACCESSANALYZER_API AnalysisRuleCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
46 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
47 template <typename AccountIdsT = Aws::Vector<Aws::String>>
48 void SetAccountIds(AccountIdsT&& value) {
49 m_accountIdsHasBeenSet = true;
50 m_accountIds = std::forward<AccountIdsT>(value);
51 }
52 template <typename AccountIdsT = Aws::Vector<Aws::String>>
53 AnalysisRuleCriteria& WithAccountIds(AccountIdsT&& value) {
54 SetAccountIds(std::forward<AccountIdsT>(value));
55 return *this;
56 }
57 template <typename AccountIdsT = Aws::String>
58 AnalysisRuleCriteria& AddAccountIds(AccountIdsT&& value) {
59 m_accountIdsHasBeenSet = true;
60 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
61 return *this;
62 }
64
66
76 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetResourceTags() const { return m_resourceTags; }
77 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
78 template <typename ResourceTagsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
79 void SetResourceTags(ResourceTagsT&& value) {
80 m_resourceTagsHasBeenSet = true;
81 m_resourceTags = std::forward<ResourceTagsT>(value);
82 }
83 template <typename ResourceTagsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
84 AnalysisRuleCriteria& WithResourceTags(ResourceTagsT&& value) {
85 SetResourceTags(std::forward<ResourceTagsT>(value));
86 return *this;
87 }
88 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
89 AnalysisRuleCriteria& AddResourceTags(ResourceTagsT&& value) {
90 m_resourceTagsHasBeenSet = true;
91 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
92 return *this;
93 }
95 private:
96 Aws::Vector<Aws::String> m_accountIds;
97
99 bool m_accountIdsHasBeenSet = false;
100 bool m_resourceTagsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AccessAnalyzer
105} // namespace Aws
AWS_ACCESSANALYZER_API AnalysisRuleCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AnalysisRuleCriteria & WithAccountIds(AccountIdsT &&value)
AnalysisRuleCriteria & AddAccountIds(AccountIdsT &&value)
AWS_ACCESSANALYZER_API AnalysisRuleCriteria(Aws::Utils::Json::JsonView jsonValue)
AnalysisRuleCriteria & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API AnalysisRuleCriteria()=default
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetResourceTags() const
AnalysisRuleCriteria & WithResourceTags(ResourceTagsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue