AWS SDK for C++  1.9.155
AWS SDK for C++
GeneratedPolicyResults.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AccessAnalyzer
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
49  inline const Aws::Vector<GeneratedPolicy>& GetGeneratedPolicies() const{ return m_generatedPolicies; }
50 
57  inline bool GeneratedPoliciesHasBeenSet() const { return m_generatedPoliciesHasBeenSet; }
58 
65  inline void SetGeneratedPolicies(const Aws::Vector<GeneratedPolicy>& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies = value; }
66 
73  inline void SetGeneratedPolicies(Aws::Vector<GeneratedPolicy>&& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies = std::move(value); }
74 
81  inline GeneratedPolicyResults& WithGeneratedPolicies(const Aws::Vector<GeneratedPolicy>& value) { SetGeneratedPolicies(value); return *this;}
82 
89  inline GeneratedPolicyResults& WithGeneratedPolicies(Aws::Vector<GeneratedPolicy>&& value) { SetGeneratedPolicies(std::move(value)); return *this;}
90 
97  inline GeneratedPolicyResults& AddGeneratedPolicies(const GeneratedPolicy& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies.push_back(value); return *this; }
98 
105  inline GeneratedPolicyResults& AddGeneratedPolicies(GeneratedPolicy&& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies.push_back(std::move(value)); return *this; }
106 
107 
112  inline const GeneratedPolicyProperties& GetProperties() const{ return m_properties; }
113 
118  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
119 
124  inline void SetProperties(const GeneratedPolicyProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
125 
130  inline void SetProperties(GeneratedPolicyProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
131 
136  inline GeneratedPolicyResults& WithProperties(const GeneratedPolicyProperties& value) { SetProperties(value); return *this;}
137 
142  inline GeneratedPolicyResults& WithProperties(GeneratedPolicyProperties&& value) { SetProperties(std::move(value)); return *this;}
143 
144  private:
145 
146  Aws::Vector<GeneratedPolicy> m_generatedPolicies;
147  bool m_generatedPoliciesHasBeenSet;
148 
149  GeneratedPolicyProperties m_properties;
150  bool m_propertiesHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace AccessAnalyzer
155 } // namespace Aws
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::AddGeneratedPolicies
GeneratedPolicyResults & AddGeneratedPolicies(const GeneratedPolicy &value)
Definition: GeneratedPolicyResults.h:97
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::GetProperties
const GeneratedPolicyProperties & GetProperties() const
Definition: GeneratedPolicyResults.h:112
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::WithGeneratedPolicies
GeneratedPolicyResults & WithGeneratedPolicies(const Aws::Vector< GeneratedPolicy > &value)
Definition: GeneratedPolicyResults.h:81
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::operator=
GeneratedPolicyResults & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::SetProperties
void SetProperties(const GeneratedPolicyProperties &value)
Definition: GeneratedPolicyResults.h:124
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties
Definition: GeneratedPolicyProperties.h:33
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::WithProperties
GeneratedPolicyResults & WithProperties(const GeneratedPolicyProperties &value)
Definition: GeneratedPolicyResults.h:136
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::GeneratedPolicyResults
GeneratedPolicyResults()
AWSVector.h
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::GeneratedPoliciesHasBeenSet
bool GeneratedPoliciesHasBeenSet() const
Definition: GeneratedPolicyResults.h:57
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::GeneratedPolicyResults
GeneratedPolicyResults(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::GeneratedPolicy
Definition: GeneratedPolicy.h:32
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::SetProperties
void SetProperties(GeneratedPolicyProperties &&value)
Definition: GeneratedPolicyResults.h:130
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::AddGeneratedPolicies
GeneratedPolicyResults & AddGeneratedPolicies(GeneratedPolicy &&value)
Definition: GeneratedPolicyResults.h:105
GeneratedPolicyProperties.h
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::SetGeneratedPolicies
void SetGeneratedPolicies(const Aws::Vector< GeneratedPolicy > &value)
Definition: GeneratedPolicyResults.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::GetGeneratedPolicies
const Aws::Vector< GeneratedPolicy > & GetGeneratedPolicies() const
Definition: GeneratedPolicyResults.h:49
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::SetGeneratedPolicies
void SetGeneratedPolicies(Aws::Vector< GeneratedPolicy > &&value)
Definition: GeneratedPolicyResults.h:73
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::WithProperties
GeneratedPolicyResults & WithProperties(GeneratedPolicyProperties &&value)
Definition: GeneratedPolicyResults.h:142
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: GeneratedPolicyResults.h:118
GeneratedPolicy.h
Aws::AccessAnalyzer::Model::GeneratedPolicyResults
Definition: GeneratedPolicyResults.h:35
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::WithGeneratedPolicies
GeneratedPolicyResults & WithGeneratedPolicies(Aws::Vector< GeneratedPolicy > &&value)
Definition: GeneratedPolicyResults.h:89
Aws::AccessAnalyzer::Model::GeneratedPolicyResults::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const