AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GeneratedPolicyResults.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/GeneratedPolicyProperties.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/accessanalyzer/model/GeneratedPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ACCESSANALYZER_API GeneratedPolicyResults() = default;
38 AWS_ACCESSANALYZER_API GeneratedPolicyResults(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const GeneratedPolicyProperties& GetProperties() const { return m_properties; }
49 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
50 template<typename PropertiesT = GeneratedPolicyProperties>
51 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
52 template<typename PropertiesT = GeneratedPolicyProperties>
53 GeneratedPolicyResults& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
55
57
63 inline const Aws::Vector<GeneratedPolicy>& GetGeneratedPolicies() const { return m_generatedPolicies; }
64 inline bool GeneratedPoliciesHasBeenSet() const { return m_generatedPoliciesHasBeenSet; }
65 template<typename GeneratedPoliciesT = Aws::Vector<GeneratedPolicy>>
66 void SetGeneratedPolicies(GeneratedPoliciesT&& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies = std::forward<GeneratedPoliciesT>(value); }
67 template<typename GeneratedPoliciesT = Aws::Vector<GeneratedPolicy>>
68 GeneratedPolicyResults& WithGeneratedPolicies(GeneratedPoliciesT&& value) { SetGeneratedPolicies(std::forward<GeneratedPoliciesT>(value)); return *this;}
69 template<typename GeneratedPoliciesT = GeneratedPolicy>
70 GeneratedPolicyResults& AddGeneratedPolicies(GeneratedPoliciesT&& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies.emplace_back(std::forward<GeneratedPoliciesT>(value)); return *this; }
72 private:
73
74 GeneratedPolicyProperties m_properties;
75 bool m_propertiesHasBeenSet = false;
76
77 Aws::Vector<GeneratedPolicy> m_generatedPolicies;
78 bool m_generatedPoliciesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace AccessAnalyzer
83} // namespace Aws
GeneratedPolicyResults & WithProperties(PropertiesT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API GeneratedPolicyResults(Aws::Utils::Json::JsonView jsonValue)
GeneratedPolicyResults & AddGeneratedPolicies(GeneratedPoliciesT &&value)
AWS_ACCESSANALYZER_API GeneratedPolicyResults & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API GeneratedPolicyResults()=default
const GeneratedPolicyProperties & GetProperties() const
GeneratedPolicyResults & WithGeneratedPolicies(GeneratedPoliciesT &&value)
const Aws::Vector< GeneratedPolicy > & GetGeneratedPolicies() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue