AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateTopicPermissionsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/ResourcePermission.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 QuickSight {
24namespace Model {
26 public:
27 AWS_QUICKSIGHT_API UpdateTopicPermissionsResult() = default;
30
32
36 inline const Aws::String& GetTopicId() const { return m_topicId; }
37 template <typename TopicIdT = Aws::String>
38 void SetTopicId(TopicIdT&& value) {
39 m_topicIdHasBeenSet = true;
40 m_topicId = std::forward<TopicIdT>(value);
41 }
42 template <typename TopicIdT = Aws::String>
44 SetTopicId(std::forward<TopicIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
54 template <typename TopicArnT = Aws::String>
55 void SetTopicArn(TopicArnT&& value) {
56 m_topicArnHasBeenSet = true;
57 m_topicArn = std::forward<TopicArnT>(value);
58 }
59 template <typename TopicArnT = Aws::String>
61 SetTopicArn(std::forward<TopicArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
71 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
72 void SetPermissions(PermissionsT&& value) {
73 m_permissionsHasBeenSet = true;
74 m_permissions = std::forward<PermissionsT>(value);
75 }
76 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
78 SetPermissions(std::forward<PermissionsT>(value));
79 return *this;
80 }
81 template <typename PermissionsT = ResourcePermission>
83 m_permissionsHasBeenSet = true;
84 m_permissions.emplace_back(std::forward<PermissionsT>(value));
85 return *this;
86 }
88
90
93 inline int GetStatus() const { return m_status; }
94 inline void SetStatus(int value) {
95 m_statusHasBeenSet = true;
96 m_status = value;
97 }
99 SetStatus(value);
100 return *this;
101 }
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template <typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) {
109 m_requestIdHasBeenSet = true;
110 m_requestId = std::forward<RequestIdT>(value);
111 }
112 template <typename RequestIdT = Aws::String>
114 SetRequestId(std::forward<RequestIdT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_topicId;
120
121 Aws::String m_topicArn;
122
124
125 int m_status{0};
126
127 Aws::String m_requestId;
128 bool m_topicIdHasBeenSet = false;
129 bool m_topicArnHasBeenSet = false;
130 bool m_permissionsHasBeenSet = false;
131 bool m_statusHasBeenSet = false;
132 bool m_requestIdHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace QuickSight
137} // namespace Aws
UpdateTopicPermissionsResult & WithRequestId(RequestIdT &&value)
AWS_QUICKSIGHT_API UpdateTopicPermissionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ResourcePermission > & GetPermissions() const
UpdateTopicPermissionsResult & WithTopicArn(TopicArnT &&value)
AWS_QUICKSIGHT_API UpdateTopicPermissionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateTopicPermissionsResult & WithTopicId(TopicIdT &&value)
UpdateTopicPermissionsResult & AddPermissions(PermissionsT &&value)
UpdateTopicPermissionsResult & WithPermissions(PermissionsT &&value)
AWS_QUICKSIGHT_API UpdateTopicPermissionsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue