AWS SDK for C++  0.14.3
AWS SDK for C++
ResourceSpecificResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlNode;
31 } // namespace Xml
32 } // namespace Utils
33 namespace IAM
34 {
35 namespace Model
36 {
37 
44  {
45  public:
48  ResourceSpecificResult& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
56  inline const Aws::String& GetEvalResourceName() const{ return m_evalResourceName; }
57 
61  inline void SetEvalResourceName(const Aws::String& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = value; }
62 
66  inline void SetEvalResourceName(Aws::String&& value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName = value; }
67 
71  inline void SetEvalResourceName(const char* value) { m_evalResourceNameHasBeenSet = true; m_evalResourceName.assign(value); }
72 
76  inline ResourceSpecificResult& WithEvalResourceName(const Aws::String& value) { SetEvalResourceName(value); return *this;}
77 
81  inline ResourceSpecificResult& WithEvalResourceName(Aws::String&& value) { SetEvalResourceName(value); return *this;}
82 
86  inline ResourceSpecificResult& WithEvalResourceName(const char* value) { SetEvalResourceName(value); return *this;}
87 
92  inline const PolicyEvaluationDecisionType& GetEvalResourceDecision() const{ return m_evalResourceDecision; }
93 
98  inline void SetEvalResourceDecision(const PolicyEvaluationDecisionType& value) { m_evalResourceDecisionHasBeenSet = true; m_evalResourceDecision = value; }
99 
104  inline void SetEvalResourceDecision(PolicyEvaluationDecisionType&& value) { m_evalResourceDecisionHasBeenSet = true; m_evalResourceDecision = value; }
105 
110  inline ResourceSpecificResult& WithEvalResourceDecision(const PolicyEvaluationDecisionType& value) { SetEvalResourceDecision(value); return *this;}
111 
116  inline ResourceSpecificResult& WithEvalResourceDecision(PolicyEvaluationDecisionType&& value) { SetEvalResourceDecision(value); return *this;}
117 
125  inline const Aws::Vector<Statement>& GetMatchedStatements() const{ return m_matchedStatements; }
126 
134  inline void SetMatchedStatements(const Aws::Vector<Statement>& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements = value; }
135 
143  inline void SetMatchedStatements(Aws::Vector<Statement>&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements = value; }
144 
152  inline ResourceSpecificResult& WithMatchedStatements(const Aws::Vector<Statement>& value) { SetMatchedStatements(value); return *this;}
153 
161  inline ResourceSpecificResult& WithMatchedStatements(Aws::Vector<Statement>&& value) { SetMatchedStatements(value); return *this;}
162 
170  inline ResourceSpecificResult& AddMatchedStatements(const Statement& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(value); return *this; }
171 
179  inline ResourceSpecificResult& AddMatchedStatements(Statement&& value) { m_matchedStatementsHasBeenSet = true; m_matchedStatements.push_back(value); return *this; }
180 
193  inline const Aws::Vector<Aws::String>& GetMissingContextValues() const{ return m_missingContextValues; }
194 
207  inline void SetMissingContextValues(const Aws::Vector<Aws::String>& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = value; }
208 
221  inline void SetMissingContextValues(Aws::Vector<Aws::String>&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = value; }
222 
235  inline ResourceSpecificResult& WithMissingContextValues(const Aws::Vector<Aws::String>& value) { SetMissingContextValues(value); return *this;}
236 
249  inline ResourceSpecificResult& WithMissingContextValues(Aws::Vector<Aws::String>&& value) { SetMissingContextValues(value); return *this;}
250 
263  inline ResourceSpecificResult& AddMissingContextValues(const Aws::String& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
264 
277  inline ResourceSpecificResult& AddMissingContextValues(Aws::String&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
278 
291  inline ResourceSpecificResult& AddMissingContextValues(const char* value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
292 
300  inline const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& GetEvalDecisionDetails() const{ return m_evalDecisionDetails; }
301 
309  inline void SetEvalDecisionDetails(const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails = value; }
310 
318  inline void SetEvalDecisionDetails(Aws::Map<Aws::String, PolicyEvaluationDecisionType>&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails = value; }
319 
327  inline ResourceSpecificResult& WithEvalDecisionDetails(const Aws::Map<Aws::String, PolicyEvaluationDecisionType>& value) { SetEvalDecisionDetails(value); return *this;}
328 
336  inline ResourceSpecificResult& WithEvalDecisionDetails(Aws::Map<Aws::String, PolicyEvaluationDecisionType>&& value) { SetEvalDecisionDetails(value); return *this;}
337 
345  inline ResourceSpecificResult& AddEvalDecisionDetails(const Aws::String& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails[key] = value; return *this; }
346 
354  inline ResourceSpecificResult& AddEvalDecisionDetails(Aws::String&& key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails[key] = value; return *this; }
355 
363  inline ResourceSpecificResult& AddEvalDecisionDetails(const Aws::String& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails[key] = value; return *this; }
364 
372  inline ResourceSpecificResult& AddEvalDecisionDetails(Aws::String&& key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails[key] = value; return *this; }
373 
381  inline ResourceSpecificResult& AddEvalDecisionDetails(const char* key, PolicyEvaluationDecisionType&& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails[key] = value; return *this; }
382 
390  inline ResourceSpecificResult& AddEvalDecisionDetails(const char* key, const PolicyEvaluationDecisionType& value) { m_evalDecisionDetailsHasBeenSet = true; m_evalDecisionDetails[key] = value; return *this; }
391 
392  private:
393  Aws::String m_evalResourceName;
394  bool m_evalResourceNameHasBeenSet;
395  PolicyEvaluationDecisionType m_evalResourceDecision;
396  bool m_evalResourceDecisionHasBeenSet;
397  Aws::Vector<Statement> m_matchedStatements;
398  bool m_matchedStatementsHasBeenSet;
399  Aws::Vector<Aws::String> m_missingContextValues;
400  bool m_missingContextValuesHasBeenSet;
402  bool m_evalDecisionDetailsHasBeenSet;
403  };
404 
405 } // namespace Model
406 } // namespace IAM
407 } // namespace Aws
ResourceSpecificResult & AddMatchedStatements(Statement &&value)
const Aws::Vector< Statement > & GetMatchedStatements() const
ResourceSpecificResult & WithMissingContextValues(Aws::Vector< Aws::String > &&value)
void SetMatchedStatements(const Aws::Vector< Statement > &value)
void SetEvalResourceDecision(PolicyEvaluationDecisionType &&value)
const Aws::Vector< Aws::String > & GetMissingContextValues() const
ResourceSpecificResult & AddMissingContextValues(const Aws::String &value)
ResourceSpecificResult & WithMatchedStatements(const Aws::Vector< Statement > &value)
ResourceSpecificResult & WithEvalResourceName(Aws::String &&value)
ResourceSpecificResult & AddEvalDecisionDetails(const char *key, const PolicyEvaluationDecisionType &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetEvalResourceName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetEvalResourceDecision(const PolicyEvaluationDecisionType &value)
ResourceSpecificResult & AddEvalDecisionDetails(const Aws::String &key, PolicyEvaluationDecisionType &&value)
void SetMissingContextValues(const Aws::Vector< Aws::String > &value)
void SetMissingContextValues(Aws::Vector< Aws::String > &&value)
ResourceSpecificResult & AddMatchedStatements(const Statement &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ResourceSpecificResult & AddEvalDecisionDetails(Aws::String &&key, PolicyEvaluationDecisionType &&value)
ResourceSpecificResult & WithEvalDecisionDetails(Aws::Map< Aws::String, PolicyEvaluationDecisionType > &&value)
void SetMatchedStatements(Aws::Vector< Statement > &&value)
ResourceSpecificResult & WithEvalResourceName(const Aws::String &value)
const PolicyEvaluationDecisionType & GetEvalResourceDecision() const
const Aws::Map< Aws::String, PolicyEvaluationDecisionType > & GetEvalDecisionDetails() const
ResourceSpecificResult & WithMissingContextValues(const Aws::Vector< Aws::String > &value)
ResourceSpecificResult & WithEvalResourceName(const char *value)
ResourceSpecificResult & AddEvalDecisionDetails(const Aws::String &key, const PolicyEvaluationDecisionType &value)
ResourceSpecificResult & WithEvalResourceDecision(PolicyEvaluationDecisionType &&value)
ResourceSpecificResult & AddEvalDecisionDetails(Aws::String &&key, const PolicyEvaluationDecisionType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResourceSpecificResult & AddEvalDecisionDetails(const char *key, PolicyEvaluationDecisionType &&value)
const Aws::String & GetEvalResourceName() const
ResourceSpecificResult & WithEvalDecisionDetails(const Aws::Map< Aws::String, PolicyEvaluationDecisionType > &value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
void SetEvalDecisionDetails(const Aws::Map< Aws::String, PolicyEvaluationDecisionType > &value)
void SetEvalDecisionDetails(Aws::Map< Aws::String, PolicyEvaluationDecisionType > &&value)
ResourceSpecificResult & WithEvalResourceDecision(const PolicyEvaluationDecisionType &value)
ResourceSpecificResult & AddMissingContextValues(const char *value)
JSON (JavaScript Object Notation).
ResourceSpecificResult & WithMatchedStatements(Aws::Vector< Statement > &&value)
ResourceSpecificResult & AddMissingContextValues(Aws::String &&value)