AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UnprocessedAutomationRule.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_SECURITYHUB_API UnprocessedAutomationRule() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
47 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
48 template<typename RuleArnT = Aws::String>
49 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
50 template<typename RuleArnT = Aws::String>
51 UnprocessedAutomationRule& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
53
55
58 inline int GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 inline void SetErrorCode(int value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
61 inline UnprocessedAutomationRule& WithErrorCode(int value) { SetErrorCode(value); return *this;}
63
65
69 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
70 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
71 template<typename ErrorMessageT = Aws::String>
72 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
73 template<typename ErrorMessageT = Aws::String>
74 UnprocessedAutomationRule& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
76 private:
77
78 Aws::String m_ruleArn;
79 bool m_ruleArnHasBeenSet = false;
80
81 int m_errorCode{0};
82 bool m_errorCodeHasBeenSet = false;
83
84 Aws::String m_errorMessage;
85 bool m_errorMessageHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SecurityHub
90} // 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