AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeTopicPermissionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/ResourcePermission.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
27 public:
28 AWS_QUICKSIGHT_API DescribeTopicPermissionsResult() = default;
31
33
37 inline const Aws::String& GetTopicId() const { return m_topicId; }
38 template <typename TopicIdT = Aws::String>
39 void SetTopicId(TopicIdT&& value) {
40 m_topicIdHasBeenSet = true;
41 m_topicId = std::forward<TopicIdT>(value);
42 }
43 template <typename TopicIdT = Aws::String>
45 SetTopicId(std::forward<TopicIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
55 template <typename TopicArnT = Aws::String>
56 void SetTopicArn(TopicArnT&& value) {
57 m_topicArnHasBeenSet = true;
58 m_topicArn = std::forward<TopicArnT>(value);
59 }
60 template <typename TopicArnT = Aws::String>
62 SetTopicArn(std::forward<TopicArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
72 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
73 void SetPermissions(PermissionsT&& value) {
74 m_permissionsHasBeenSet = true;
75 m_permissions = std::forward<PermissionsT>(value);
76 }
77 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
79 SetPermissions(std::forward<PermissionsT>(value));
80 return *this;
81 }
82 template <typename PermissionsT = ResourcePermission>
84 m_permissionsHasBeenSet = true;
85 m_permissions.emplace_back(std::forward<PermissionsT>(value));
86 return *this;
87 }
89
91
94 inline int GetStatus() const { return m_status; }
95 inline void SetStatus(int value) {
96 m_statusHasBeenSet = true;
97 m_status = value;
98 }
100 SetStatus(value);
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
120
121 private:
122 Aws::String m_topicId;
123
124 Aws::String m_topicArn;
125
127
128 int m_status{0};
129
130 Aws::String m_requestId;
131 Aws::Http::HttpResponseCode m_HttpResponseCode;
132 bool m_topicIdHasBeenSet = false;
133 bool m_topicArnHasBeenSet = false;
134 bool m_permissionsHasBeenSet = false;
135 bool m_statusHasBeenSet = false;
136 bool m_requestIdHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace QuickSight
141} // namespace Aws
AWS_QUICKSIGHT_API DescribeTopicPermissionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTopicPermissionsResult & WithRequestId(RequestIdT &&value)
DescribeTopicPermissionsResult & AddPermissions(PermissionsT &&value)
DescribeTopicPermissionsResult & WithTopicId(TopicIdT &&value)
AWS_QUICKSIGHT_API DescribeTopicPermissionsResult()=default
DescribeTopicPermissionsResult & WithTopicArn(TopicArnT &&value)
DescribeTopicPermissionsResult & WithPermissions(PermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetPermissions() const
AWS_QUICKSIGHT_API DescribeTopicPermissionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue