AWS SDK for C++  1.9.107
AWS SDK for C++
GetPermissionPolicyResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Aws::String& GetPolicy() const{ return m_policy; }
39 
43  inline void SetPolicy(const Aws::String& value) { m_policy = value; }
44 
48  inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
49 
53  inline void SetPolicy(const char* value) { m_policy.assign(value); }
54 
58  inline GetPermissionPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
59 
63  inline GetPermissionPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
64 
68  inline GetPermissionPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
69 
70  private:
71 
72  Aws::String m_policy;
73  };
74 
75 } // namespace Model
76 } // namespace WAFV2
77 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WAFV2::Model::GetPermissionPolicyResult::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: GetPermissionPolicyResult.h:43
Aws::WAFV2::Model::GetPermissionPolicyResult::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: GetPermissionPolicyResult.h:48
Aws::WAFV2::Model::GetPermissionPolicyResult::GetPermissionPolicyResult
GetPermissionPolicyResult()
Aws::WAFV2::Model::GetPermissionPolicyResult::operator=
GetPermissionPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetPermissionPolicyResult::WithPolicy
GetPermissionPolicyResult & WithPolicy(Aws::String &&value)
Definition: GetPermissionPolicyResult.h:63
Aws::WAFV2::Model::GetPermissionPolicyResult
Definition: GetPermissionPolicyResult.h:28
AWSString.h
Aws::WAFV2::Model::GetPermissionPolicyResult::WithPolicy
GetPermissionPolicyResult & WithPolicy(const Aws::String &value)
Definition: GetPermissionPolicyResult.h:58
Aws::WAFV2::Model::GetPermissionPolicyResult::WithPolicy
GetPermissionPolicyResult & WithPolicy(const char *value)
Definition: GetPermissionPolicyResult.h:68
Aws::WAFV2::Model::GetPermissionPolicyResult::GetPolicy
const Aws::String & GetPolicy() const
Definition: GetPermissionPolicyResult.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::GetPermissionPolicyResult::SetPolicy
void SetPolicy(const char *value)
Definition: GetPermissionPolicyResult.h:53
Aws::WAFV2::Model::GetPermissionPolicyResult::GetPermissionPolicyResult
GetPermissionPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97