AWS SDK for C++  1.9.130
AWS SDK for C++
Compliance.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SecurityHub
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
57  inline const ComplianceStatus& GetStatus() const{ return m_status; }
58 
72  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 
87  inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
88 
102  inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
103 
117  inline Compliance& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
118 
132  inline Compliance& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
133 
134 
140  inline const Aws::Vector<Aws::String>& GetRelatedRequirements() const{ return m_relatedRequirements; }
141 
147  inline bool RelatedRequirementsHasBeenSet() const { return m_relatedRequirementsHasBeenSet; }
148 
154  inline void SetRelatedRequirements(const Aws::Vector<Aws::String>& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements = value; }
155 
161  inline void SetRelatedRequirements(Aws::Vector<Aws::String>&& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements = std::move(value); }
162 
168  inline Compliance& WithRelatedRequirements(const Aws::Vector<Aws::String>& value) { SetRelatedRequirements(value); return *this;}
169 
175  inline Compliance& WithRelatedRequirements(Aws::Vector<Aws::String>&& value) { SetRelatedRequirements(std::move(value)); return *this;}
176 
182  inline Compliance& AddRelatedRequirements(const Aws::String& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(value); return *this; }
183 
189  inline Compliance& AddRelatedRequirements(Aws::String&& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(std::move(value)); return *this; }
190 
196  inline Compliance& AddRelatedRequirements(const char* value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(value); return *this; }
197 
198 
206  inline const Aws::Vector<StatusReason>& GetStatusReasons() const{ return m_statusReasons; }
207 
215  inline bool StatusReasonsHasBeenSet() const { return m_statusReasonsHasBeenSet; }
216 
224  inline void SetStatusReasons(const Aws::Vector<StatusReason>& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = value; }
225 
233  inline void SetStatusReasons(Aws::Vector<StatusReason>&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = std::move(value); }
234 
242  inline Compliance& WithStatusReasons(const Aws::Vector<StatusReason>& value) { SetStatusReasons(value); return *this;}
243 
251  inline Compliance& WithStatusReasons(Aws::Vector<StatusReason>&& value) { SetStatusReasons(std::move(value)); return *this;}
252 
260  inline Compliance& AddStatusReasons(const StatusReason& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.push_back(value); return *this; }
261 
269  inline Compliance& AddStatusReasons(StatusReason&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.push_back(std::move(value)); return *this; }
270 
271  private:
272 
273  ComplianceStatus m_status;
274  bool m_statusHasBeenSet;
275 
276  Aws::Vector<Aws::String> m_relatedRequirements;
277  bool m_relatedRequirementsHasBeenSet;
278 
279  Aws::Vector<StatusReason> m_statusReasons;
280  bool m_statusReasonsHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace SecurityHub
285 } // namespace Aws
Aws::SecurityHub::Model::StatusReason
Definition: StatusReason.h:33
Aws::SecurityHub::Model::Compliance::AddStatusReasons
Compliance & AddStatusReasons(const StatusReason &value)
Definition: Compliance.h:260
Aws::SecurityHub::Model::Compliance::SetStatusReasons
void SetStatusReasons(Aws::Vector< StatusReason > &&value)
Definition: Compliance.h:233
Aws::SecurityHub::Model::Compliance::GetRelatedRequirements
const Aws::Vector< Aws::String > & GetRelatedRequirements() const
Definition: Compliance.h:140
Aws::SecurityHub::Model::Compliance::GetStatus
const ComplianceStatus & GetStatus() const
Definition: Compliance.h:57
ComplianceStatus.h
Aws::SecurityHub::Model::Compliance::AddRelatedRequirements
Compliance & AddRelatedRequirements(const Aws::String &value)
Definition: Compliance.h:182
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecurityHub::Model::Compliance::WithRelatedRequirements
Compliance & WithRelatedRequirements(const Aws::Vector< Aws::String > &value)
Definition: Compliance.h:168
Aws::SecurityHub::Model::Compliance::Compliance
Compliance(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::SecurityHub::Model::Compliance::operator=
Compliance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Compliance::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Compliance.h:72
Aws::SecurityHub::Model::Compliance::WithStatus
Compliance & WithStatus(const ComplianceStatus &value)
Definition: Compliance.h:117
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Compliance::AddRelatedRequirements
Compliance & AddRelatedRequirements(const char *value)
Definition: Compliance.h:196
Aws::SecurityHub::Model::Compliance::AddRelatedRequirements
Compliance & AddRelatedRequirements(Aws::String &&value)
Definition: Compliance.h:189
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SecurityHub::Model::Compliance::RelatedRequirementsHasBeenSet
bool RelatedRequirementsHasBeenSet() const
Definition: Compliance.h:147
AWSString.h
Aws::SecurityHub::Model::Compliance::WithStatus
Compliance & WithStatus(ComplianceStatus &&value)
Definition: Compliance.h:132
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::Compliance::AddStatusReasons
Compliance & AddStatusReasons(StatusReason &&value)
Definition: Compliance.h:269
Aws::SecurityHub::Model::Compliance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::ComplianceStatus
ComplianceStatus
Definition: ComplianceStatus.h:17
Aws::SecurityHub::Model::Compliance::WithStatusReasons
Compliance & WithStatusReasons(const Aws::Vector< StatusReason > &value)
Definition: Compliance.h:242
Aws::SecurityHub::Model::Compliance::Compliance
Compliance()
Aws::SecurityHub::Model::Compliance
Definition: Compliance.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::Compliance::SetStatus
void SetStatus(ComplianceStatus &&value)
Definition: Compliance.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::Compliance::SetRelatedRequirements
void SetRelatedRequirements(Aws::Vector< Aws::String > &&value)
Definition: Compliance.h:161
Aws::SecurityHub::Model::Compliance::SetStatus
void SetStatus(const ComplianceStatus &value)
Definition: Compliance.h:87
SecurityHub_EXPORTS.h
StatusReason.h
Aws::SecurityHub::Model::Compliance::WithRelatedRequirements
Compliance & WithRelatedRequirements(Aws::Vector< Aws::String > &&value)
Definition: Compliance.h:175
Aws::SecurityHub::Model::Compliance::SetStatusReasons
void SetStatusReasons(const Aws::Vector< StatusReason > &value)
Definition: Compliance.h:224
Aws::SecurityHub::Model::Compliance::WithStatusReasons
Compliance & WithStatusReasons(Aws::Vector< StatusReason > &&value)
Definition: Compliance.h:251
Aws::SecurityHub::Model::Compliance::GetStatusReasons
const Aws::Vector< StatusReason > & GetStatusReasons() const
Definition: Compliance.h:206
Aws::SecurityHub::Model::Compliance::StatusReasonsHasBeenSet
bool StatusReasonsHasBeenSet() const
Definition: Compliance.h:215
Aws::SecurityHub::Model::Compliance::SetRelatedRequirements
void SetRelatedRequirements(const Aws::Vector< Aws::String > &value)
Definition: Compliance.h:154