AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GeneratedPolicyResults.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/GeneratedPolicy.h>
9#include <aws/accessanalyzer/model/GeneratedPolicyProperties.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer {
22namespace Model {
23
31 public:
32 AWS_ACCESSANALYZER_API GeneratedPolicyResults() = default;
33 AWS_ACCESSANALYZER_API GeneratedPolicyResults(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const GeneratedPolicyProperties& GetProperties() const { return m_properties; }
43 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
44 template <typename PropertiesT = GeneratedPolicyProperties>
45 void SetProperties(PropertiesT&& value) {
46 m_propertiesHasBeenSet = true;
47 m_properties = std::forward<PropertiesT>(value);
48 }
49 template <typename PropertiesT = GeneratedPolicyProperties>
50 GeneratedPolicyResults& WithProperties(PropertiesT&& value) {
51 SetProperties(std::forward<PropertiesT>(value));
52 return *this;
53 }
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) {
67 m_generatedPoliciesHasBeenSet = true;
68 m_generatedPolicies = std::forward<GeneratedPoliciesT>(value);
69 }
70 template <typename GeneratedPoliciesT = Aws::Vector<GeneratedPolicy>>
71 GeneratedPolicyResults& WithGeneratedPolicies(GeneratedPoliciesT&& value) {
72 SetGeneratedPolicies(std::forward<GeneratedPoliciesT>(value));
73 return *this;
74 }
75 template <typename GeneratedPoliciesT = GeneratedPolicy>
76 GeneratedPolicyResults& AddGeneratedPolicies(GeneratedPoliciesT&& value) {
77 m_generatedPoliciesHasBeenSet = true;
78 m_generatedPolicies.emplace_back(std::forward<GeneratedPoliciesT>(value));
79 return *this;
80 }
82 private:
83 GeneratedPolicyProperties m_properties;
84
85 Aws::Vector<GeneratedPolicy> m_generatedPolicies;
86 bool m_propertiesHasBeenSet = false;
87 bool m_generatedPoliciesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace AccessAnalyzer
92} // 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