AWS SDK for C++  1.9.104
AWS SDK for C++
CheckCapacityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/wafv2/model/Rule.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAFV2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
49  inline const Scope& GetScope() const{ return m_scope; }
50 
61  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
62 
73  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
74 
85  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
86 
97  inline CheckCapacityRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
98 
109  inline CheckCapacityRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
110 
111 
116  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
117 
122  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
123 
128  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
129 
134  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
135 
140  inline CheckCapacityRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
141 
146  inline CheckCapacityRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
147 
152  inline CheckCapacityRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
153 
158  inline CheckCapacityRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
159 
160  private:
161 
162  Scope m_scope;
163  bool m_scopeHasBeenSet;
164 
165  Aws::Vector<Rule> m_rules;
166  bool m_rulesHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace WAFV2
171 } // namespace Aws
Aws::WAFV2::Model::Rule
Definition: Rule.h:42
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::CheckCapacityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::CheckCapacityRequest::AddRules
CheckCapacityRequest & AddRules(const Rule &value)
Definition: CheckCapacityRequest.h:152
Aws::WAFV2::Model::CheckCapacityRequest::SetScope
void SetScope(Scope &&value)
Definition: CheckCapacityRequest.h:85
Aws::WAFV2::Model::CheckCapacityRequest::GetScope
const Scope & GetScope() const
Definition: CheckCapacityRequest.h:49
Aws::WAFV2::Model::CheckCapacityRequest::SetScope
void SetScope(const Scope &value)
Definition: CheckCapacityRequest.h:73
Aws::WAFV2::Model::CheckCapacityRequest::WithScope
CheckCapacityRequest & WithScope(Scope &&value)
Definition: CheckCapacityRequest.h:109
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::CheckCapacityRequest::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: CheckCapacityRequest.h:116
AWSVector.h
Rule.h
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CheckCapacityRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::CheckCapacityRequest::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: CheckCapacityRequest.h:128
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::CheckCapacityRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CheckCapacityRequest.h:61
Aws::WAFV2::Model::CheckCapacityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CheckCapacityRequest.h:32
Aws::WAFV2::Model::CheckCapacityRequest
Definition: CheckCapacityRequest.h:24
Aws::WAFV2::Model::CheckCapacityRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: CheckCapacityRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CheckCapacityRequest::SetRules
void SetRules(Aws::Vector< Rule > &&value)
Definition: CheckCapacityRequest.h:134
Aws::WAFV2::Model::CheckCapacityRequest::WithRules
CheckCapacityRequest & WithRules(const Aws::Vector< Rule > &value)
Definition: CheckCapacityRequest.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::CheckCapacityRequest::WithRules
CheckCapacityRequest & WithRules(Aws::Vector< Rule > &&value)
Definition: CheckCapacityRequest.h:146
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::CheckCapacityRequest::WithScope
CheckCapacityRequest & WithScope(const Scope &value)
Definition: CheckCapacityRequest.h:97
Aws::WAFV2::Model::CheckCapacityRequest::CheckCapacityRequest
CheckCapacityRequest()
Aws::WAFV2::Model::CheckCapacityRequest::AddRules
CheckCapacityRequest & AddRules(Rule &&value)
Definition: CheckCapacityRequest.h:158