AWS SDK for C++  1.9.40
AWS SDK for C++
AssociateWebACLRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WAFV2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AssociateWebACL"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetWebACLArn() const{ return m_webACLArn; }
42 
47  inline bool WebACLArnHasBeenSet() const { return m_webACLArnHasBeenSet; }
48 
53  inline void SetWebACLArn(const Aws::String& value) { m_webACLArnHasBeenSet = true; m_webACLArn = value; }
54 
59  inline void SetWebACLArn(Aws::String&& value) { m_webACLArnHasBeenSet = true; m_webACLArn = std::move(value); }
60 
65  inline void SetWebACLArn(const char* value) { m_webACLArnHasBeenSet = true; m_webACLArn.assign(value); }
66 
71  inline AssociateWebACLRequest& WithWebACLArn(const Aws::String& value) { SetWebACLArn(value); return *this;}
72 
77  inline AssociateWebACLRequest& WithWebACLArn(Aws::String&& value) { SetWebACLArn(std::move(value)); return *this;}
78 
83  inline AssociateWebACLRequest& WithWebACLArn(const char* value) { SetWebACLArn(value); return *this;}
84 
85 
97  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
98 
110  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
111 
123  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
124 
136  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
137 
149  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
150 
162  inline AssociateWebACLRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
163 
175  inline AssociateWebACLRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
176 
188  inline AssociateWebACLRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
189 
190  private:
191 
192  Aws::String m_webACLArn;
193  bool m_webACLArnHasBeenSet;
194 
195  Aws::String m_resourceArn;
196  bool m_resourceArnHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace WAFV2
201 } // namespace Aws
Aws::WAFV2::Model::AssociateWebACLRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: AssociateWebACLRequest.h:110
WAFV2Request.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::AssociateWebACLRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: AssociateWebACLRequest.h:136
Aws::WAFV2::Model::AssociateWebACLRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::AssociateWebACLRequest::SetWebACLArn
void SetWebACLArn(const Aws::String &value)
Definition: AssociateWebACLRequest.h:53
Aws::WAFV2::Model::AssociateWebACLRequest::WithResourceArn
AssociateWebACLRequest & WithResourceArn(Aws::String &&value)
Definition: AssociateWebACLRequest.h:175
Aws::WAFV2::Model::AssociateWebACLRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: AssociateWebACLRequest.h:123
Aws::WAFV2::Model::AssociateWebACLRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateWebACLRequest.h:30
Aws::WAFV2::Model::AssociateWebACLRequest
Definition: AssociateWebACLRequest.h:22
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::AssociateWebACLRequest::GetWebACLArn
const Aws::String & GetWebACLArn() const
Definition: AssociateWebACLRequest.h:41
WAFV2_EXPORTS.h
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::AssociateWebACLRequest::WebACLArnHasBeenSet
bool WebACLArnHasBeenSet() const
Definition: AssociateWebACLRequest.h:47
AWSString.h
Aws::WAFV2::Model::AssociateWebACLRequest::WithResourceArn
AssociateWebACLRequest & WithResourceArn(const Aws::String &value)
Definition: AssociateWebACLRequest.h:162
Aws::WAFV2::Model::AssociateWebACLRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::AssociateWebACLRequest::SetWebACLArn
void SetWebACLArn(const char *value)
Definition: AssociateWebACLRequest.h:65
Aws::WAFV2::Model::AssociateWebACLRequest::AssociateWebACLRequest
AssociateWebACLRequest()
Aws::WAFV2::Model::AssociateWebACLRequest::WithWebACLArn
AssociateWebACLRequest & WithWebACLArn(const char *value)
Definition: AssociateWebACLRequest.h:83
Aws::WAFV2::Model::AssociateWebACLRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: AssociateWebACLRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::AssociateWebACLRequest::WithResourceArn
AssociateWebACLRequest & WithResourceArn(const char *value)
Definition: AssociateWebACLRequest.h:188
Aws::WAFV2::Model::AssociateWebACLRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: AssociateWebACLRequest.h:149
Aws::WAFV2::Model::AssociateWebACLRequest::WithWebACLArn
AssociateWebACLRequest & WithWebACLArn(const Aws::String &value)
Definition: AssociateWebACLRequest.h:71
Aws::WAFV2::Model::AssociateWebACLRequest::SetWebACLArn
void SetWebACLArn(Aws::String &&value)
Definition: AssociateWebACLRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::AssociateWebACLRequest::WithWebACLArn
AssociateWebACLRequest & WithWebACLArn(Aws::String &&value)
Definition: AssociateWebACLRequest.h:77