AWS SDK for C++  1.9.108
AWS SDK for C++
UpdatePolicyResult.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 Organizations
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
39  inline const Policy& GetPolicy() const{ return m_policy; }
40 
45  inline void SetPolicy(const Policy& value) { m_policy = value; }
46 
51  inline void SetPolicy(Policy&& value) { m_policy = std::move(value); }
52 
57  inline UpdatePolicyResult& WithPolicy(const Policy& value) { SetPolicy(value); return *this;}
58 
63  inline UpdatePolicyResult& WithPolicy(Policy&& value) { SetPolicy(std::move(value)); return *this;}
64 
65  private:
66 
67  Policy m_policy;
68  };
69 
70 } // namespace Model
71 } // namespace Organizations
72 } // namespace Aws
Aws::Organizations::Model::Policy
Definition: Policy.h:35
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Policy.h
Aws::Organizations::Model::UpdatePolicyResult::WithPolicy
UpdatePolicyResult & WithPolicy(const Policy &value)
Definition: UpdatePolicyResult.h:57
Aws::Organizations::Model::UpdatePolicyResult::WithPolicy
UpdatePolicyResult & WithPolicy(Policy &&value)
Definition: UpdatePolicyResult.h:63
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::UpdatePolicyResult::SetPolicy
void SetPolicy(const Policy &value)
Definition: UpdatePolicyResult.h:45
Aws::Organizations::Model::UpdatePolicyResult::UpdatePolicyResult
UpdatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::UpdatePolicyResult::SetPolicy
void SetPolicy(Policy &&value)
Definition: UpdatePolicyResult.h:51
Aws::Organizations::Model::UpdatePolicyResult::operator=
UpdatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::UpdatePolicyResult
Definition: UpdatePolicyResult.h:28
Aws
Definition: AccessManagementClient.h:15
Organizations_EXPORTS.h
Aws::Organizations::Model::UpdatePolicyResult::GetPolicy
const Policy & GetPolicy() const
Definition: UpdatePolicyResult.h:39
Aws::Organizations::Model::UpdatePolicyResult::UpdatePolicyResult
UpdatePolicyResult()