AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
49 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
50 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
51 inline UnprocessedAutomationRule& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
52 inline UnprocessedAutomationRule& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
53 inline UnprocessedAutomationRule& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
55
57
60 inline int GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(int value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline UnprocessedAutomationRule& WithErrorCode(int value) { SetErrorCode(value); return *this;}
65
67
71 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
72 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
73 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
74 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
75 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
76 inline UnprocessedAutomationRule& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
77 inline UnprocessedAutomationRule& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
78 inline UnprocessedAutomationRule& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
80 private:
81
82 Aws::String m_ruleArn;
83 bool m_ruleArnHasBeenSet = false;
84
85 int m_errorCode;
86 bool m_errorCodeHasBeenSet = false;
87
88 Aws::String m_errorMessage;
89 bool m_errorMessageHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SecurityHub
94} // namespace Aws
AWS_SECURITYHUB_API UnprocessedAutomationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
UnprocessedAutomationRule & WithRuleArn(const char *value)
UnprocessedAutomationRule & WithRuleArn(const Aws::String &value)
UnprocessedAutomationRule & WithErrorMessage(const Aws::String &value)
UnprocessedAutomationRule & WithErrorMessage(const char *value)
UnprocessedAutomationRule & WithRuleArn(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API UnprocessedAutomationRule(Aws::Utils::Json::JsonView jsonValue)
UnprocessedAutomationRule & WithErrorMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue