AWS SDK for C++  1.9.103
AWS SDK for C++
CreateRuleGroupResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
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 WAF
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 CreateRuleGroupResult& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
55 
59  inline CreateRuleGroupResult& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
60 
61 
68  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
69 
76  inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
77 
84  inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
85 
92  inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
93 
100  inline CreateRuleGroupResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
101 
108  inline CreateRuleGroupResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
109 
116  inline CreateRuleGroupResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
117 
118  private:
119 
120  RuleGroup m_ruleGroup;
121 
122  Aws::String m_changeToken;
123  };
124 
125 } // namespace Model
126 } // namespace WAF
127 } // namespace Aws
Aws::WAF::Model::CreateRuleGroupResult::SetChangeToken
void SetChangeToken(const char *value)
Definition: CreateRuleGroupResult.h:92
Aws::WAF::Model::CreateRuleGroupResult::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: CreateRuleGroupResult.h:76
Aws::WAF::Model::CreateRuleGroupResult::WithChangeToken
CreateRuleGroupResult & WithChangeToken(const char *value)
Definition: CreateRuleGroupResult.h:116
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WAF::Model::CreateRuleGroupResult::operator=
CreateRuleGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAF::Model::CreateRuleGroupResult::CreateRuleGroupResult
CreateRuleGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAF::Model::RuleGroup
Definition: RuleGroup.h:44
Aws::WAF::Model::CreateRuleGroupResult::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: CreateRuleGroupResult.h:84
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::CreateRuleGroupResult::GetRuleGroup
const RuleGroup & GetRuleGroup() const
Definition: CreateRuleGroupResult.h:39
Aws::WAF::Model::CreateRuleGroupResult::SetRuleGroup
void SetRuleGroup(RuleGroup &&value)
Definition: CreateRuleGroupResult.h:49
RuleGroup.h
Aws::WAF::Model::CreateRuleGroupResult::WithChangeToken
CreateRuleGroupResult & WithChangeToken(const Aws::String &value)
Definition: CreateRuleGroupResult.h:100
Aws::WAF::Model::CreateRuleGroupResult::CreateRuleGroupResult
CreateRuleGroupResult()
AWSString.h
Aws::WAF::Model::CreateRuleGroupResult::WithChangeToken
CreateRuleGroupResult & WithChangeToken(Aws::String &&value)
Definition: CreateRuleGroupResult.h:108
WAF_EXPORTS.h
Aws::WAF::Model::CreateRuleGroupResult
Definition: CreateRuleGroupResult.h:29
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::CreateRuleGroupResult::SetRuleGroup
void SetRuleGroup(const RuleGroup &value)
Definition: CreateRuleGroupResult.h:44
Aws::WAF::Model::CreateRuleGroupResult::WithRuleGroup
CreateRuleGroupResult & WithRuleGroup(const RuleGroup &value)
Definition: CreateRuleGroupResult.h:54
Aws::WAF::Model::CreateRuleGroupResult::WithRuleGroup
CreateRuleGroupResult & WithRuleGroup(RuleGroup &&value)
Definition: CreateRuleGroupResult.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::CreateRuleGroupResult::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: CreateRuleGroupResult.h:68