AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UnprocessedSecurityControl.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/UnprocessedErrorCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API UnprocessedSecurityControl() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetSecurityControlId() const { return m_securityControlId; }
49 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
50 template<typename SecurityControlIdT = Aws::String>
51 void SetSecurityControlId(SecurityControlIdT&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::forward<SecurityControlIdT>(value); }
52 template<typename SecurityControlIdT = Aws::String>
53 UnprocessedSecurityControl& WithSecurityControlId(SecurityControlIdT&& value) { SetSecurityControlId(std::forward<SecurityControlIdT>(value)); return *this;}
55
57
60 inline UnprocessedErrorCode GetErrorCode() const { return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(UnprocessedErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
65
67
70 inline const Aws::String& GetErrorReason() const { return m_errorReason; }
71 inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; }
72 template<typename ErrorReasonT = Aws::String>
73 void SetErrorReason(ErrorReasonT&& value) { m_errorReasonHasBeenSet = true; m_errorReason = std::forward<ErrorReasonT>(value); }
74 template<typename ErrorReasonT = Aws::String>
75 UnprocessedSecurityControl& WithErrorReason(ErrorReasonT&& value) { SetErrorReason(std::forward<ErrorReasonT>(value)); return *this;}
77 private:
78
79 Aws::String m_securityControlId;
80 bool m_securityControlIdHasBeenSet = false;
81
83 bool m_errorCodeHasBeenSet = false;
84
85 Aws::String m_errorReason;
86 bool m_errorReasonHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SecurityHub
91} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API UnprocessedSecurityControl()=default
AWS_SECURITYHUB_API UnprocessedSecurityControl & operator=(Aws::Utils::Json::JsonView jsonValue)
UnprocessedSecurityControl & WithErrorReason(ErrorReasonT &&value)
UnprocessedSecurityControl & WithSecurityControlId(SecurityControlIdT &&value)
UnprocessedSecurityControl & WithErrorCode(UnprocessedErrorCode value)
AWS_SECURITYHUB_API UnprocessedSecurityControl(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue