AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AddResourcePermissionsRequest.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/workdocs/WorkDocsRequest.h>
10#include <aws/workdocs/WorkDocs_EXPORTS.h>
11#include <aws/workdocs/model/NotificationOptions.h>
12#include <aws/workdocs/model/SharePrincipal.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WorkDocs {
18namespace Model {
19
23 public:
24 AWS_WORKDOCS_API AddResourcePermissionsRequest() = 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 "AddResourcePermissions"; }
31
32 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
42 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
43 template <typename AuthenticationTokenT = Aws::String>
44 void SetAuthenticationToken(AuthenticationTokenT&& value) {
45 m_authenticationTokenHasBeenSet = true;
46 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
47 }
48 template <typename AuthenticationTokenT = Aws::String>
50 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetResourceId() const { return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 template <typename ResourceIdT = Aws::String>
62 void SetResourceId(ResourceIdT&& value) {
63 m_resourceIdHasBeenSet = true;
64 m_resourceId = std::forward<ResourceIdT>(value);
65 }
66 template <typename ResourceIdT = Aws::String>
68 SetResourceId(std::forward<ResourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<SharePrincipal>& GetPrincipals() const { return m_principals; }
78 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
79 template <typename PrincipalsT = Aws::Vector<SharePrincipal>>
80 void SetPrincipals(PrincipalsT&& value) {
81 m_principalsHasBeenSet = true;
82 m_principals = std::forward<PrincipalsT>(value);
83 }
84 template <typename PrincipalsT = Aws::Vector<SharePrincipal>>
86 SetPrincipals(std::forward<PrincipalsT>(value));
87 return *this;
88 }
89 template <typename PrincipalsT = SharePrincipal>
91 m_principalsHasBeenSet = true;
92 m_principals.emplace_back(std::forward<PrincipalsT>(value));
93 return *this;
94 }
96
98
101 inline const NotificationOptions& GetNotificationOptions() const { return m_notificationOptions; }
102 inline bool NotificationOptionsHasBeenSet() const { return m_notificationOptionsHasBeenSet; }
103 template <typename NotificationOptionsT = NotificationOptions>
104 void SetNotificationOptions(NotificationOptionsT&& value) {
105 m_notificationOptionsHasBeenSet = true;
106 m_notificationOptions = std::forward<NotificationOptionsT>(value);
107 }
108 template <typename NotificationOptionsT = NotificationOptions>
110 SetNotificationOptions(std::forward<NotificationOptionsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_authenticationToken;
116
117 Aws::String m_resourceId;
118
119 Aws::Vector<SharePrincipal> m_principals;
120
121 NotificationOptions m_notificationOptions;
122 bool m_authenticationTokenHasBeenSet = false;
123 bool m_resourceIdHasBeenSet = false;
124 bool m_principalsHasBeenSet = false;
125 bool m_notificationOptionsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace WorkDocs
130} // namespace Aws
AWS_WORKDOCS_API AddResourcePermissionsRequest()=default
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AddResourcePermissionsRequest & WithResourceId(ResourceIdT &&value)
AddResourcePermissionsRequest & WithNotificationOptions(NotificationOptionsT &&value)
AddResourcePermissionsRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AddResourcePermissionsRequest & WithPrincipals(PrincipalsT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddResourcePermissionsRequest & AddPrincipals(PrincipalsT &&value)
const Aws::Vector< SharePrincipal > & GetPrincipals() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector