AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePermissionVersionResult.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/model/ResourceSharePermissionDetail.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:
31 AWS_RAM_API CreatePermissionVersionResult() = default;
34
35
37
38 inline const ResourceSharePermissionDetail& GetPermission() const { return m_permission; }
39 template<typename PermissionT = ResourceSharePermissionDetail>
40 void SetPermission(PermissionT&& value) { m_permissionHasBeenSet = true; m_permission = std::forward<PermissionT>(value); }
41 template<typename PermissionT = ResourceSharePermissionDetail>
42 CreatePermissionVersionResult& WithPermission(PermissionT&& value) { SetPermission(std::forward<PermissionT>(value)); return *this;}
44
46
53 inline const Aws::String& GetClientToken() const { return m_clientToken; }
54 template<typename ClientTokenT = Aws::String>
55 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
56 template<typename ClientTokenT = Aws::String>
57 CreatePermissionVersionResult& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
59
61
62 inline const Aws::String& GetRequestId() const { return m_requestId; }
63 template<typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
65 template<typename RequestIdT = Aws::String>
66 CreatePermissionVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
68 private:
69
71 bool m_permissionHasBeenSet = false;
72
73 Aws::String m_clientToken;
74 bool m_clientTokenHasBeenSet = false;
75
76 Aws::String m_requestId;
77 bool m_requestIdHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace RAM
82} // namespace Aws
CreatePermissionVersionResult & WithRequestId(RequestIdT &&value)
CreatePermissionVersionResult & WithPermission(PermissionT &&value)
CreatePermissionVersionResult & WithClientToken(ClientTokenT &&value)
const ResourceSharePermissionDetail & GetPermission() const
AWS_RAM_API CreatePermissionVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RAM_API CreatePermissionVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue