AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
UpdateAppPermissionsRequest.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/AppVisibility.h>
12#include <aws/quicksight/model/ResourcePermission.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QuickSight {
18namespace Model {
19
23 public:
24 AWS_QUICKSIGHT_API UpdateAppPermissionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateAppPermissions"; }
31
32 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
33
35
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& GetAppId() const { return m_appId; }
57 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
58 template <typename AppIdT = Aws::String>
59 void SetAppId(AppIdT&& value) {
60 m_appIdHasBeenSet = true;
61 m_appId = std::forward<AppIdT>(value);
62 }
63 template <typename AppIdT = Aws::String>
65 SetAppId(std::forward<AppIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const { return m_grantPermissions; }
75 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
76 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
77 void SetGrantPermissions(GrantPermissionsT&& value) {
78 m_grantPermissionsHasBeenSet = true;
79 m_grantPermissions = std::forward<GrantPermissionsT>(value);
80 }
81 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
83 SetGrantPermissions(std::forward<GrantPermissionsT>(value));
84 return *this;
85 }
86 template <typename GrantPermissionsT = ResourcePermission>
88 m_grantPermissionsHasBeenSet = true;
89 m_grantPermissions.emplace_back(std::forward<GrantPermissionsT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const { return m_revokePermissions; }
99 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
100 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
101 void SetRevokePermissions(RevokePermissionsT&& value) {
102 m_revokePermissionsHasBeenSet = true;
103 m_revokePermissions = std::forward<RevokePermissionsT>(value);
104 }
105 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
107 SetRevokePermissions(std::forward<RevokePermissionsT>(value));
108 return *this;
109 }
110 template <typename RevokePermissionsT = ResourcePermission>
112 m_revokePermissionsHasBeenSet = true;
113 m_revokePermissions.emplace_back(std::forward<RevokePermissionsT>(value));
114 return *this;
115 }
117
119
125 inline AppVisibility GetVisibility() const { return m_visibility; }
126 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
127 inline void SetVisibility(AppVisibility value) {
128 m_visibilityHasBeenSet = true;
129 m_visibility = value;
130 }
132 SetVisibility(value);
133 return *this;
134 }
136 private:
137 Aws::String m_awsAccountId;
138
139 Aws::String m_appId;
140
141 Aws::Vector<ResourcePermission> m_grantPermissions;
142
143 Aws::Vector<ResourcePermission> m_revokePermissions;
144
146 bool m_awsAccountIdHasBeenSet = false;
147 bool m_appIdHasBeenSet = false;
148 bool m_grantPermissionsHasBeenSet = false;
149 bool m_revokePermissionsHasBeenSet = false;
150 bool m_visibilityHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace QuickSight
155} // namespace Aws
UpdateAppPermissionsRequest & WithRevokePermissions(RevokePermissionsT &&value)
UpdateAppPermissionsRequest & AddRevokePermissions(RevokePermissionsT &&value)
UpdateAppPermissionsRequest & WithAppId(AppIdT &&value)
UpdateAppPermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
AWS_QUICKSIGHT_API UpdateAppPermissionsRequest()=default
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateAppPermissionsRequest & WithGrantPermissions(GrantPermissionsT &&value)
UpdateAppPermissionsRequest & AddGrantPermissions(GrantPermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
UpdateAppPermissionsRequest & WithVisibility(AppVisibility value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector