AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicyComplianceDetail.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/fms/model/ComplianceViolator.h>
13#include <aws/fms/model/DependentServiceName.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace FMS
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_FMS_API PolicyComplianceDetail() = default;
46
47
49
52 inline const Aws::String& GetPolicyOwner() const { return m_policyOwner; }
53 inline bool PolicyOwnerHasBeenSet() const { return m_policyOwnerHasBeenSet; }
54 template<typename PolicyOwnerT = Aws::String>
55 void SetPolicyOwner(PolicyOwnerT&& value) { m_policyOwnerHasBeenSet = true; m_policyOwner = std::forward<PolicyOwnerT>(value); }
56 template<typename PolicyOwnerT = Aws::String>
57 PolicyComplianceDetail& WithPolicyOwner(PolicyOwnerT&& value) { SetPolicyOwner(std::forward<PolicyOwnerT>(value)); return *this;}
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) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
68 template<typename PolicyIdT = Aws::String>
69 PolicyComplianceDetail& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetMemberAccount() const { return m_memberAccount; }
77 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
78 template<typename MemberAccountT = Aws::String>
79 void SetMemberAccount(MemberAccountT&& value) { m_memberAccountHasBeenSet = true; m_memberAccount = std::forward<MemberAccountT>(value); }
80 template<typename MemberAccountT = Aws::String>
81 PolicyComplianceDetail& WithMemberAccount(MemberAccountT&& value) { SetMemberAccount(std::forward<MemberAccountT>(value)); return *this;}
83
85
89 inline const Aws::Vector<ComplianceViolator>& GetViolators() const { return m_violators; }
90 inline bool ViolatorsHasBeenSet() const { return m_violatorsHasBeenSet; }
91 template<typename ViolatorsT = Aws::Vector<ComplianceViolator>>
92 void SetViolators(ViolatorsT&& value) { m_violatorsHasBeenSet = true; m_violators = std::forward<ViolatorsT>(value); }
93 template<typename ViolatorsT = Aws::Vector<ComplianceViolator>>
94 PolicyComplianceDetail& WithViolators(ViolatorsT&& value) { SetViolators(std::forward<ViolatorsT>(value)); return *this;}
95 template<typename ViolatorsT = ComplianceViolator>
96 PolicyComplianceDetail& AddViolators(ViolatorsT&& value) { m_violatorsHasBeenSet = true; m_violators.emplace_back(std::forward<ViolatorsT>(value)); return *this; }
98
100
104 inline bool GetEvaluationLimitExceeded() const { return m_evaluationLimitExceeded; }
105 inline bool EvaluationLimitExceededHasBeenSet() const { return m_evaluationLimitExceededHasBeenSet; }
106 inline void SetEvaluationLimitExceeded(bool value) { m_evaluationLimitExceededHasBeenSet = true; m_evaluationLimitExceeded = value; }
109
111
115 inline const Aws::Utils::DateTime& GetExpiredAt() const { return m_expiredAt; }
116 inline bool ExpiredAtHasBeenSet() const { return m_expiredAtHasBeenSet; }
117 template<typename ExpiredAtT = Aws::Utils::DateTime>
118 void SetExpiredAt(ExpiredAtT&& value) { m_expiredAtHasBeenSet = true; m_expiredAt = std::forward<ExpiredAtT>(value); }
119 template<typename ExpiredAtT = Aws::Utils::DateTime>
120 PolicyComplianceDetail& WithExpiredAt(ExpiredAtT&& value) { SetExpiredAt(std::forward<ExpiredAtT>(value)); return *this;}
122
124
128 inline const Aws::Map<DependentServiceName, Aws::String>& GetIssueInfoMap() const { return m_issueInfoMap; }
129 inline bool IssueInfoMapHasBeenSet() const { return m_issueInfoMapHasBeenSet; }
130 template<typename IssueInfoMapT = Aws::Map<DependentServiceName, Aws::String>>
131 void SetIssueInfoMap(IssueInfoMapT&& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap = std::forward<IssueInfoMapT>(value); }
132 template<typename IssueInfoMapT = Aws::Map<DependentServiceName, Aws::String>>
133 PolicyComplianceDetail& WithIssueInfoMap(IssueInfoMapT&& value) { SetIssueInfoMap(std::forward<IssueInfoMapT>(value)); return *this;}
135 m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(key, value); return *this;
136 }
138 private:
139
140 Aws::String m_policyOwner;
141 bool m_policyOwnerHasBeenSet = false;
142
143 Aws::String m_policyId;
144 bool m_policyIdHasBeenSet = false;
145
146 Aws::String m_memberAccount;
147 bool m_memberAccountHasBeenSet = false;
148
150 bool m_violatorsHasBeenSet = false;
151
152 bool m_evaluationLimitExceeded{false};
153 bool m_evaluationLimitExceededHasBeenSet = false;
154
155 Aws::Utils::DateTime m_expiredAt{};
156 bool m_expiredAtHasBeenSet = false;
157
159 bool m_issueInfoMapHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace FMS
164} // 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