AWS SDK for C++  1.9.105
AWS SDK for C++
GetRuleGroupResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
40 
44  inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroup = value; }
45 
49  inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroup = std::move(value); }
50 
54  inline GetRuleGroupResult& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
55 
59  inline GetRuleGroupResult& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
60 
61 
72  inline const Aws::String& GetLockToken() const{ return m_lockToken; }
73 
84  inline void SetLockToken(const Aws::String& value) { m_lockToken = value; }
85 
96  inline void SetLockToken(Aws::String&& value) { m_lockToken = std::move(value); }
97 
108  inline void SetLockToken(const char* value) { m_lockToken.assign(value); }
109 
120  inline GetRuleGroupResult& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
121 
132  inline GetRuleGroupResult& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
133 
144  inline GetRuleGroupResult& WithLockToken(const char* value) { SetLockToken(value); return *this;}
145 
146  private:
147 
148  RuleGroup m_ruleGroup;
149 
150  Aws::String m_lockToken;
151  };
152 
153 } // namespace Model
154 } // namespace WAFV2
155 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WAFV2::Model::GetRuleGroupResult::GetRuleGroupResult
GetRuleGroupResult()
Aws::WAFV2::Model::GetRuleGroupResult::SetLockToken
void SetLockToken(const char *value)
Definition: GetRuleGroupResult.h:108
Aws::WAFV2::Model::RuleGroup
Definition: RuleGroup.h:42
Aws::WAFV2::Model::GetRuleGroupResult::WithLockToken
GetRuleGroupResult & WithLockToken(const Aws::String &value)
Definition: GetRuleGroupResult.h:120
Aws::WAFV2::Model::GetRuleGroupResult::SetLockToken
void SetLockToken(Aws::String &&value)
Definition: GetRuleGroupResult.h:96
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GetRuleGroupResult::SetRuleGroup
void SetRuleGroup(RuleGroup &&value)
Definition: GetRuleGroupResult.h:49
Aws::WAFV2::Model::GetRuleGroupResult::SetRuleGroup
void SetRuleGroup(const RuleGroup &value)
Definition: GetRuleGroupResult.h:44
Aws::WAFV2::Model::GetRuleGroupResult::WithRuleGroup
GetRuleGroupResult & WithRuleGroup(RuleGroup &&value)
Definition: GetRuleGroupResult.h:59
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetRuleGroupResult
Definition: GetRuleGroupResult.h:29
Aws::WAFV2::Model::GetRuleGroupResult::GetRuleGroup
const RuleGroup & GetRuleGroup() const
Definition: GetRuleGroupResult.h:39
Aws::WAFV2::Model::GetRuleGroupResult::operator=
GetRuleGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::WAFV2::Model::GetRuleGroupResult::GetRuleGroupResult
GetRuleGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAFV2::Model::GetRuleGroupResult::WithRuleGroup
GetRuleGroupResult & WithRuleGroup(const RuleGroup &value)
Definition: GetRuleGroupResult.h:54
Aws::WAFV2::Model::GetRuleGroupResult::GetLockToken
const Aws::String & GetLockToken() const
Definition: GetRuleGroupResult.h:72
RuleGroup.h
Aws::WAFV2::Model::GetRuleGroupResult::WithLockToken
GetRuleGroupResult & WithLockToken(Aws::String &&value)
Definition: GetRuleGroupResult.h:132
Aws::WAFV2::Model::GetRuleGroupResult::SetLockToken
void SetLockToken(const Aws::String &value)
Definition: GetRuleGroupResult.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::GetRuleGroupResult::WithLockToken
GetRuleGroupResult & WithLockToken(const char *value)
Definition: GetRuleGroupResult.h:144