AWS SDK for C++  1.9.109
AWS SDK for C++
PutResourcePolicyResult.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 CloudWatchLogs
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const ResourcePolicy& GetResourcePolicy() const{ return m_resourcePolicy; }
39 
43  inline void SetResourcePolicy(const ResourcePolicy& value) { m_resourcePolicy = value; }
44 
48  inline void SetResourcePolicy(ResourcePolicy&& value) { m_resourcePolicy = std::move(value); }
49 
53  inline PutResourcePolicyResult& WithResourcePolicy(const ResourcePolicy& value) { SetResourcePolicy(value); return *this;}
54 
58  inline PutResourcePolicyResult& WithResourcePolicy(ResourcePolicy&& value) { SetResourcePolicy(std::move(value)); return *this;}
59 
60  private:
61 
62  ResourcePolicy m_resourcePolicy;
63  };
64 
65 } // namespace Model
66 } // namespace CloudWatchLogs
67 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::WithResourcePolicy
PutResourcePolicyResult & WithResourcePolicy(ResourcePolicy &&value)
Definition: PutResourcePolicyResult.h:58
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::SetResourcePolicy
void SetResourcePolicy(const ResourcePolicy &value)
Definition: PutResourcePolicyResult.h:43
Aws::CloudWatchLogs::Model::PutResourcePolicyResult
Definition: PutResourcePolicyResult.h:28
ResourcePolicy.h
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::PutResourcePolicyResult
PutResourcePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::operator=
PutResourcePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::GetResourcePolicy
const ResourcePolicy & GetResourcePolicy() const
Definition: PutResourcePolicyResult.h:38
Aws::CloudWatchLogs::Model::ResourcePolicy
Definition: ResourcePolicy.h:33
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::SetResourcePolicy
void SetResourcePolicy(ResourcePolicy &&value)
Definition: PutResourcePolicyResult.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::WithResourcePolicy
PutResourcePolicyResult & WithResourcePolicy(const ResourcePolicy &value)
Definition: PutResourcePolicyResult.h:53
Aws::CloudWatchLogs::Model::PutResourcePolicyResult::PutResourcePolicyResult
PutResourcePolicyResult()