AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateFlowPermissionsRequest.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/Permission.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
22 public:
23 AWS_QUICKSIGHT_API UpdateFlowPermissionsRequest() = 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 "UpdateFlowPermissions"; }
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
56 inline const Aws::String& GetFlowId() const { return m_flowId; }
57 inline bool FlowIdHasBeenSet() const { return m_flowIdHasBeenSet; }
58 template <typename FlowIdT = Aws::String>
59 void SetFlowId(FlowIdT&& value) {
60 m_flowIdHasBeenSet = true;
61 m_flowId = std::forward<FlowIdT>(value);
62 }
63 template <typename FlowIdT = Aws::String>
65 SetFlowId(std::forward<FlowIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Permission>& GetGrantPermissions() const { return m_grantPermissions; }
75 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
76 template <typename GrantPermissionsT = Aws::Vector<Permission>>
77 void SetGrantPermissions(GrantPermissionsT&& value) {
78 m_grantPermissionsHasBeenSet = true;
79 m_grantPermissions = std::forward<GrantPermissionsT>(value);
80 }
81 template <typename GrantPermissionsT = Aws::Vector<Permission>>
83 SetGrantPermissions(std::forward<GrantPermissionsT>(value));
84 return *this;
85 }
86 template <typename GrantPermissionsT = Permission>
88 m_grantPermissionsHasBeenSet = true;
89 m_grantPermissions.emplace_back(std::forward<GrantPermissionsT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<Permission>& GetRevokePermissions() const { return m_revokePermissions; }
99 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
100 template <typename RevokePermissionsT = Aws::Vector<Permission>>
101 void SetRevokePermissions(RevokePermissionsT&& value) {
102 m_revokePermissionsHasBeenSet = true;
103 m_revokePermissions = std::forward<RevokePermissionsT>(value);
104 }
105 template <typename RevokePermissionsT = Aws::Vector<Permission>>
107 SetRevokePermissions(std::forward<RevokePermissionsT>(value));
108 return *this;
109 }
110 template <typename RevokePermissionsT = Permission>
112 m_revokePermissionsHasBeenSet = true;
113 m_revokePermissions.emplace_back(std::forward<RevokePermissionsT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_awsAccountId;
119
120 Aws::String m_flowId;
121
122 Aws::Vector<Permission> m_grantPermissions;
123
124 Aws::Vector<Permission> m_revokePermissions;
125 bool m_awsAccountIdHasBeenSet = false;
126 bool m_flowIdHasBeenSet = false;
127 bool m_grantPermissionsHasBeenSet = false;
128 bool m_revokePermissionsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace QuickSight
133} // namespace Aws
const Aws::Vector< Permission > & GetRevokePermissions() const
UpdateFlowPermissionsRequest & WithRevokePermissions(RevokePermissionsT &&value)
AWS_QUICKSIGHT_API UpdateFlowPermissionsRequest()=default
UpdateFlowPermissionsRequest & AddRevokePermissions(RevokePermissionsT &&value)
UpdateFlowPermissionsRequest & WithGrantPermissions(GrantPermissionsT &&value)
UpdateFlowPermissionsRequest & AddGrantPermissions(GrantPermissionsT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
const Aws::Vector< Permission > & GetGrantPermissions() const
UpdateFlowPermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
UpdateFlowPermissionsRequest & WithFlowId(FlowIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector