AWS SDK for C++

AWS SDK for C++ Version 1.11.931

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