AWS SDK for C++  1.8.154
AWS SDK for C++
GetBucketPolicyResult.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 GetBucketPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
59 
63  inline GetBucketPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
64 
68  inline GetBucketPolicyResult& 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::GetBucketPolicyResult::operator=
GetBucketPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::S3Control::Model::GetBucketPolicyResult::GetPolicy
const Aws::String & GetPolicy() const
Definition: GetBucketPolicyResult.h:38
Aws::S3Control::Model::GetBucketPolicyResult::SetPolicy
void SetPolicy(const char *value)
Definition: GetBucketPolicyResult.h:53
Aws::S3Control::Model::GetBucketPolicyResult
Definition: GetBucketPolicyResult.h:28
Aws::S3Control::Model::GetBucketPolicyResult::WithPolicy
GetBucketPolicyResult & WithPolicy(const char *value)
Definition: GetBucketPolicyResult.h:68
S3Control_EXPORTS.h
Aws::S3Control::Model::GetBucketPolicyResult::WithPolicy
GetBucketPolicyResult & WithPolicy(Aws::String &&value)
Definition: GetBucketPolicyResult.h:63
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
AWSString.h
Aws::S3Control::Model::GetBucketPolicyResult::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: GetBucketPolicyResult.h:43
Aws::S3Control::Model::GetBucketPolicyResult::WithPolicy
GetBucketPolicyResult & WithPolicy(const Aws::String &value)
Definition: GetBucketPolicyResult.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::GetBucketPolicyResult::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: GetBucketPolicyResult.h:48
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::GetBucketPolicyResult::GetBucketPolicyResult
GetBucketPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::S3Control::Model::GetBucketPolicyResult::GetBucketPolicyResult
GetBucketPolicyResult()