AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
51 inline const Scope& GetScope() const{ return m_scope; }
52 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
53 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
54 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
55 inline CheckCapacityRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
56 inline CheckCapacityRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
58
60
64 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
65 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
66 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
67 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
68 inline CheckCapacityRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
69 inline CheckCapacityRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
70 inline CheckCapacityRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
71 inline CheckCapacityRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
73 private:
74
75 Scope m_scope;
76 bool m_scopeHasBeenSet = false;
77
78 Aws::Vector<Rule> m_rules;
79 bool m_rulesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace WAFV2
84} // namespace Aws
const Aws::Vector< Rule > & GetRules() const
CheckCapacityRequest & AddRules(const Rule &value)
void SetRules(Aws::Vector< Rule > &&value)
CheckCapacityRequest & WithScope(const Scope &value)
CheckCapacityRequest & WithRules(const Aws::Vector< Rule > &value)
virtual const char * GetServiceRequestName() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
void SetRules(const Aws::Vector< Rule > &value)
CheckCapacityRequest & WithScope(Scope &&value)
CheckCapacityRequest & WithRules(Aws::Vector< Rule > &&value)
CheckCapacityRequest & AddRules(Rule &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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