AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleResult.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/Rule.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 WAF
25{
26namespace Model
27{
29 {
30 public:
31 AWS_WAF_API CreateRuleResult();
34
35
37
40 inline const Rule& GetRule() const{ return m_rule; }
41 inline void SetRule(const Rule& value) { m_rule = value; }
42 inline void SetRule(Rule&& value) { m_rule = std::move(value); }
43 inline CreateRuleResult& WithRule(const Rule& value) { SetRule(value); return *this;}
44 inline CreateRuleResult& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
46
48
53 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
54 inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
55 inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
56 inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
57 inline CreateRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
58 inline CreateRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
59 inline CreateRuleResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline CreateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline CreateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline CreateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 Rule m_rule;
75
76 Aws::String m_changeToken;
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace WAF
83} // namespace Aws
CreateRuleResult & WithRequestId(const Aws::String &value)
CreateRuleResult & WithChangeToken(const Aws::String &value)
void SetChangeToken(Aws::String &&value)
CreateRuleResult & WithRequestId(Aws::String &&value)
void SetRequestId(const char *value)
CreateRuleResult & WithRule(const Rule &value)
AWS_WAF_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_WAF_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetChangeToken(const char *value)
const Aws::String & GetChangeToken() const
CreateRuleResult & WithChangeToken(const char *value)
CreateRuleResult & WithChangeToken(Aws::String &&value)
const Aws::String & GetRequestId() const
void SetRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetRule(const Rule &value)
CreateRuleResult & WithRule(Rule &&value)
CreateRuleResult & WithRequestId(const char *value)
void SetChangeToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue