AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
GetRuleGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/Scope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WAFV2 {
16namespace Model {
17
21 public:
22 AWS_WAFV2_API GetRuleGroupRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetRuleGroup"; }
29
30 AWS_WAFV2_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 GetRuleGroupRequest& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
63 inline Scope GetScope() const { return m_scope; }
64 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
65 inline void SetScope(Scope value) {
66 m_scopeHasBeenSet = true;
67 m_scope = value;
68 }
70 SetScope(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetId() const { return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 template <typename IdT = Aws::String>
84 void SetId(IdT&& value) {
85 m_idHasBeenSet = true;
86 m_id = std::forward<IdT>(value);
87 }
88 template <typename IdT = Aws::String>
90 SetId(std::forward<IdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetARN() const { return m_aRN; }
100 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
101 template <typename ARNT = Aws::String>
102 void SetARN(ARNT&& value) {
103 m_aRNHasBeenSet = true;
104 m_aRN = std::forward<ARNT>(value);
105 }
106 template <typename ARNT = Aws::String>
108 SetARN(std::forward<ARNT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
115 Scope m_scope{Scope::NOT_SET};
116
117 Aws::String m_id;
118
119 Aws::String m_aRN;
120 bool m_nameHasBeenSet = false;
121 bool m_scopeHasBeenSet = false;
122 bool m_idHasBeenSet = false;
123 bool m_aRNHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace WAFV2
128} // namespace Aws
GetRuleGroupRequest & WithId(IdT &&value)
GetRuleGroupRequest & WithScope(Scope value)
AWS_WAFV2_API GetRuleGroupRequest()=default
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRuleGroupRequest & WithARN(ARNT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
GetRuleGroupRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String