AWS SDK for C++  1.8.154
AWS SDK for C++
GetAccessPointPolicyResult.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 Xml
19 {
20  class XmlDocument;
21 } // namespace Xml
22 } // namespace Utils
23 namespace S3Control
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 GetAccessPointPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
59 
63  inline GetAccessPointPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
64 
68  inline GetAccessPointPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
69 
70  private:
71 
72  Aws::String m_policy;
73  };
74 
75 } // namespace Model
76 } // namespace S3Control
77 } // namespace Aws
Aws::S3Control::Model::GetAccessPointPolicyResult
Definition: GetAccessPointPolicyResult.h:28
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::S3Control::Model::GetAccessPointPolicyResult::WithPolicy
GetAccessPointPolicyResult & WithPolicy(const char *value)
Definition: GetAccessPointPolicyResult.h:68
Aws::S3Control::Model::GetAccessPointPolicyResult::WithPolicy
GetAccessPointPolicyResult & WithPolicy(Aws::String &&value)
Definition: GetAccessPointPolicyResult.h:63
Aws::S3Control::Model::GetAccessPointPolicyResult::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: GetAccessPointPolicyResult.h:48
Aws::S3Control::Model::GetAccessPointPolicyResult::SetPolicy
void SetPolicy(const char *value)
Definition: GetAccessPointPolicyResult.h:53
S3Control_EXPORTS.h
Aws::S3Control::Model::GetAccessPointPolicyResult::WithPolicy
GetAccessPointPolicyResult & WithPolicy(const Aws::String &value)
Definition: GetAccessPointPolicyResult.h:58
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::GetAccessPointPolicyResult::GetPolicy
const Aws::String & GetPolicy() const
Definition: GetAccessPointPolicyResult.h:38
AWSString.h
Aws::S3Control::Model::GetAccessPointPolicyResult::GetAccessPointPolicyResult
GetAccessPointPolicyResult()
Aws::S3Control::Model::GetAccessPointPolicyResult::operator=
GetAccessPointPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::S3Control::Model::GetAccessPointPolicyResult::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: GetAccessPointPolicyResult.h:43
Aws::S3Control::Model::GetAccessPointPolicyResult::GetAccessPointPolicyResult
GetAccessPointPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97