AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreatePermissionVersionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ram/RAM_EXPORTS.h>
10#include <aws/ram/model/ResourceSharePermissionDetail.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace RAM {
24namespace Model {
26 public:
27 AWS_RAM_API CreatePermissionVersionResult() = default;
30
32
33 inline const ResourceSharePermissionDetail& GetPermission() const { return m_permission; }
34 template <typename PermissionT = ResourceSharePermissionDetail>
35 void SetPermission(PermissionT&& value) {
36 m_permissionHasBeenSet = true;
37 m_permission = std::forward<PermissionT>(value);
38 }
39 template <typename PermissionT = ResourceSharePermissionDetail>
41 SetPermission(std::forward<PermissionT>(value));
42 return *this;
43 }
45
47
54 inline const Aws::String& GetClientToken() const { return m_clientToken; }
55 template <typename ClientTokenT = Aws::String>
56 void SetClientToken(ClientTokenT&& value) {
57 m_clientTokenHasBeenSet = true;
58 m_clientToken = std::forward<ClientTokenT>(value);
59 }
60 template <typename ClientTokenT = Aws::String>
62 SetClientToken(std::forward<ClientTokenT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template <typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) {
72 m_requestIdHasBeenSet = true;
73 m_requestId = std::forward<RequestIdT>(value);
74 }
75 template <typename RequestIdT = Aws::String>
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
82
83 private:
85
86 Aws::String m_clientToken;
87
88 Aws::String m_requestId;
89 Aws::Http::HttpResponseCode m_HttpResponseCode;
90 bool m_permissionHasBeenSet = false;
91 bool m_clientTokenHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace RAM
97} // 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