AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
GetManagedRuleSetRequest.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 GetManagedRuleSetRequest() = 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 "GetManagedRuleSet"; }
29
30 AWS_WAFV2_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
64 inline Scope GetScope() const { return m_scope; }
65 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
66 inline void SetScope(Scope value) {
67 m_scopeHasBeenSet = true;
68 m_scope = value;
69 }
71 SetScope(value);
72 return *this;
73 }
75
77
82 inline const Aws::String& GetId() const { return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 template <typename IdT = Aws::String>
85 void SetId(IdT&& value) {
86 m_idHasBeenSet = true;
87 m_id = std::forward<IdT>(value);
88 }
89 template <typename IdT = Aws::String>
91 SetId(std::forward<IdT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Scope m_scope{Scope::NOT_SET};
99
100 Aws::String m_id;
101 bool m_nameHasBeenSet = false;
102 bool m_scopeHasBeenSet = false;
103 bool m_idHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace WAFV2
108} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetManagedRuleSetRequest & WithName(NameT &&value)
AWS_WAFV2_API GetManagedRuleSetRequest()=default
GetManagedRuleSetRequest & WithScope(Scope value)
GetManagedRuleSetRequest & WithId(IdT &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String