AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CheckCapacityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/Rule.h>
11#include <aws/wafv2/model/Scope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAFV2 {
17namespace Model {
18
22 public:
23 AWS_WAFV2_API CheckCapacityRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CheckCapacity"; }
30
31 AWS_WAFV2_API Aws::String SerializePayload() const override;
32
34
36
45 inline Scope GetScope() const { return m_scope; }
46 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
47 inline void SetScope(Scope value) {
48 m_scopeHasBeenSet = true;
49 m_scope = value;
50 }
52 SetScope(value);
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
63 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
64 template <typename RulesT = Aws::Vector<Rule>>
65 void SetRules(RulesT&& value) {
66 m_rulesHasBeenSet = true;
67 m_rules = std::forward<RulesT>(value);
68 }
69 template <typename RulesT = Aws::Vector<Rule>>
71 SetRules(std::forward<RulesT>(value));
72 return *this;
73 }
74 template <typename RulesT = Rule>
75 CheckCapacityRequest& AddRules(RulesT&& value) {
76 m_rulesHasBeenSet = true;
77 m_rules.emplace_back(std::forward<RulesT>(value));
78 return *this;
79 }
81 private:
82 Scope m_scope{Scope::NOT_SET};
83
84 Aws::Vector<Rule> m_rules;
85 bool m_scopeHasBeenSet = false;
86 bool m_rulesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace WAFV2
91} // namespace Aws
const Aws::Vector< Rule > & GetRules() const
virtual const char * GetServiceRequestName() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
CheckCapacityRequest & WithScope(Scope value)
AWS_WAFV2_API CheckCapacityRequest()=default
CheckCapacityRequest & AddRules(RulesT &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CheckCapacityRequest & WithRules(RulesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector