AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
RuleGroupSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/waf/WAF_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAF {
20namespace Model {
21
37 public:
38 AWS_WAF_API RuleGroupSummary() = default;
42
44
54 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
55 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
56 template <typename RuleGroupIdT = Aws::String>
57 void SetRuleGroupId(RuleGroupIdT&& value) {
58 m_ruleGroupIdHasBeenSet = true;
59 m_ruleGroupId = std::forward<RuleGroupIdT>(value);
60 }
61 template <typename RuleGroupIdT = Aws::String>
62 RuleGroupSummary& WithRuleGroupId(RuleGroupIdT&& value) {
63 SetRuleGroupId(std::forward<RuleGroupIdT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 RuleGroupSummary& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_ruleGroupId;
88
89 Aws::String m_name;
90 bool m_ruleGroupIdHasBeenSet = false;
91 bool m_nameHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace WAF
96} // namespace Aws
const Aws::String & GetRuleGroupId() const
AWS_WAF_API RuleGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleGroupId(RuleGroupIdT &&value)
AWS_WAF_API RuleGroupSummary(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSummary & WithRuleGroupId(RuleGroupIdT &&value)
RuleGroupSummary & WithName(NameT &&value)
AWS_WAF_API RuleGroupSummary()=default
const Aws::String & GetName() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue