AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CheckCapacityRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/wafv2/model/Scope.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wafv2/model/Rule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFV2_API CheckCapacityRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CheckCapacity"; }
33
34 AWS_WAFV2_API Aws::String SerializePayload() const override;
35
37
38
40
49 inline Scope GetScope() const { return m_scope; }
50 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
51 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
52 inline CheckCapacityRequest& WithScope(Scope value) { SetScope(value); return *this;}
54
56
60 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
61 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
62 template<typename RulesT = Aws::Vector<Rule>>
63 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
64 template<typename RulesT = Aws::Vector<Rule>>
65 CheckCapacityRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
66 template<typename RulesT = Rule>
67 CheckCapacityRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
69 private:
70
71 Scope m_scope{Scope::NOT_SET};
72 bool m_scopeHasBeenSet = false;
73
74 Aws::Vector<Rule> m_rules;
75 bool m_rulesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace WAFV2
80} // 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