AWS SDK for C++  1.9.72
AWS SDK for C++
CreateXssMatchSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
8 #include <aws/waf/WAFRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WAF
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateXssMatchSet"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
73  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 
80  inline CreateXssMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
81 
87  inline CreateXssMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 
94  inline CreateXssMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
95 
96 
100  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
101 
105  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
106 
110  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
111 
115  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
116 
120  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
121 
125  inline CreateXssMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
126 
130  inline CreateXssMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
131 
135  inline CreateXssMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
136 
137  private:
138 
139  Aws::String m_name;
140  bool m_nameHasBeenSet;
141 
142  Aws::String m_changeToken;
143  bool m_changeTokenHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace WAF
148 } // namespace Aws
Aws::WAF::Model::CreateXssMatchSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateXssMatchSetRequest.h:59
Aws::WAF::Model::CreateXssMatchSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateXssMatchSetRequest.h:66
Aws::WAF::Model::CreateXssMatchSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: CreateXssMatchSetRequest.h:110
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::CreateXssMatchSetRequest::WithName
CreateXssMatchSetRequest & WithName(const char *value)
Definition: CreateXssMatchSetRequest.h:94
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::CreateXssMatchSetRequest::SetName
void SetName(const char *value)
Definition: CreateXssMatchSetRequest.h:73
Aws::WAF::Model::CreateXssMatchSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateXssMatchSetRequest.h:33
Aws::WAF::Model::CreateXssMatchSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::CreateXssMatchSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: CreateXssMatchSetRequest.h:120
Aws::WAF::Model::CreateXssMatchSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateXssMatchSetRequest.h:45
Aws::WAF::Model::CreateXssMatchSetRequest::WithName
CreateXssMatchSetRequest & WithName(Aws::String &&value)
Definition: CreateXssMatchSetRequest.h:87
Aws::WAF::Model::CreateXssMatchSetRequest::WithChangeToken
CreateXssMatchSetRequest & WithChangeToken(const Aws::String &value)
Definition: CreateXssMatchSetRequest.h:125
Aws::WAF::Model::CreateXssMatchSetRequest::WithChangeToken
CreateXssMatchSetRequest & WithChangeToken(const char *value)
Definition: CreateXssMatchSetRequest.h:135
Aws::WAF::Model::CreateXssMatchSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateXssMatchSetRequest.h:52
Aws::WAF::Model::CreateXssMatchSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: CreateXssMatchSetRequest.h:115
AWSString.h
WAF_EXPORTS.h
Aws::WAF::Model::CreateXssMatchSetRequest::WithChangeToken
CreateXssMatchSetRequest & WithChangeToken(Aws::String &&value)
Definition: CreateXssMatchSetRequest.h:130
WAFRequest.h
Aws::WAF::Model::CreateXssMatchSetRequest::WithName
CreateXssMatchSetRequest & WithName(const Aws::String &value)
Definition: CreateXssMatchSetRequest.h:80
Aws::WAF::Model::CreateXssMatchSetRequest::CreateXssMatchSetRequest
CreateXssMatchSetRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::CreateXssMatchSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::CreateXssMatchSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: CreateXssMatchSetRequest.h:100
Aws::WAF::Model::CreateXssMatchSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: CreateXssMatchSetRequest.h:105
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::CreateXssMatchSetRequest
Definition: CreateXssMatchSetRequest.h:25