AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_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 WAFRegional
22{
23namespace Model
24{
25
41 {
42 public:
43 AWS_WAFREGIONAL_API RuleSummary();
44 AWS_WAFREGIONAL_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WAFREGIONAL_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
59 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
60 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
61 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
62 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
63 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
64 inline RuleSummary& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
65 inline RuleSummary& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
66 inline RuleSummary& WithRuleId(const char* value) { SetRuleId(value); return *this;}
68
70
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline RuleSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline RuleSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline RuleSummary& WithName(const char* value) { SetName(value); return *this;}
83 private:
84
85 Aws::String m_ruleId;
86 bool m_ruleIdHasBeenSet = false;
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace WAFRegional
94} // namespace Aws
RuleSummary & WithRuleId(const Aws::String &value)
Definition RuleSummary.h:64
RuleSummary & WithRuleId(const char *value)
Definition RuleSummary.h:66
AWS_WAFREGIONAL_API RuleSummary()
const Aws::String & GetName() const
Definition RuleSummary.h:74
RuleSummary & WithName(Aws::String &&value)
Definition RuleSummary.h:80
AWS_WAFREGIONAL_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleId(const Aws::String &value)
Definition RuleSummary.h:61
const Aws::String & GetRuleId() const
Definition RuleSummary.h:59
void SetName(const Aws::String &value)
Definition RuleSummary.h:76
RuleSummary & WithName(const Aws::String &value)
Definition RuleSummary.h:79
void SetRuleId(const char *value)
Definition RuleSummary.h:63
void SetName(Aws::String &&value)
Definition RuleSummary.h:77
void SetName(const char *value)
Definition RuleSummary.h:78
AWS_WAFREGIONAL_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithRuleId(Aws::String &&value)
Definition RuleSummary.h:65
void SetRuleId(Aws::String &&value)
Definition RuleSummary.h:62
RuleSummary & WithName(const char *value)
Definition RuleSummary.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue