AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EvaluationResult.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/PolicyEvaluationDecisionType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/OrganizationsDecisionDetail.h>
13#include <aws/iam/model/PermissionsBoundaryDecisionDetail.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/iam/model/Statement.h>
16#include <aws/iam/model/ResourceSpecificResult.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace IAM
29{
30namespace Model
31{
32
41 {
42 public:
43 AWS_IAM_API EvaluationResult();
44 AWS_IAM_API EvaluationResult(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const Aws::String& GetEvalActionName() const{ return m_evalActionName; }
56 inline bool EvalActionNameHasBeenSet() const { return m_evalActionNameHasBeenSet; }
57 inline void SetEvalActionName(const Aws::String& value) { m_evalActionNameHasBeenSet = true; m_evalActionName = value; }
58 inline void SetEvalActionName(Aws::String&& value) { m_evalActionNameHasBeenSet = true; m_evalActionName = std::move(value); }
59 inline void SetEvalActionName(const char* value) { m_evalActionNameHasBeenSet = true; m_evalActionName.assign(value); }
60 inline EvaluationResult& WithEvalActionName(const Aws::String& value) { SetEvalActionName(value); return *this;}
61 inline EvaluationResult& WithEvalActionName(Aws::String&& value) { SetEvalActionName(std::move(value)); return *this;}
62 inline EvaluationResult& WithEvalActionName(const char* value) { SetEvalActionName(value); return *this;}
64
66
69 inline const Aws::String& GetEvalResourceName() const{ return m_evalResourceName; }
70 inline bool EvalResourceNameHasBeenSet() const { return m_evalResourceNameHasBeenSet; }
71 inline void SetEvalResourceName(const Aws::String& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = value; }
72 inline void SetEvalResourceName(Aws::String&& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = std::move(value); }
73 inline void SetEvalResourceName(const char* value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName.assign(value); }
74 inline EvaluationResult& WithEvalResourceName(const Aws::String& value) { SetEvalResourceName(value); return *this;}
75 inline EvaluationResult& WithEvalResourceName(Aws::String&& value) { SetEvalResourceName(std::move(value)); return *this;}
76 inline EvaluationResult& WithEvalResourceName(const char* value) { SetEvalResourceName(value); return *this;}
78
80
83 inline const PolicyEvaluationDecisionType& GetEvalDecision() const{ return m_evalDecision; }
84 inline bool EvalDecisionHasBeenSet() const { return m_evalDecisionHasBeenSet; }
85 inline void SetEvalDecision(const PolicyEvaluationDecisionType& value) { m_evalDecisionHasBeenSet = true; m_evalDecision = value; }
86 inline void SetEvalDecision(PolicyEvaluationDecisionType&& value) { m_evalDecisionHasBeenSet = true; m_evalDecision = std::move(value); }
88 inline EvaluationResult& WithEvalDecision(PolicyEvaluationDecisionType&& value) { SetEvalDecision(std::move(value)); return *this;}
90
92
99 inline const Aws::Vector<Statement>& GetMatchedStatements() const{ return m_matchedStatements; }
100 inline bool MatchedStatementsHasBeenSet() const { return m_matchedStatementsHasBeenSet; }
101 inline void SetMatchedStatements(const Aws::Vector<Statement>& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements = value; }
102 inline void SetMatchedStatements(Aws::Vector<Statement>&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements = std::move(value); }
104 inline EvaluationResult& WithMatchedStatements(Aws::Vector<Statement>&& value) { SetMatchedStatements(std::move(value)); return *this;}
105 inline EvaluationResult& AddMatchedStatements(const Statement& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(value); return *this; }
106 inline EvaluationResult& AddMatchedStatements(Statement&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(std::move(value)); return *this; }
108
110
120 inline const Aws::Vector<Aws::String>& GetMissingContextValues() const{ return m_missingContextValues; }
121 inline bool MissingContextValuesHasBeenSet() const { return m_missingContextValuesHasBeenSet; }
122 inline void SetMissingContextValues(const Aws::Vector<Aws::String>& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = value; }
123 inline void SetMissingContextValues(Aws::Vector<Aws::String>&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = std::move(value); }
126 inline EvaluationResult& AddMissingContextValues(const Aws::String& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
127 inline EvaluationResult& AddMissingContextValues(Aws::String&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(std::move(value)); return *this; }
128 inline EvaluationResult& AddMissingContextValues(const char* value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
130
132
137 inline const OrganizationsDecisionDetail& GetOrganizationsDecisionDetail() const{ return m_organizationsDecisionDetail; }
138 inline bool OrganizationsDecisionDetailHasBeenSet() const { return m_organizationsDecisionDetailHasBeenSet; }
139 inline void SetOrganizationsDecisionDetail(const OrganizationsDecisionDetail& value) { m_organizationsDecisionDetailHasBeenSet = true; m_organizationsDecisionDetail = value; }
140 inline void SetOrganizationsDecisionDetail(OrganizationsDecisionDetail&& value) { m_organizationsDecisionDetailHasBeenSet = true; m_organizationsDecisionDetail = std::move(value); }
144
146
150 inline const PermissionsBoundaryDecisionDetail& GetPermissionsBoundaryDecisionDetail() const{ return m_permissionsBoundaryDecisionDetail; }
151 inline bool PermissionsBoundaryDecisionDetailHasBeenSet() const { return m_permissionsBoundaryDecisionDetailHasBeenSet; }
152 inline void SetPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail& value) { m_permissionsBoundaryDecisionDetailHasBeenSet = true; m_permissionsBoundaryDecisionDetail = value; }
153 inline void SetPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail&& value) { m_permissionsBoundaryDecisionDetailHasBeenSet = true; m_permissionsBoundaryDecisionDetail = std::move(value); }
157
159
176 inline const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& GetEvalDecisionDetails() const{ return m_evalDecisionDetails; }
177 inline bool EvalDecisionDetailsHasBeenSet() const { return m_evalDecisionDetailsHasBeenSet; }
178 inline void SetEvalDecisionDetails(const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails = value; }
179 inline void SetEvalDecisionDetails(Aws::Map<Aws::String, PolicyEvaluationDecisionType>&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails = std::move(value); }
182 inline EvaluationResult& AddEvalDecisionDetails(const Aws::String& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, value); return *this; }
183 inline EvaluationResult& AddEvalDecisionDetails(Aws::String&& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(std::move(key), value); return *this; }
184 inline EvaluationResult& AddEvalDecisionDetails(const Aws::String& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, std::move(value)); return *this; }
185 inline EvaluationResult& AddEvalDecisionDetails(Aws::String&& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(std::move(key), std::move(value)); return *this; }
186 inline EvaluationResult& AddEvalDecisionDetails(const char* key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, std::move(value)); return *this; }
187 inline EvaluationResult& AddEvalDecisionDetails(const char* key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, value); return *this; }
189
191
195 inline const Aws::Vector<ResourceSpecificResult>& GetResourceSpecificResults() const{ return m_resourceSpecificResults; }
196 inline bool ResourceSpecificResultsHasBeenSet() const { return m_resourceSpecificResultsHasBeenSet; }
197 inline void SetResourceSpecificResults(const Aws::Vector<ResourceSpecificResult>& value) { m_resourceSpecificResultsHasBeenSet = true; m_resourceSpecificResults = value; }
198 inline void SetResourceSpecificResults(Aws::Vector<ResourceSpecificResult>&& value) { m_resourceSpecificResultsHasBeenSet = true; m_resourceSpecificResults = std::move(value); }
201 inline EvaluationResult& AddResourceSpecificResults(const ResourceSpecificResult& value) { m_resourceSpecificResultsHasBeenSet = true; m_resourceSpecificResults.push_back(value); return *this; }
202 inline EvaluationResult& AddResourceSpecificResults(ResourceSpecificResult&& value) { m_resourceSpecificResultsHasBeenSet = true; m_resourceSpecificResults.push_back(std::move(value)); return *this; }
204 private:
205
206 Aws::String m_evalActionName;
207 bool m_evalActionNameHasBeenSet = false;
208
209 Aws::String m_evalResourceName;
210 bool m_evalResourceNameHasBeenSet = false;
211
212 PolicyEvaluationDecisionType m_evalDecision;
213 bool m_evalDecisionHasBeenSet = false;
214
215 Aws::Vector<Statement> m_matchedStatements;
216 bool m_matchedStatementsHasBeenSet = false;
217
218 Aws::Vector<Aws::String> m_missingContextValues;
219 bool m_missingContextValuesHasBeenSet = false;
220
221 OrganizationsDecisionDetail m_organizationsDecisionDetail;
222 bool m_organizationsDecisionDetailHasBeenSet = false;
223
224 PermissionsBoundaryDecisionDetail m_permissionsBoundaryDecisionDetail;
225 bool m_permissionsBoundaryDecisionDetailHasBeenSet = false;
226
228 bool m_evalDecisionDetailsHasBeenSet = false;
229
230 Aws::Vector<ResourceSpecificResult> m_resourceSpecificResults;
231 bool m_resourceSpecificResultsHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace IAM
236} // namespace Aws
EvaluationResult & WithResourceSpecificResults(Aws::Vector< ResourceSpecificResult > &&value)
const Aws::Map< Aws::String, PolicyEvaluationDecisionType > & GetEvalDecisionDetails() const
EvaluationResult & WithEvalDecisionDetails(const Aws::Map< Aws::String, PolicyEvaluationDecisionType > &value)
const OrganizationsDecisionDetail & GetOrganizationsDecisionDetail() const
EvaluationResult & AddMissingContextValues(const char *value)
void SetEvalDecisionDetails(Aws::Map< Aws::String, PolicyEvaluationDecisionType > &&value)
EvaluationResult & WithEvalDecision(PolicyEvaluationDecisionType &&value)
void SetOrganizationsDecisionDetail(const OrganizationsDecisionDetail &value)
void SetPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail &value)
EvaluationResult & AddMissingContextValues(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EvaluationResult & AddEvalDecisionDetails(Aws::String &&key, PolicyEvaluationDecisionType &&value)
void SetPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail &&value)
EvaluationResult & WithMissingContextValues(Aws::Vector< Aws::String > &&value)
EvaluationResult & WithEvalResourceName(Aws::String &&value)
void SetMatchedStatements(const Aws::Vector< Statement > &value)
const Aws::Vector< ResourceSpecificResult > & GetResourceSpecificResults() const
EvaluationResult & WithMatchedStatements(const Aws::Vector< Statement > &value)
const Aws::Vector< Statement > & GetMatchedStatements() const
EvaluationResult & WithMissingContextValues(const Aws::Vector< Aws::String > &value)
EvaluationResult & WithEvalActionName(const Aws::String &value)
void SetOrganizationsDecisionDetail(OrganizationsDecisionDetail &&value)
EvaluationResult & WithPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail &&value)
EvaluationResult & AddMatchedStatements(const Statement &value)
bool PermissionsBoundaryDecisionDetailHasBeenSet() const
EvaluationResult & WithEvalDecision(const PolicyEvaluationDecisionType &value)
AWS_IAM_API EvaluationResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EvaluationResult & AddEvalDecisionDetails(const char *key, const PolicyEvaluationDecisionType &value)
EvaluationResult & AddEvalDecisionDetails(const char *key, PolicyEvaluationDecisionType &&value)
void SetEvalResourceName(const char *value)
void SetEvalActionName(const char *value)
void SetEvalActionName(Aws::String &&value)
EvaluationResult & WithOrganizationsDecisionDetail(const OrganizationsDecisionDetail &value)
EvaluationResult & WithEvalActionName(Aws::String &&value)
void SetEvalDecisionDetails(const Aws::Map< Aws::String, PolicyEvaluationDecisionType > &value)
EvaluationResult & WithEvalDecisionDetails(Aws::Map< Aws::String, PolicyEvaluationDecisionType > &&value)
void SetEvalDecision(PolicyEvaluationDecisionType &&value)
const Aws::String & GetEvalResourceName() const
void SetResourceSpecificResults(const Aws::Vector< ResourceSpecificResult > &value)
EvaluationResult & AddMatchedStatements(Statement &&value)
void SetEvalResourceName(Aws::String &&value)
EvaluationResult & AddEvalDecisionDetails(const Aws::String &key, const PolicyEvaluationDecisionType &value)
void SetResourceSpecificResults(Aws::Vector< ResourceSpecificResult > &&value)
const PermissionsBoundaryDecisionDetail & GetPermissionsBoundaryDecisionDetail() const
void SetEvalDecision(const PolicyEvaluationDecisionType &value)
void SetMissingContextValues(const Aws::Vector< Aws::String > &value)
const Aws::String & GetEvalActionName() const
EvaluationResult & WithResourceSpecificResults(const Aws::Vector< ResourceSpecificResult > &value)
EvaluationResult & WithEvalResourceName(const Aws::String &value)
EvaluationResult & AddResourceSpecificResults(ResourceSpecificResult &&value)
EvaluationResult & WithEvalActionName(const char *value)
EvaluationResult & AddEvalDecisionDetails(const Aws::String &key, PolicyEvaluationDecisionType &&value)
void SetMatchedStatements(Aws::Vector< Statement > &&value)
const Aws::Vector< Aws::String > & GetMissingContextValues() const
EvaluationResult & AddResourceSpecificResults(const ResourceSpecificResult &value)
EvaluationResult & WithOrganizationsDecisionDetail(OrganizationsDecisionDetail &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEvalResourceName(const Aws::String &value)
EvaluationResult & WithPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail &value)
void SetMissingContextValues(Aws::Vector< Aws::String > &&value)
EvaluationResult & WithMatchedStatements(Aws::Vector< Statement > &&value)
EvaluationResult & WithEvalResourceName(const char *value)
EvaluationResult & AddEvalDecisionDetails(Aws::String &&key, const PolicyEvaluationDecisionType &value)
void SetEvalActionName(const Aws::String &value)
const PolicyEvaluationDecisionType & GetEvalDecision() const
EvaluationResult & AddMissingContextValues(Aws::String &&value)
AWS_IAM_API EvaluationResult(const Aws::Utils::Xml::XmlNode &xmlNode)
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
std::basic_ostream< char, std::char_traits< char > > OStream