AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UnprocessedSecurityControl.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/UnprocessedErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API UnprocessedSecurityControl() = default;
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetSecurityControlId() const { return m_securityControlId; }
43 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
44 template <typename SecurityControlIdT = Aws::String>
45 void SetSecurityControlId(SecurityControlIdT&& value) {
46 m_securityControlIdHasBeenSet = true;
47 m_securityControlId = std::forward<SecurityControlIdT>(value);
48 }
49 template <typename SecurityControlIdT = Aws::String>
51 SetSecurityControlId(std::forward<SecurityControlIdT>(value));
52 return *this;
53 }
55
57
62 inline UnprocessedErrorCode GetErrorCode() const { return m_errorCode; }
63 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
65 m_errorCodeHasBeenSet = true;
66 m_errorCode = value;
67 }
69 SetErrorCode(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetErrorReason() const { return m_errorReason; }
79 inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; }
80 template <typename ErrorReasonT = Aws::String>
81 void SetErrorReason(ErrorReasonT&& value) {
82 m_errorReasonHasBeenSet = true;
83 m_errorReason = std::forward<ErrorReasonT>(value);
84 }
85 template <typename ErrorReasonT = Aws::String>
87 SetErrorReason(std::forward<ErrorReasonT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_securityControlId;
93
95
96 Aws::String m_errorReason;
97 bool m_securityControlIdHasBeenSet = false;
98 bool m_errorCodeHasBeenSet = false;
99 bool m_errorReasonHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SecurityHub
104} // 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