AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Compliance.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/ComplianceStatus.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/securityhub/model/StatusReason.h>
12#include <aws/securityhub/model/AssociatedStandard.h>
13#include <aws/securityhub/model/SecurityControlParameter.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 SecurityHub
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_SECURITYHUB_API Compliance();
44 AWS_SECURITYHUB_API Compliance(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYHUB_API Compliance& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
63 inline const ComplianceStatus& GetStatus() const{ return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
66 inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
67 inline Compliance& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
68 inline Compliance& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
70
72
77 inline const Aws::Vector<Aws::String>& GetRelatedRequirements() const{ return m_relatedRequirements; }
78 inline bool RelatedRequirementsHasBeenSet() const { return m_relatedRequirementsHasBeenSet; }
79 inline void SetRelatedRequirements(const Aws::Vector<Aws::String>& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements = value; }
80 inline void SetRelatedRequirements(Aws::Vector<Aws::String>&& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements = std::move(value); }
82 inline Compliance& WithRelatedRequirements(Aws::Vector<Aws::String>&& value) { SetRelatedRequirements(std::move(value)); return *this;}
83 inline Compliance& AddRelatedRequirements(const Aws::String& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(value); return *this; }
84 inline Compliance& AddRelatedRequirements(Aws::String&& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(std::move(value)); return *this; }
85 inline Compliance& AddRelatedRequirements(const char* value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(value); return *this; }
87
89
93 inline const Aws::Vector<StatusReason>& GetStatusReasons() const{ return m_statusReasons; }
94 inline bool StatusReasonsHasBeenSet() const { return m_statusReasonsHasBeenSet; }
95 inline void SetStatusReasons(const Aws::Vector<StatusReason>& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = value; }
96 inline void SetStatusReasons(Aws::Vector<StatusReason>&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = std::move(value); }
97 inline Compliance& WithStatusReasons(const Aws::Vector<StatusReason>& value) { SetStatusReasons(value); return *this;}
98 inline Compliance& WithStatusReasons(Aws::Vector<StatusReason>&& value) { SetStatusReasons(std::move(value)); return *this;}
99 inline Compliance& AddStatusReasons(const StatusReason& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.push_back(value); return *this; }
100 inline Compliance& AddStatusReasons(StatusReason&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.push_back(std::move(value)); return *this; }
102
104
109 inline const Aws::String& GetSecurityControlId() const{ return m_securityControlId; }
110 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
111 inline void SetSecurityControlId(const Aws::String& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = value; }
112 inline void SetSecurityControlId(Aws::String&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::move(value); }
113 inline void SetSecurityControlId(const char* value) { m_securityControlIdHasBeenSet = true; m_securityControlId.assign(value); }
114 inline Compliance& WithSecurityControlId(const Aws::String& value) { SetSecurityControlId(value); return *this;}
115 inline Compliance& WithSecurityControlId(Aws::String&& value) { SetSecurityControlId(std::move(value)); return *this;}
116 inline Compliance& WithSecurityControlId(const char* value) { SetSecurityControlId(value); return *this;}
118
120
124 inline const Aws::Vector<AssociatedStandard>& GetAssociatedStandards() const{ return m_associatedStandards; }
125 inline bool AssociatedStandardsHasBeenSet() const { return m_associatedStandardsHasBeenSet; }
126 inline void SetAssociatedStandards(const Aws::Vector<AssociatedStandard>& value) { m_associatedStandardsHasBeenSet = true; m_associatedStandards = value; }
127 inline void SetAssociatedStandards(Aws::Vector<AssociatedStandard>&& value) { m_associatedStandardsHasBeenSet = true; m_associatedStandards = std::move(value); }
130 inline Compliance& AddAssociatedStandards(const AssociatedStandard& value) { m_associatedStandardsHasBeenSet = true; m_associatedStandards.push_back(value); return *this; }
131 inline Compliance& AddAssociatedStandards(AssociatedStandard&& value) { m_associatedStandardsHasBeenSet = true; m_associatedStandards.push_back(std::move(value)); return *this; }
133
135
139 inline const Aws::Vector<SecurityControlParameter>& GetSecurityControlParameters() const{ return m_securityControlParameters; }
140 inline bool SecurityControlParametersHasBeenSet() const { return m_securityControlParametersHasBeenSet; }
141 inline void SetSecurityControlParameters(const Aws::Vector<SecurityControlParameter>& value) { m_securityControlParametersHasBeenSet = true; m_securityControlParameters = value; }
142 inline void SetSecurityControlParameters(Aws::Vector<SecurityControlParameter>&& value) { m_securityControlParametersHasBeenSet = true; m_securityControlParameters = std::move(value); }
145 inline Compliance& AddSecurityControlParameters(const SecurityControlParameter& value) { m_securityControlParametersHasBeenSet = true; m_securityControlParameters.push_back(value); return *this; }
146 inline Compliance& AddSecurityControlParameters(SecurityControlParameter&& value) { m_securityControlParametersHasBeenSet = true; m_securityControlParameters.push_back(std::move(value)); return *this; }
148 private:
149
150 ComplianceStatus m_status;
151 bool m_statusHasBeenSet = false;
152
153 Aws::Vector<Aws::String> m_relatedRequirements;
154 bool m_relatedRequirementsHasBeenSet = false;
155
156 Aws::Vector<StatusReason> m_statusReasons;
157 bool m_statusReasonsHasBeenSet = false;
158
159 Aws::String m_securityControlId;
160 bool m_securityControlIdHasBeenSet = false;
161
162 Aws::Vector<AssociatedStandard> m_associatedStandards;
163 bool m_associatedStandardsHasBeenSet = false;
164
165 Aws::Vector<SecurityControlParameter> m_securityControlParameters;
166 bool m_securityControlParametersHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace SecurityHub
171} // namespace Aws
Compliance & WithSecurityControlId(Aws::String &&value)
Definition Compliance.h:115
Compliance & AddRelatedRequirements(const char *value)
Definition Compliance.h:85
void SetSecurityControlParameters(const Aws::Vector< SecurityControlParameter > &value)
Definition Compliance.h:141
void SetAssociatedStandards(const Aws::Vector< AssociatedStandard > &value)
Definition Compliance.h:126
void SetStatusReasons(const Aws::Vector< StatusReason > &value)
Definition Compliance.h:95
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityControlParameters(Aws::Vector< SecurityControlParameter > &&value)
Definition Compliance.h:142
Compliance & AddAssociatedStandards(const AssociatedStandard &value)
Definition Compliance.h:130
Compliance & WithSecurityControlParameters(const Aws::Vector< SecurityControlParameter > &value)
Definition Compliance.h:143
Compliance & AddStatusReasons(StatusReason &&value)
Definition Compliance.h:100
Compliance & WithRelatedRequirements(Aws::Vector< Aws::String > &&value)
Definition Compliance.h:82
void SetStatus(ComplianceStatus &&value)
Definition Compliance.h:66
const Aws::Vector< Aws::String > & GetRelatedRequirements() const
Definition Compliance.h:77
void SetStatusReasons(Aws::Vector< StatusReason > &&value)
Definition Compliance.h:96
Compliance & AddStatusReasons(const StatusReason &value)
Definition Compliance.h:99
Compliance & WithStatusReasons(Aws::Vector< StatusReason > &&value)
Definition Compliance.h:98
Compliance & AddSecurityControlParameters(SecurityControlParameter &&value)
Definition Compliance.h:146
bool SecurityControlParametersHasBeenSet() const
Definition Compliance.h:140
void SetSecurityControlId(const char *value)
Definition Compliance.h:113
Compliance & WithSecurityControlId(const char *value)
Definition Compliance.h:116
const Aws::String & GetSecurityControlId() const
Definition Compliance.h:109
void SetSecurityControlId(const Aws::String &value)
Definition Compliance.h:111
AWS_SECURITYHUB_API Compliance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const ComplianceStatus &value)
Definition Compliance.h:65
Compliance & AddRelatedRequirements(const Aws::String &value)
Definition Compliance.h:83
AWS_SECURITYHUB_API Compliance(Aws::Utils::Json::JsonView jsonValue)
Compliance & AddSecurityControlParameters(const SecurityControlParameter &value)
Definition Compliance.h:145
Compliance & WithAssociatedStandards(const Aws::Vector< AssociatedStandard > &value)
Definition Compliance.h:128
void SetRelatedRequirements(Aws::Vector< Aws::String > &&value)
Definition Compliance.h:80
Compliance & WithSecurityControlId(const Aws::String &value)
Definition Compliance.h:114
Compliance & AddRelatedRequirements(Aws::String &&value)
Definition Compliance.h:84
const Aws::Vector< StatusReason > & GetStatusReasons() const
Definition Compliance.h:93
Compliance & WithStatus(ComplianceStatus &&value)
Definition Compliance.h:68
void SetAssociatedStandards(Aws::Vector< AssociatedStandard > &&value)
Definition Compliance.h:127
Compliance & WithStatusReasons(const Aws::Vector< StatusReason > &value)
Definition Compliance.h:97
void SetSecurityControlId(Aws::String &&value)
Definition Compliance.h:112
Compliance & WithRelatedRequirements(const Aws::Vector< Aws::String > &value)
Definition Compliance.h:81
const Aws::Vector< AssociatedStandard > & GetAssociatedStandards() const
Definition Compliance.h:124
Compliance & WithSecurityControlParameters(Aws::Vector< SecurityControlParameter > &&value)
Definition Compliance.h:144
void SetRelatedRequirements(const Aws::Vector< Aws::String > &value)
Definition Compliance.h:79
const Aws::Vector< SecurityControlParameter > & GetSecurityControlParameters() const
Definition Compliance.h:139
Compliance & WithAssociatedStandards(Aws::Vector< AssociatedStandard > &&value)
Definition Compliance.h:129
Compliance & AddAssociatedStandards(AssociatedStandard &&value)
Definition Compliance.h:131
AWS_SECURITYHUB_API Compliance()
Compliance & WithStatus(const ComplianceStatus &value)
Definition Compliance.h:67
const ComplianceStatus & GetStatus() const
Definition Compliance.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue