AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceSpecificResult.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/core/utils/memory/stl/AWSMap.h>
13#include <aws/iam/model/PermissionsBoundaryDecisionDetail.h>
14#include <aws/iam/model/Statement.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace IAM
27{
28namespace Model
29{
30
39 {
40 public:
44
45 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetEvalResourceName() const{ return m_evalResourceName; }
54 inline bool EvalResourceNameHasBeenSet() const { return m_evalResourceNameHasBeenSet; }
55 inline void SetEvalResourceName(const Aws::String& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = value; }
56 inline void SetEvalResourceName(Aws::String&& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = std::move(value); }
57 inline void SetEvalResourceName(const char* value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName.assign(value); }
58 inline ResourceSpecificResult& WithEvalResourceName(const Aws::String& value) { SetEvalResourceName(value); return *this;}
59 inline ResourceSpecificResult& WithEvalResourceName(Aws::String&& value) { SetEvalResourceName(std::move(value)); return *this;}
60 inline ResourceSpecificResult& WithEvalResourceName(const char* value) { SetEvalResourceName(value); return *this;}
62
64
68 inline const PolicyEvaluationDecisionType& GetEvalResourceDecision() const{ return m_evalResourceDecision; }
69 inline bool EvalResourceDecisionHasBeenSet() const { return m_evalResourceDecisionHasBeenSet; }
70 inline void SetEvalResourceDecision(const PolicyEvaluationDecisionType& value) { m_evalResourceDecisionHasBeenSet = true; m_evalResourceDecision = value; }
71 inline void SetEvalResourceDecision(PolicyEvaluationDecisionType&& value) { m_evalResourceDecisionHasBeenSet = true; m_evalResourceDecision = std::move(value); }
75
77
84 inline const Aws::Vector<Statement>& GetMatchedStatements() const{ return m_matchedStatements; }
85 inline bool MatchedStatementsHasBeenSet() const { return m_matchedStatementsHasBeenSet; }
86 inline void SetMatchedStatements(const Aws::Vector<Statement>& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements = value; }
87 inline void SetMatchedStatements(Aws::Vector<Statement>&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements = std::move(value); }
90 inline ResourceSpecificResult& AddMatchedStatements(const Statement& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(value); return *this; }
91 inline ResourceSpecificResult& AddMatchedStatements(Statement&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(std::move(value)); return *this; }
93
95
107 inline const Aws::Vector<Aws::String>& GetMissingContextValues() const{ return m_missingContextValues; }
108 inline bool MissingContextValuesHasBeenSet() const { return m_missingContextValuesHasBeenSet; }
109 inline void SetMissingContextValues(const Aws::Vector<Aws::String>& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = value; }
110 inline void SetMissingContextValues(Aws::Vector<Aws::String>&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = std::move(value); }
113 inline ResourceSpecificResult& AddMissingContextValues(const Aws::String& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
114 inline ResourceSpecificResult& AddMissingContextValues(Aws::String&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(std::move(value)); return *this; }
115 inline ResourceSpecificResult& AddMissingContextValues(const char* value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
117
119
125 inline const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& GetEvalDecisionDetails() const{ return m_evalDecisionDetails; }
126 inline bool EvalDecisionDetailsHasBeenSet() const { return m_evalDecisionDetailsHasBeenSet; }
127 inline void SetEvalDecisionDetails(const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails = value; }
128 inline void SetEvalDecisionDetails(Aws::Map<Aws::String, PolicyEvaluationDecisionType>&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails = std::move(value); }
131 inline ResourceSpecificResult& AddEvalDecisionDetails(const Aws::String& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, value); return *this; }
132 inline ResourceSpecificResult& AddEvalDecisionDetails(Aws::String&& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(std::move(key), value); return *this; }
133 inline ResourceSpecificResult& AddEvalDecisionDetails(const Aws::String& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, std::move(value)); return *this; }
134 inline ResourceSpecificResult& AddEvalDecisionDetails(Aws::String&& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(std::move(key), std::move(value)); return *this; }
135 inline ResourceSpecificResult& AddEvalDecisionDetails(const char* key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, std::move(value)); return *this; }
136 inline ResourceSpecificResult& AddEvalDecisionDetails(const char* key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails.emplace(key, value); return *this; }
138
140
144 inline const PermissionsBoundaryDecisionDetail& GetPermissionsBoundaryDecisionDetail() const{ return m_permissionsBoundaryDecisionDetail; }
145 inline bool PermissionsBoundaryDecisionDetailHasBeenSet() const { return m_permissionsBoundaryDecisionDetailHasBeenSet; }
146 inline void SetPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail& value) { m_permissionsBoundaryDecisionDetailHasBeenSet = true; m_permissionsBoundaryDecisionDetail = value; }
147 inline void SetPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail&& value) { m_permissionsBoundaryDecisionDetailHasBeenSet = true; m_permissionsBoundaryDecisionDetail = std::move(value); }
151 private:
152
153 Aws::String m_evalResourceName;
154 bool m_evalResourceNameHasBeenSet = false;
155
156 PolicyEvaluationDecisionType m_evalResourceDecision;
157 bool m_evalResourceDecisionHasBeenSet = false;
158
159 Aws::Vector<Statement> m_matchedStatements;
160 bool m_matchedStatementsHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_missingContextValues;
163 bool m_missingContextValuesHasBeenSet = false;
164
166 bool m_evalDecisionDetailsHasBeenSet = false;
167
168 PermissionsBoundaryDecisionDetail m_permissionsBoundaryDecisionDetail;
169 bool m_permissionsBoundaryDecisionDetailHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace IAM
174} // namespace Aws
ResourceSpecificResult & AddMissingContextValues(const Aws::String &value)
ResourceSpecificResult & AddMissingContextValues(const char *value)
const Aws::String & GetEvalResourceName() const
ResourceSpecificResult & AddEvalDecisionDetails(const Aws::String &key, PolicyEvaluationDecisionType &&value)
ResourceSpecificResult & WithEvalResourceDecision(PolicyEvaluationDecisionType &&value)
ResourceSpecificResult & WithEvalResourceName(const Aws::String &value)
ResourceSpecificResult & WithPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail &value)
ResourceSpecificResult & WithPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail &&value)
void SetMatchedStatements(Aws::Vector< Statement > &&value)
void SetMatchedStatements(const Aws::Vector< Statement > &value)
ResourceSpecificResult & WithMatchedStatements(const Aws::Vector< Statement > &value)
AWS_IAM_API ResourceSpecificResult(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceSpecificResult & AddMissingContextValues(Aws::String &&value)
void SetEvalResourceDecision(PolicyEvaluationDecisionType &&value)
ResourceSpecificResult & AddEvalDecisionDetails(const char *key, const PolicyEvaluationDecisionType &value)
ResourceSpecificResult & WithMissingContextValues(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetMissingContextValues() const
ResourceSpecificResult & AddEvalDecisionDetails(const char *key, PolicyEvaluationDecisionType &&value)
void SetEvalDecisionDetails(Aws::Map< Aws::String, PolicyEvaluationDecisionType > &&value)
ResourceSpecificResult & AddMatchedStatements(Statement &&value)
ResourceSpecificResult & WithMatchedStatements(Aws::Vector< Statement > &&value)
void SetMissingContextValues(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, PolicyEvaluationDecisionType > & GetEvalDecisionDetails() const
ResourceSpecificResult & AddMatchedStatements(const Statement &value)
ResourceSpecificResult & AddEvalDecisionDetails(Aws::String &&key, const PolicyEvaluationDecisionType &value)
ResourceSpecificResult & WithEvalResourceDecision(const PolicyEvaluationDecisionType &value)
AWS_IAM_API ResourceSpecificResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceSpecificResult & AddEvalDecisionDetails(const Aws::String &key, const PolicyEvaluationDecisionType &value)
void SetEvalResourceDecision(const PolicyEvaluationDecisionType &value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEvalResourceName(const Aws::String &value)
void SetPermissionsBoundaryDecisionDetail(const PermissionsBoundaryDecisionDetail &value)
void SetMissingContextValues(const Aws::Vector< Aws::String > &value)
ResourceSpecificResult & WithEvalResourceName(Aws::String &&value)
void SetEvalDecisionDetails(const Aws::Map< Aws::String, PolicyEvaluationDecisionType > &value)
const PermissionsBoundaryDecisionDetail & GetPermissionsBoundaryDecisionDetail() const
ResourceSpecificResult & WithEvalDecisionDetails(const Aws::Map< Aws::String, PolicyEvaluationDecisionType > &value)
void SetPermissionsBoundaryDecisionDetail(PermissionsBoundaryDecisionDetail &&value)
const PolicyEvaluationDecisionType & GetEvalResourceDecision() const
ResourceSpecificResult & WithEvalResourceName(const char *value)
ResourceSpecificResult & WithMissingContextValues(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Statement > & GetMatchedStatements() const
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourceSpecificResult & WithEvalDecisionDetails(Aws::Map< Aws::String, PolicyEvaluationDecisionType > &&value)
ResourceSpecificResult & AddEvalDecisionDetails(Aws::String &&key, PolicyEvaluationDecisionType &&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
std::basic_ostream< char, std::char_traits< char > > OStream