AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateTemplatePermissionsRequest.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 UpdateTemplatePermissionsRequest() = 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 "UpdateTemplatePermissions"; }
30
31 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
38 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
39 template <typename AwsAccountIdT = Aws::String>
40 void SetAwsAccountId(AwsAccountIdT&& value) {
41 m_awsAccountIdHasBeenSet = true;
42 m_awsAccountId = std::forward<AwsAccountIdT>(value);
43 }
44 template <typename AwsAccountIdT = Aws::String>
46 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetTemplateId() const { return m_templateId; }
56 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
57 template <typename TemplateIdT = Aws::String>
58 void SetTemplateId(TemplateIdT&& value) {
59 m_templateIdHasBeenSet = true;
60 m_templateId = std::forward<TemplateIdT>(value);
61 }
62 template <typename TemplateIdT = Aws::String>
64 SetTemplateId(std::forward<TemplateIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const { return m_grantPermissions; }
74 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
75 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
76 void SetGrantPermissions(GrantPermissionsT&& value) {
77 m_grantPermissionsHasBeenSet = true;
78 m_grantPermissions = std::forward<GrantPermissionsT>(value);
79 }
80 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
82 SetGrantPermissions(std::forward<GrantPermissionsT>(value));
83 return *this;
84 }
85 template <typename GrantPermissionsT = ResourcePermission>
87 m_grantPermissionsHasBeenSet = true;
88 m_grantPermissions.emplace_back(std::forward<GrantPermissionsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const { return m_revokePermissions; }
98 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
99 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
100 void SetRevokePermissions(RevokePermissionsT&& value) {
101 m_revokePermissionsHasBeenSet = true;
102 m_revokePermissions = std::forward<RevokePermissionsT>(value);
103 }
104 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
106 SetRevokePermissions(std::forward<RevokePermissionsT>(value));
107 return *this;
108 }
109 template <typename RevokePermissionsT = ResourcePermission>
111 m_revokePermissionsHasBeenSet = true;
112 m_revokePermissions.emplace_back(std::forward<RevokePermissionsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_awsAccountId;
118
119 Aws::String m_templateId;
120
121 Aws::Vector<ResourcePermission> m_grantPermissions;
122
123 Aws::Vector<ResourcePermission> m_revokePermissions;
124 bool m_awsAccountIdHasBeenSet = false;
125 bool m_templateIdHasBeenSet = false;
126 bool m_grantPermissionsHasBeenSet = false;
127 bool m_revokePermissionsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace QuickSight
132} // namespace Aws
UpdateTemplatePermissionsRequest & AddRevokePermissions(RevokePermissionsT &&value)
UpdateTemplatePermissionsRequest & WithTemplateId(TemplateIdT &&value)
UpdateTemplatePermissionsRequest & WithRevokePermissions(RevokePermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
UpdateTemplatePermissionsRequest & WithGrantPermissions(GrantPermissionsT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
UpdateTemplatePermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
AWS_QUICKSIGHT_API UpdateTemplatePermissionsRequest()=default
UpdateTemplatePermissionsRequest & AddGrantPermissions(GrantPermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector