AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PolicyComplianceDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fms/FMS_EXPORTS.h>
12#include <aws/fms/model/ComplianceViolator.h>
13#include <aws/fms/model/DependentServiceName.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FMS {
25namespace Model {
26
36 public:
37 AWS_FMS_API PolicyComplianceDetail() = default;
41
43
46 inline const Aws::String& GetPolicyOwner() const { return m_policyOwner; }
47 inline bool PolicyOwnerHasBeenSet() const { return m_policyOwnerHasBeenSet; }
48 template <typename PolicyOwnerT = Aws::String>
49 void SetPolicyOwner(PolicyOwnerT&& value) {
50 m_policyOwnerHasBeenSet = true;
51 m_policyOwner = std::forward<PolicyOwnerT>(value);
52 }
53 template <typename PolicyOwnerT = Aws::String>
54 PolicyComplianceDetail& WithPolicyOwner(PolicyOwnerT&& value) {
55 SetPolicyOwner(std::forward<PolicyOwnerT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetPolicyId() const { return m_policyId; }
65 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
66 template <typename PolicyIdT = Aws::String>
67 void SetPolicyId(PolicyIdT&& value) {
68 m_policyIdHasBeenSet = true;
69 m_policyId = std::forward<PolicyIdT>(value);
70 }
71 template <typename PolicyIdT = Aws::String>
73 SetPolicyId(std::forward<PolicyIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetMemberAccount() const { return m_memberAccount; }
83 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
84 template <typename MemberAccountT = Aws::String>
85 void SetMemberAccount(MemberAccountT&& value) {
86 m_memberAccountHasBeenSet = true;
87 m_memberAccount = std::forward<MemberAccountT>(value);
88 }
89 template <typename MemberAccountT = Aws::String>
90 PolicyComplianceDetail& WithMemberAccount(MemberAccountT&& value) {
91 SetMemberAccount(std::forward<MemberAccountT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Vector<ComplianceViolator>& GetViolators() const { return m_violators; }
102 inline bool ViolatorsHasBeenSet() const { return m_violatorsHasBeenSet; }
103 template <typename ViolatorsT = Aws::Vector<ComplianceViolator>>
104 void SetViolators(ViolatorsT&& value) {
105 m_violatorsHasBeenSet = true;
106 m_violators = std::forward<ViolatorsT>(value);
107 }
108 template <typename ViolatorsT = Aws::Vector<ComplianceViolator>>
110 SetViolators(std::forward<ViolatorsT>(value));
111 return *this;
112 }
113 template <typename ViolatorsT = ComplianceViolator>
115 m_violatorsHasBeenSet = true;
116 m_violators.emplace_back(std::forward<ViolatorsT>(value));
117 return *this;
118 }
120
122
126 inline bool GetEvaluationLimitExceeded() const { return m_evaluationLimitExceeded; }
127 inline bool EvaluationLimitExceededHasBeenSet() const { return m_evaluationLimitExceededHasBeenSet; }
128 inline void SetEvaluationLimitExceeded(bool value) {
129 m_evaluationLimitExceededHasBeenSet = true;
130 m_evaluationLimitExceeded = value;
131 }
134 return *this;
135 }
137
139
143 inline const Aws::Utils::DateTime& GetExpiredAt() const { return m_expiredAt; }
144 inline bool ExpiredAtHasBeenSet() const { return m_expiredAtHasBeenSet; }
145 template <typename ExpiredAtT = Aws::Utils::DateTime>
146 void SetExpiredAt(ExpiredAtT&& value) {
147 m_expiredAtHasBeenSet = true;
148 m_expiredAt = std::forward<ExpiredAtT>(value);
149 }
150 template <typename ExpiredAtT = Aws::Utils::DateTime>
152 SetExpiredAt(std::forward<ExpiredAtT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Map<DependentServiceName, Aws::String>& GetIssueInfoMap() const { return m_issueInfoMap; }
163 inline bool IssueInfoMapHasBeenSet() const { return m_issueInfoMapHasBeenSet; }
164 template <typename IssueInfoMapT = Aws::Map<DependentServiceName, Aws::String>>
165 void SetIssueInfoMap(IssueInfoMapT&& value) {
166 m_issueInfoMapHasBeenSet = true;
167 m_issueInfoMap = std::forward<IssueInfoMapT>(value);
168 }
169 template <typename IssueInfoMapT = Aws::Map<DependentServiceName, Aws::String>>
170 PolicyComplianceDetail& WithIssueInfoMap(IssueInfoMapT&& value) {
171 SetIssueInfoMap(std::forward<IssueInfoMapT>(value));
172 return *this;
173 }
175 m_issueInfoMapHasBeenSet = true;
176 m_issueInfoMap.emplace(key, value);
177 return *this;
178 }
180 private:
181 Aws::String m_policyOwner;
182
183 Aws::String m_policyId;
184
185 Aws::String m_memberAccount;
186
188
189 bool m_evaluationLimitExceeded{false};
190
191 Aws::Utils::DateTime m_expiredAt{};
192
194 bool m_policyOwnerHasBeenSet = false;
195 bool m_policyIdHasBeenSet = false;
196 bool m_memberAccountHasBeenSet = false;
197 bool m_violatorsHasBeenSet = false;
198 bool m_evaluationLimitExceededHasBeenSet = false;
199 bool m_expiredAtHasBeenSet = false;
200 bool m_issueInfoMapHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace FMS
205} // namespace Aws
PolicyComplianceDetail & WithExpiredAt(ExpiredAtT &&value)
AWS_FMS_API PolicyComplianceDetail()=default
PolicyComplianceDetail & WithViolators(ViolatorsT &&value)
const Aws::Map< DependentServiceName, Aws::String > & GetIssueInfoMap() const
AWS_FMS_API PolicyComplianceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyComplianceDetail & WithPolicyOwner(PolicyOwnerT &&value)
PolicyComplianceDetail & WithEvaluationLimitExceeded(bool value)
PolicyComplianceDetail & AddViolators(ViolatorsT &&value)
const Aws::Vector< ComplianceViolator > & GetViolators() const
void SetMemberAccount(MemberAccountT &&value)
PolicyComplianceDetail & WithPolicyId(PolicyIdT &&value)
AWS_FMS_API PolicyComplianceDetail(Aws::Utils::Json::JsonView jsonValue)
PolicyComplianceDetail & WithIssueInfoMap(IssueInfoMapT &&value)
PolicyComplianceDetail & AddIssueInfoMap(DependentServiceName key, Aws::String value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetExpiredAt() const
PolicyComplianceDetail & WithMemberAccount(MemberAccountT &&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
Aws::Utils::Json::JsonValue JsonValue