AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribePermissionsResult.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opsworks/model/Permission.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpsWorks
26{
27namespace Model
28{
36 {
37 public:
38 AWS_OPSWORKS_API DescribePermissionsResult();
41
42
44
54 inline const Aws::Vector<Permission>& GetPermissions() const{ return m_permissions; }
55 inline void SetPermissions(const Aws::Vector<Permission>& value) { m_permissions = value; }
56 inline void SetPermissions(Aws::Vector<Permission>&& value) { m_permissions = std::move(value); }
58 inline DescribePermissionsResult& WithPermissions(Aws::Vector<Permission>&& value) { SetPermissions(std::move(value)); return *this;}
59 inline DescribePermissionsResult& AddPermissions(const Permission& value) { m_permissions.push_back(value); return *this; }
60 inline DescribePermissionsResult& AddPermissions(Permission&& value) { m_permissions.push_back(std::move(value)); return *this; }
62
64
65 inline const Aws::String& GetRequestId() const{ return m_requestId; }
66 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
67 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
68 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
69 inline DescribePermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
70 inline DescribePermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
71 inline DescribePermissionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
73 private:
74
75 Aws::Vector<Permission> m_permissions;
76
77 Aws::String m_requestId;
78 };
79
80} // namespace Model
81} // namespace OpsWorks
82} // namespace Aws
void SetPermissions(const Aws::Vector< Permission > &value)
DescribePermissionsResult & AddPermissions(Permission &&value)
DescribePermissionsResult & WithPermissions(Aws::Vector< Permission > &&value)
DescribePermissionsResult & WithRequestId(const char *value)
DescribePermissionsResult & AddPermissions(const Permission &value)
void SetPermissions(Aws::Vector< Permission > &&value)
DescribePermissionsResult & WithRequestId(const Aws::String &value)
AWS_OPSWORKS_API DescribePermissionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribePermissionsResult & WithPermissions(const Aws::Vector< Permission > &value)
const Aws::Vector< Permission > & GetPermissions() const
AWS_OPSWORKS_API DescribePermissionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribePermissionsResult & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue