AWS SDK for C++  1.9.153
AWS SDK for C++
PutRepositoryPermissionsPolicyResult.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 CodeArtifact
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const ResourcePolicy& GetPolicy() const{ return m_policy; }
39 
43  inline void SetPolicy(const ResourcePolicy& value) { m_policy = value; }
44 
48  inline void SetPolicy(ResourcePolicy&& value) { m_policy = std::move(value); }
49 
53  inline PutRepositoryPermissionsPolicyResult& WithPolicy(const ResourcePolicy& value) { SetPolicy(value); return *this;}
54 
58  inline PutRepositoryPermissionsPolicyResult& WithPolicy(ResourcePolicy&& value) { SetPolicy(std::move(value)); return *this;}
59 
60  private:
61 
62  ResourcePolicy m_policy;
63  };
64 
65 } // namespace Model
66 } // namespace CodeArtifact
67 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult
Definition: PutRepositoryPermissionsPolicyResult.h:28
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::WithPolicy
PutRepositoryPermissionsPolicyResult & WithPolicy(const ResourcePolicy &value)
Definition: PutRepositoryPermissionsPolicyResult.h:53
ResourcePolicy.h
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::SetPolicy
void SetPolicy(const ResourcePolicy &value)
Definition: PutRepositoryPermissionsPolicyResult.h:43
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::PutRepositoryPermissionsPolicyResult
PutRepositoryPermissionsPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::WithPolicy
PutRepositoryPermissionsPolicyResult & WithPolicy(ResourcePolicy &&value)
Definition: PutRepositoryPermissionsPolicyResult.h:58
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::SetPolicy
void SetPolicy(ResourcePolicy &&value)
Definition: PutRepositoryPermissionsPolicyResult.h:48
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::operator=
PutRepositoryPermissionsPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ResourcePolicy
Definition: ResourcePolicy.h:33
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::GetPolicy
const ResourcePolicy & GetPolicy() const
Definition: PutRepositoryPermissionsPolicyResult.h:38
Aws::CodeArtifact::Model::PutRepositoryPermissionsPolicyResult::PutRepositoryPermissionsPolicyResult
PutRepositoryPermissionsPolicyResult()