AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UnprocessedAutomationRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
30 public:
31 AWS_SECURITYHUB_API UnprocessedAutomationRule() = default;
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
41 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
42 template <typename RuleArnT = Aws::String>
43 void SetRuleArn(RuleArnT&& value) {
44 m_ruleArnHasBeenSet = true;
45 m_ruleArn = std::forward<RuleArnT>(value);
46 }
47 template <typename RuleArnT = Aws::String>
49 SetRuleArn(std::forward<RuleArnT>(value));
50 return *this;
51 }
53
55
58 inline int GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 inline void SetErrorCode(int value) {
61 m_errorCodeHasBeenSet = true;
62 m_errorCode = value;
63 }
65 SetErrorCode(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
76 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
77 template <typename ErrorMessageT = Aws::String>
78 void SetErrorMessage(ErrorMessageT&& value) {
79 m_errorMessageHasBeenSet = true;
80 m_errorMessage = std::forward<ErrorMessageT>(value);
81 }
82 template <typename ErrorMessageT = Aws::String>
84 SetErrorMessage(std::forward<ErrorMessageT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_ruleArn;
90
91 int m_errorCode{0};
92
93 Aws::String m_errorMessage;
94 bool m_ruleArnHasBeenSet = false;
95 bool m_errorCodeHasBeenSet = false;
96 bool m_errorMessageHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SecurityHub
101} // namespace Aws
AWS_SECURITYHUB_API UnprocessedAutomationRule()=default
AWS_SECURITYHUB_API UnprocessedAutomationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
UnprocessedAutomationRule & WithRuleArn(RuleArnT &&value)
UnprocessedAutomationRule & WithErrorMessage(ErrorMessageT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API UnprocessedAutomationRule(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue