AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
46
47
49
52 inline const Aws::String& GetPolicyOwner() const{ return m_policyOwner; }
53 inline bool PolicyOwnerHasBeenSet() const { return m_policyOwnerHasBeenSet; }
54 inline void SetPolicyOwner(const Aws::String& value) { m_policyOwnerHasBeenSet = true; m_policyOwner = value; }
55 inline void SetPolicyOwner(Aws::String&& value) { m_policyOwnerHasBeenSet = true; m_policyOwner = std::move(value); }
56 inline void SetPolicyOwner(const char* value) { m_policyOwnerHasBeenSet = true; m_policyOwner.assign(value); }
57 inline PolicyComplianceDetail& WithPolicyOwner(const Aws::String& value) { SetPolicyOwner(value); return *this;}
58 inline PolicyComplianceDetail& WithPolicyOwner(Aws::String&& value) { SetPolicyOwner(std::move(value)); return *this;}
59 inline PolicyComplianceDetail& WithPolicyOwner(const char* value) { SetPolicyOwner(value); return *this;}
61
63
66 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
67 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
68 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
69 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
70 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
71 inline PolicyComplianceDetail& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
72 inline PolicyComplianceDetail& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
73 inline PolicyComplianceDetail& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
75
77
80 inline const Aws::String& GetMemberAccount() const{ return m_memberAccount; }
81 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
82 inline void SetMemberAccount(const Aws::String& value) { m_memberAccountHasBeenSet = true; m_memberAccount = value; }
83 inline void SetMemberAccount(Aws::String&& value) { m_memberAccountHasBeenSet = true; m_memberAccount = std::move(value); }
84 inline void SetMemberAccount(const char* value) { m_memberAccountHasBeenSet = true; m_memberAccount.assign(value); }
85 inline PolicyComplianceDetail& WithMemberAccount(const Aws::String& value) { SetMemberAccount(value); return *this;}
86 inline PolicyComplianceDetail& WithMemberAccount(Aws::String&& value) { SetMemberAccount(std::move(value)); return *this;}
87 inline PolicyComplianceDetail& WithMemberAccount(const char* value) { SetMemberAccount(value); return *this;}
89
91
95 inline const Aws::Vector<ComplianceViolator>& GetViolators() const{ return m_violators; }
96 inline bool ViolatorsHasBeenSet() const { return m_violatorsHasBeenSet; }
97 inline void SetViolators(const Aws::Vector<ComplianceViolator>& value) { m_violatorsHasBeenSet = true; m_violators = value; }
98 inline void SetViolators(Aws::Vector<ComplianceViolator>&& value) { m_violatorsHasBeenSet = true; m_violators = std::move(value); }
100 inline PolicyComplianceDetail& WithViolators(Aws::Vector<ComplianceViolator>&& value) { SetViolators(std::move(value)); return *this;}
101 inline PolicyComplianceDetail& AddViolators(const ComplianceViolator& value) { m_violatorsHasBeenSet = true; m_violators.push_back(value); return *this; }
102 inline PolicyComplianceDetail& AddViolators(ComplianceViolator&& value) { m_violatorsHasBeenSet = true; m_violators.push_back(std::move(value)); return *this; }
104
106
110 inline bool GetEvaluationLimitExceeded() const{ return m_evaluationLimitExceeded; }
111 inline bool EvaluationLimitExceededHasBeenSet() const { return m_evaluationLimitExceededHasBeenSet; }
112 inline void SetEvaluationLimitExceeded(bool value) { m_evaluationLimitExceededHasBeenSet = true; m_evaluationLimitExceeded = value; }
115
117
121 inline const Aws::Utils::DateTime& GetExpiredAt() const{ return m_expiredAt; }
122 inline bool ExpiredAtHasBeenSet() const { return m_expiredAtHasBeenSet; }
123 inline void SetExpiredAt(const Aws::Utils::DateTime& value) { m_expiredAtHasBeenSet = true; m_expiredAt = value; }
124 inline void SetExpiredAt(Aws::Utils::DateTime&& value) { m_expiredAtHasBeenSet = true; m_expiredAt = std::move(value); }
125 inline PolicyComplianceDetail& WithExpiredAt(const Aws::Utils::DateTime& value) { SetExpiredAt(value); return *this;}
126 inline PolicyComplianceDetail& WithExpiredAt(Aws::Utils::DateTime&& value) { SetExpiredAt(std::move(value)); return *this;}
128
130
134 inline const Aws::Map<DependentServiceName, Aws::String>& GetIssueInfoMap() const{ return m_issueInfoMap; }
135 inline bool IssueInfoMapHasBeenSet() const { return m_issueInfoMapHasBeenSet; }
136 inline void SetIssueInfoMap(const Aws::Map<DependentServiceName, Aws::String>& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap = value; }
137 inline void SetIssueInfoMap(Aws::Map<DependentServiceName, Aws::String>&& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap = std::move(value); }
140 inline PolicyComplianceDetail& AddIssueInfoMap(const DependentServiceName& key, const Aws::String& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(key, value); return *this; }
141 inline PolicyComplianceDetail& AddIssueInfoMap(DependentServiceName&& key, const Aws::String& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(std::move(key), value); return *this; }
142 inline PolicyComplianceDetail& AddIssueInfoMap(const DependentServiceName& key, Aws::String&& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(key, std::move(value)); return *this; }
143 inline PolicyComplianceDetail& AddIssueInfoMap(DependentServiceName&& key, Aws::String&& value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(std::move(key), std::move(value)); return *this; }
144 inline PolicyComplianceDetail& AddIssueInfoMap(DependentServiceName&& key, const char* value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(std::move(key), value); return *this; }
145 inline PolicyComplianceDetail& AddIssueInfoMap(const DependentServiceName& key, const char* value) { m_issueInfoMapHasBeenSet = true; m_issueInfoMap.emplace(key, value); return *this; }
147 private:
148
149 Aws::String m_policyOwner;
150 bool m_policyOwnerHasBeenSet = false;
151
152 Aws::String m_policyId;
153 bool m_policyIdHasBeenSet = false;
154
155 Aws::String m_memberAccount;
156 bool m_memberAccountHasBeenSet = false;
157
159 bool m_violatorsHasBeenSet = false;
160
161 bool m_evaluationLimitExceeded;
162 bool m_evaluationLimitExceededHasBeenSet = false;
163
164 Aws::Utils::DateTime m_expiredAt;
165 bool m_expiredAtHasBeenSet = false;
166
168 bool m_issueInfoMapHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace FMS
173} // namespace Aws
PolicyComplianceDetail & WithPolicyId(const Aws::String &value)
PolicyComplianceDetail & AddIssueInfoMap(DependentServiceName &&key, Aws::String &&value)
PolicyComplianceDetail & WithMemberAccount(Aws::String &&value)
PolicyComplianceDetail & WithIssueInfoMap(Aws::Map< DependentServiceName, Aws::String > &&value)
PolicyComplianceDetail & WithMemberAccount(const Aws::String &value)
PolicyComplianceDetail & WithPolicyOwner(const char *value)
const Aws::Map< DependentServiceName, Aws::String > & GetIssueInfoMap() const
void SetViolators(const Aws::Vector< ComplianceViolator > &value)
PolicyComplianceDetail & WithPolicyOwner(const Aws::String &value)
PolicyComplianceDetail & WithPolicyId(Aws::String &&value)
AWS_FMS_API PolicyComplianceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyComplianceDetail & AddIssueInfoMap(DependentServiceName &&key, const Aws::String &value)
PolicyComplianceDetail & WithExpiredAt(Aws::Utils::DateTime &&value)
void SetExpiredAt(Aws::Utils::DateTime &&value)
PolicyComplianceDetail & WithEvaluationLimitExceeded(bool value)
PolicyComplianceDetail & AddIssueInfoMap(const DependentServiceName &key, Aws::String &&value)
void SetPolicyId(const Aws::String &value)
void SetIssueInfoMap(Aws::Map< DependentServiceName, Aws::String > &&value)
PolicyComplianceDetail & AddIssueInfoMap(const DependentServiceName &key, const Aws::String &value)
PolicyComplianceDetail & AddViolators(ComplianceViolator &&value)
PolicyComplianceDetail & AddIssueInfoMap(DependentServiceName &&key, const char *value)
void SetPolicyOwner(const Aws::String &value)
PolicyComplianceDetail & WithMemberAccount(const char *value)
PolicyComplianceDetail & WithIssueInfoMap(const Aws::Map< DependentServiceName, Aws::String > &value)
void SetMemberAccount(const Aws::String &value)
const Aws::Vector< ComplianceViolator > & GetViolators() const
PolicyComplianceDetail & AddIssueInfoMap(const DependentServiceName &key, const char *value)
PolicyComplianceDetail & WithPolicyOwner(Aws::String &&value)
void SetViolators(Aws::Vector< ComplianceViolator > &&value)
PolicyComplianceDetail & WithViolators(const Aws::Vector< ComplianceViolator > &value)
AWS_FMS_API PolicyComplianceDetail(Aws::Utils::Json::JsonView jsonValue)
void SetIssueInfoMap(const Aws::Map< DependentServiceName, Aws::String > &value)
PolicyComplianceDetail & WithPolicyId(const char *value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExpiredAt(const Aws::Utils::DateTime &value)
PolicyComplianceDetail & WithExpiredAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetExpiredAt() const
PolicyComplianceDetail & WithViolators(Aws::Vector< ComplianceViolator > &&value)
PolicyComplianceDetail & AddViolators(const ComplianceViolator &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