AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRateBasedRuleResult.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/RateBasedRule.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace WAFRegional
25{
26namespace Model
27{
29 {
30 public:
31 AWS_WAFREGIONAL_API CreateRateBasedRuleResult();
34
35
37
41 inline const RateBasedRule& GetRule() const{ return m_rule; }
42 inline void SetRule(const RateBasedRule& value) { m_rule = value; }
43 inline void SetRule(RateBasedRule&& value) { m_rule = std::move(value); }
44 inline CreateRateBasedRuleResult& WithRule(const RateBasedRule& value) { SetRule(value); return *this;}
45 inline CreateRateBasedRuleResult& WithRule(RateBasedRule&& value) { SetRule(std::move(value)); return *this;}
47
49
55 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
56 inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
57 inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
58 inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
59 inline CreateRateBasedRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
60 inline CreateRateBasedRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
61 inline CreateRateBasedRuleResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline CreateRateBasedRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline CreateRateBasedRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline CreateRateBasedRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
76 RateBasedRule m_rule;
77
78 Aws::String m_changeToken;
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace WAFRegional
85} // namespace Aws
AWS_WAFREGIONAL_API CreateRateBasedRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRateBasedRuleResult & WithRequestId(Aws::String &&value)
CreateRateBasedRuleResult & WithRequestId(const char *value)
CreateRateBasedRuleResult & WithChangeToken(const Aws::String &value)
CreateRateBasedRuleResult & WithRule(RateBasedRule &&value)
AWS_WAFREGIONAL_API CreateRateBasedRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRateBasedRuleResult & WithChangeToken(const char *value)
CreateRateBasedRuleResult & WithRule(const RateBasedRule &value)
CreateRateBasedRuleResult & WithChangeToken(Aws::String &&value)
CreateRateBasedRuleResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue