AWS SDK for C++  1.9.72
AWS SDK for C++
UpdateSizeConstraintSetRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAF
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateSizeConstraintSet"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetSizeConstraintSetId() const{ return m_sizeConstraintSetId; }
45 
51  inline bool SizeConstraintSetIdHasBeenSet() const { return m_sizeConstraintSetIdHasBeenSet; }
52 
58  inline void SetSizeConstraintSetId(const Aws::String& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = value; }
59 
65  inline void SetSizeConstraintSetId(Aws::String&& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = std::move(value); }
66 
72  inline void SetSizeConstraintSetId(const char* value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId.assign(value); }
73 
79  inline UpdateSizeConstraintSetRequest& WithSizeConstraintSetId(const Aws::String& value) { SetSizeConstraintSetId(value); return *this;}
80 
86  inline UpdateSizeConstraintSetRequest& WithSizeConstraintSetId(Aws::String&& value) { SetSizeConstraintSetId(std::move(value)); return *this;}
87 
93  inline UpdateSizeConstraintSetRequest& WithSizeConstraintSetId(const char* value) { SetSizeConstraintSetId(value); return *this;}
94 
95 
99  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
100 
104  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
105 
109  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
110 
114  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
115 
119  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
120 
124  inline UpdateSizeConstraintSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
125 
129  inline UpdateSizeConstraintSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
130 
134  inline UpdateSizeConstraintSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
135 
136 
147  inline const Aws::Vector<SizeConstraintSetUpdate>& GetUpdates() const{ return m_updates; }
148 
159  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
160 
171  inline void SetUpdates(const Aws::Vector<SizeConstraintSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
172 
183  inline void SetUpdates(Aws::Vector<SizeConstraintSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
184 
195  inline UpdateSizeConstraintSetRequest& WithUpdates(const Aws::Vector<SizeConstraintSetUpdate>& value) { SetUpdates(value); return *this;}
196 
207  inline UpdateSizeConstraintSetRequest& WithUpdates(Aws::Vector<SizeConstraintSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
208 
219  inline UpdateSizeConstraintSetRequest& AddUpdates(const SizeConstraintSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
220 
231  inline UpdateSizeConstraintSetRequest& AddUpdates(SizeConstraintSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
232 
233  private:
234 
235  Aws::String m_sizeConstraintSetId;
236  bool m_sizeConstraintSetIdHasBeenSet;
237 
238  Aws::String m_changeToken;
239  bool m_changeTokenHasBeenSet;
240 
242  bool m_updatesHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace WAF
247 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::UpdateSizeConstraintSetRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateSizeConstraintSetRequest.h:159
Aws::WAF::Model::UpdateSizeConstraintSetRequest::AddUpdates
UpdateSizeConstraintSetRequest & AddUpdates(SizeConstraintSetUpdate &&value)
Definition: UpdateSizeConstraintSetRequest.h:231
Aws::WAF::Model::UpdateSizeConstraintSetRequest::UpdateSizeConstraintSetRequest
UpdateSizeConstraintSetRequest()
Aws::WAF::Model::UpdateSizeConstraintSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateSizeConstraintSetRequest.h:104
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithChangeToken
UpdateSizeConstraintSetRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateSizeConstraintSetRequest.h:129
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetSizeConstraintSetId
void SetSizeConstraintSetId(const Aws::String &value)
Definition: UpdateSizeConstraintSetRequest.h:58
SizeConstraintSetUpdate.h
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithUpdates
UpdateSizeConstraintSetRequest & WithUpdates(const Aws::Vector< SizeConstraintSetUpdate > &value)
Definition: UpdateSizeConstraintSetRequest.h:195
AWSVector.h
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithSizeConstraintSetId
UpdateSizeConstraintSetRequest & WithSizeConstraintSetId(const char *value)
Definition: UpdateSizeConstraintSetRequest.h:93
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetSizeConstraintSetId
void SetSizeConstraintSetId(const char *value)
Definition: UpdateSizeConstraintSetRequest.h:72
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithSizeConstraintSetId
UpdateSizeConstraintSetRequest & WithSizeConstraintSetId(Aws::String &&value)
Definition: UpdateSizeConstraintSetRequest.h:86
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetUpdates
void SetUpdates(Aws::Vector< SizeConstraintSetUpdate > &&value)
Definition: UpdateSizeConstraintSetRequest.h:183
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateSizeConstraintSetRequest.h:109
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateSizeConstraintSetRequest.h:119
Aws::WAF::Model::UpdateSizeConstraintSetRequest
Definition: UpdateSizeConstraintSetRequest.h:24
Aws::WAF::Model::UpdateSizeConstraintSetRequest::AddUpdates
UpdateSizeConstraintSetRequest & AddUpdates(const SizeConstraintSetUpdate &value)
Definition: UpdateSizeConstraintSetRequest.h:219
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithChangeToken
UpdateSizeConstraintSetRequest & WithChangeToken(const char *value)
Definition: UpdateSizeConstraintSetRequest.h:134
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithUpdates
UpdateSizeConstraintSetRequest & WithUpdates(Aws::Vector< SizeConstraintSetUpdate > &&value)
Definition: UpdateSizeConstraintSetRequest.h:207
Aws::WAF::Model::UpdateSizeConstraintSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateSizeConstraintSetRequest.h:99
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetSizeConstraintSetId
void SetSizeConstraintSetId(Aws::String &&value)
Definition: UpdateSizeConstraintSetRequest.h:65
Aws::WAF::Model::UpdateSizeConstraintSetRequest::GetUpdates
const Aws::Vector< SizeConstraintSetUpdate > & GetUpdates() const
Definition: UpdateSizeConstraintSetRequest.h:147
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetUpdates
void SetUpdates(const Aws::Vector< SizeConstraintSetUpdate > &value)
Definition: UpdateSizeConstraintSetRequest.h:171
AWSString.h
Aws::WAF::Model::UpdateSizeConstraintSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSizeConstraintSetRequest.h:32
Aws::WAF::Model::UpdateSizeConstraintSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
WAF_EXPORTS.h
WAFRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SizeConstraintSetIdHasBeenSet
bool SizeConstraintSetIdHasBeenSet() const
Definition: UpdateSizeConstraintSetRequest.h:51
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithSizeConstraintSetId
UpdateSizeConstraintSetRequest & WithSizeConstraintSetId(const Aws::String &value)
Definition: UpdateSizeConstraintSetRequest.h:79
Aws::WAF::Model::UpdateSizeConstraintSetRequest::GetSizeConstraintSetId
const Aws::String & GetSizeConstraintSetId() const
Definition: UpdateSizeConstraintSetRequest.h:44
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateSizeConstraintSetRequest.h:114
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::UpdateSizeConstraintSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::SizeConstraintSetUpdate
Definition: SizeConstraintSetUpdate.h:43
Aws::WAF::Model::UpdateSizeConstraintSetRequest::WithChangeToken
UpdateSizeConstraintSetRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateSizeConstraintSetRequest.h:124