AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateTopicPermissionsRequest.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/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/ResourcePermission.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
22 public:
23 AWS_QUICKSIGHT_API UpdateTopicPermissionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateTopicPermissions"; }
30
31 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
39 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
40 template <typename AwsAccountIdT = Aws::String>
41 void SetAwsAccountId(AwsAccountIdT&& value) {
42 m_awsAccountIdHasBeenSet = true;
43 m_awsAccountId = std::forward<AwsAccountIdT>(value);
44 }
45 template <typename AwsAccountIdT = Aws::String>
47 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetTopicId() const { return m_topicId; }
58 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
59 template <typename TopicIdT = Aws::String>
60 void SetTopicId(TopicIdT&& value) {
61 m_topicIdHasBeenSet = true;
62 m_topicId = std::forward<TopicIdT>(value);
63 }
64 template <typename TopicIdT = Aws::String>
66 SetTopicId(std::forward<TopicIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const { return m_grantPermissions; }
76 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
77 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
78 void SetGrantPermissions(GrantPermissionsT&& value) {
79 m_grantPermissionsHasBeenSet = true;
80 m_grantPermissions = std::forward<GrantPermissionsT>(value);
81 }
82 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
84 SetGrantPermissions(std::forward<GrantPermissionsT>(value));
85 return *this;
86 }
87 template <typename GrantPermissionsT = ResourcePermission>
89 m_grantPermissionsHasBeenSet = true;
90 m_grantPermissions.emplace_back(std::forward<GrantPermissionsT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const { return m_revokePermissions; }
100 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
101 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
102 void SetRevokePermissions(RevokePermissionsT&& value) {
103 m_revokePermissionsHasBeenSet = true;
104 m_revokePermissions = std::forward<RevokePermissionsT>(value);
105 }
106 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
108 SetRevokePermissions(std::forward<RevokePermissionsT>(value));
109 return *this;
110 }
111 template <typename RevokePermissionsT = ResourcePermission>
113 m_revokePermissionsHasBeenSet = true;
114 m_revokePermissions.emplace_back(std::forward<RevokePermissionsT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_awsAccountId;
120
121 Aws::String m_topicId;
122
123 Aws::Vector<ResourcePermission> m_grantPermissions;
124
125 Aws::Vector<ResourcePermission> m_revokePermissions;
126 bool m_awsAccountIdHasBeenSet = false;
127 bool m_topicIdHasBeenSet = false;
128 bool m_grantPermissionsHasBeenSet = false;
129 bool m_revokePermissionsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace QuickSight
134} // namespace Aws
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
UpdateTopicPermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
UpdateTopicPermissionsRequest & AddRevokePermissions(RevokePermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateTopicPermissionsRequest & WithRevokePermissions(RevokePermissionsT &&value)
UpdateTopicPermissionsRequest & WithTopicId(TopicIdT &&value)
UpdateTopicPermissionsRequest & WithGrantPermissions(GrantPermissionsT &&value)
AWS_QUICKSIGHT_API UpdateTopicPermissionsRequest()=default
UpdateTopicPermissionsRequest & AddGrantPermissions(GrantPermissionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector