AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExternalAccessDetails.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_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 <aws/accessanalyzer/model/FindingSource.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 AccessAnalyzer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ACCESSANALYZER_API ExternalAccessDetails();
39 AWS_ACCESSANALYZER_API ExternalAccessDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetAction() const{ return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(const Aws::Vector<Aws::String>& value) { m_actionHasBeenSet = true; m_action = value; }
52 inline void SetAction(Aws::Vector<Aws::String>&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
53 inline ExternalAccessDetails& WithAction(const Aws::Vector<Aws::String>& value) { SetAction(value); return *this;}
54 inline ExternalAccessDetails& WithAction(Aws::Vector<Aws::String>&& value) { SetAction(std::move(value)); return *this;}
55 inline ExternalAccessDetails& AddAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
56 inline ExternalAccessDetails& AddAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action.push_back(std::move(value)); return *this; }
57 inline ExternalAccessDetails& AddAction(const char* value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
59
61
65 inline const Aws::Map<Aws::String, Aws::String>& GetCondition() const{ return m_condition; }
66 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
67 inline void SetCondition(const Aws::Map<Aws::String, Aws::String>& value) { m_conditionHasBeenSet = true; m_condition = value; }
68 inline void SetCondition(Aws::Map<Aws::String, Aws::String>&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
70 inline ExternalAccessDetails& WithCondition(Aws::Map<Aws::String, Aws::String>&& value) { SetCondition(std::move(value)); return *this;}
71 inline ExternalAccessDetails& AddCondition(const Aws::String& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
72 inline ExternalAccessDetails& AddCondition(Aws::String&& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
73 inline ExternalAccessDetails& AddCondition(const Aws::String& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
74 inline ExternalAccessDetails& AddCondition(Aws::String&& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), std::move(value)); return *this; }
75 inline ExternalAccessDetails& AddCondition(const char* key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
76 inline ExternalAccessDetails& AddCondition(Aws::String&& key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
77 inline ExternalAccessDetails& AddCondition(const char* key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
79
81
84 inline bool GetIsPublic() const{ return m_isPublic; }
85 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
86 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
87 inline ExternalAccessDetails& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
89
91
95 inline const Aws::Map<Aws::String, Aws::String>& GetPrincipal() const{ return m_principal; }
96 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
97 inline void SetPrincipal(const Aws::Map<Aws::String, Aws::String>& value) { m_principalHasBeenSet = true; m_principal = value; }
98 inline void SetPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
100 inline ExternalAccessDetails& WithPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { SetPrincipal(std::move(value)); return *this;}
101 inline ExternalAccessDetails& AddPrincipal(const Aws::String& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
102 inline ExternalAccessDetails& AddPrincipal(Aws::String&& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
103 inline ExternalAccessDetails& AddPrincipal(const Aws::String& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
104 inline ExternalAccessDetails& AddPrincipal(Aws::String&& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), std::move(value)); return *this; }
105 inline ExternalAccessDetails& AddPrincipal(const char* key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
106 inline ExternalAccessDetails& AddPrincipal(Aws::String&& key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
107 inline ExternalAccessDetails& AddPrincipal(const char* key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
109
111
116 inline const Aws::Vector<FindingSource>& GetSources() const{ return m_sources; }
117 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
118 inline void SetSources(const Aws::Vector<FindingSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
119 inline void SetSources(Aws::Vector<FindingSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
120 inline ExternalAccessDetails& WithSources(const Aws::Vector<FindingSource>& value) { SetSources(value); return *this;}
121 inline ExternalAccessDetails& WithSources(Aws::Vector<FindingSource>&& value) { SetSources(std::move(value)); return *this;}
122 inline ExternalAccessDetails& AddSources(const FindingSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
123 inline ExternalAccessDetails& AddSources(FindingSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
125 private:
126
128 bool m_actionHasBeenSet = false;
129
131 bool m_conditionHasBeenSet = false;
132
133 bool m_isPublic;
134 bool m_isPublicHasBeenSet = false;
135
137 bool m_principalHasBeenSet = false;
138
140 bool m_sourcesHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace AccessAnalyzer
145} // namespace Aws
ExternalAccessDetails & WithAction(Aws::Vector< Aws::String > &&value)
ExternalAccessDetails & AddSources(FindingSource &&value)
const Aws::Vector< FindingSource > & GetSources() const
ExternalAccessDetails & AddCondition(const Aws::String &key, const Aws::String &value)
ExternalAccessDetails & AddCondition(Aws::String &&key, const char *value)
ExternalAccessDetails & AddCondition(const char *key, const char *value)
ExternalAccessDetails & AddPrincipal(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
ExternalAccessDetails & WithSources(const Aws::Vector< FindingSource > &value)
ExternalAccessDetails & AddPrincipal(const Aws::String &key, const Aws::String &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
ExternalAccessDetails & AddAction(const Aws::String &value)
ExternalAccessDetails & AddPrincipal(const char *key, const char *value)
AWS_ACCESSANALYZER_API ExternalAccessDetails(Aws::Utils::Json::JsonView jsonValue)
ExternalAccessDetails & WithAction(const Aws::Vector< Aws::String > &value)
ExternalAccessDetails & AddCondition(const Aws::String &key, Aws::String &&value)
void SetSources(const Aws::Vector< FindingSource > &value)
const Aws::Vector< Aws::String > & GetAction() const
ExternalAccessDetails & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
ExternalAccessDetails & AddCondition(Aws::String &&key, Aws::String &&value)
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
ExternalAccessDetails & AddPrincipal(Aws::String &&key, Aws::String &&value)
ExternalAccessDetails & WithCondition(Aws::Map< Aws::String, Aws::String > &&value)
ExternalAccessDetails & AddCondition(Aws::String &&key, const Aws::String &value)
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
ExternalAccessDetails & AddCondition(const char *key, Aws::String &&value)
ExternalAccessDetails & AddAction(const char *value)
void SetAction(Aws::Vector< Aws::String > &&value)
ExternalAccessDetails & AddSources(const FindingSource &value)
ExternalAccessDetails & AddPrincipal(const char *key, Aws::String &&value)
ExternalAccessDetails & AddAction(Aws::String &&value)
ExternalAccessDetails & WithSources(Aws::Vector< FindingSource > &&value)
AWS_ACCESSANALYZER_API ExternalAccessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(const Aws::Vector< Aws::String > &value)
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
ExternalAccessDetails & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
ExternalAccessDetails & AddPrincipal(const Aws::String &key, Aws::String &&value)
ExternalAccessDetails & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
void SetSources(Aws::Vector< FindingSource > &&value)
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
ExternalAccessDetails & AddPrincipal(Aws::String &&key, const char *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