AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePermissionResult.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/model/ResourceSharePermissionSummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace RAM
25{
26namespace Model
27{
29 {
30 public:
34
35
37
40 inline const ResourceSharePermissionSummary& GetPermission() const{ return m_permission; }
41 inline void SetPermission(const ResourceSharePermissionSummary& value) { m_permission = value; }
42 inline void SetPermission(ResourceSharePermissionSummary&& value) { m_permission = std::move(value); }
44 inline CreatePermissionResult& WithPermission(ResourceSharePermissionSummary&& value) { SetPermission(std::move(value)); return *this;}
46
48
55 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
56 inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
57 inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
58 inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
59 inline CreatePermissionResult& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
60 inline CreatePermissionResult& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
61 inline CreatePermissionResult& WithClientToken(const char* value) { SetClientToken(value); return *this;}
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline CreatePermissionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline CreatePermissionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline CreatePermissionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
77
78 Aws::String m_clientToken;
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace RAM
85} // namespace Aws
const ResourceSharePermissionSummary & GetPermission() const
CreatePermissionResult & WithClientToken(const Aws::String &value)
void SetRequestId(const Aws::String &value)
AWS_RAM_API CreatePermissionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPermission(const ResourceSharePermissionSummary &value)
void SetPermission(ResourceSharePermissionSummary &&value)
CreatePermissionResult & WithPermission(const ResourceSharePermissionSummary &value)
CreatePermissionResult & WithPermission(ResourceSharePermissionSummary &&value)
AWS_RAM_API CreatePermissionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePermissionResult & WithClientToken(const char *value)
CreatePermissionResult & WithRequestId(Aws::String &&value)
void SetClientToken(const Aws::String &value)
CreatePermissionResult & WithClientToken(Aws::String &&value)
CreatePermissionResult & WithRequestId(const char *value)
CreatePermissionResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue