AWS SDK for C++  1.9.104
AWS SDK for C++
DescribePermissionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace OpsWorks
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
52  inline const Aws::Vector<Permission>& GetPermissions() const{ return m_permissions; }
53 
64  inline void SetPermissions(const Aws::Vector<Permission>& value) { m_permissions = value; }
65 
76  inline void SetPermissions(Aws::Vector<Permission>&& value) { m_permissions = std::move(value); }
77 
88  inline DescribePermissionsResult& WithPermissions(const Aws::Vector<Permission>& value) { SetPermissions(value); return *this;}
89 
100  inline DescribePermissionsResult& WithPermissions(Aws::Vector<Permission>&& value) { SetPermissions(std::move(value)); return *this;}
101 
112  inline DescribePermissionsResult& AddPermissions(const Permission& value) { m_permissions.push_back(value); return *this; }
113 
124  inline DescribePermissionsResult& AddPermissions(Permission&& value) { m_permissions.push_back(std::move(value)); return *this; }
125 
126  private:
127 
128  Aws::Vector<Permission> m_permissions;
129  };
130 
131 } // namespace Model
132 } // namespace OpsWorks
133 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Permission.h
OpsWorks_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribePermissionsResult::DescribePermissionsResult
DescribePermissionsResult()
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribePermissionsResult::GetPermissions
const Aws::Vector< Permission > & GetPermissions() const
Definition: DescribePermissionsResult.h:52
Aws::OpsWorks::Model::DescribePermissionsResult::DescribePermissionsResult
DescribePermissionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribePermissionsResult
Definition: DescribePermissionsResult.h:35
Aws::OpsWorks::Model::DescribePermissionsResult::SetPermissions
void SetPermissions(Aws::Vector< Permission > &&value)
Definition: DescribePermissionsResult.h:76
Aws::OpsWorks::Model::DescribePermissionsResult::SetPermissions
void SetPermissions(const Aws::Vector< Permission > &value)
Definition: DescribePermissionsResult.h:64
Aws::OpsWorks::Model::DescribePermissionsResult::WithPermissions
DescribePermissionsResult & WithPermissions(Aws::Vector< Permission > &&value)
Definition: DescribePermissionsResult.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribePermissionsResult::AddPermissions
DescribePermissionsResult & AddPermissions(Permission &&value)
Definition: DescribePermissionsResult.h:124
Aws::OpsWorks::Model::DescribePermissionsResult::operator=
DescribePermissionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::Permission
Definition: Permission.h:32
Aws::OpsWorks::Model::DescribePermissionsResult::WithPermissions
DescribePermissionsResult & WithPermissions(const Aws::Vector< Permission > &value)
Definition: DescribePermissionsResult.h:88
Aws::OpsWorks::Model::DescribePermissionsResult::AddPermissions
DescribePermissionsResult & AddPermissions(const Permission &value)
Definition: DescribePermissionsResult.h:112