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>
43 template <
typename AuthenticationTokenT = Aws::String>
45 m_authenticationTokenHasBeenSet =
true;
46 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
48 template <
typename AuthenticationTokenT = Aws::String>
61 template <
typename ResourceIdT = Aws::String>
63 m_resourceIdHasBeenSet =
true;
64 m_resourceId = std::forward<ResourceIdT>(value);
66 template <
typename ResourceIdT = Aws::String>
79 template <
typename PrincipalsT = Aws::Vector<SharePrincipal>>
81 m_principalsHasBeenSet =
true;
82 m_principals = std::forward<PrincipalsT>(value);
84 template <
typename PrincipalsT = Aws::Vector<SharePrincipal>>
89 template <
typename PrincipalsT = SharePrincipal>
91 m_principalsHasBeenSet =
true;
92 m_principals.emplace_back(std::forward<PrincipalsT>(value));
103 template <
typename NotificationOptionsT = NotificationOptions>
105 m_notificationOptionsHasBeenSet =
true;
106 m_notificationOptions = std::forward<NotificationOptionsT>(value);
108 template <
typename NotificationOptionsT = NotificationOptions>
122 bool m_authenticationTokenHasBeenSet =
false;
123 bool m_resourceIdHasBeenSet =
false;
124 bool m_principalsHasBeenSet =
false;
125 bool m_notificationOptionsHasBeenSet =
false;
AWS_WORKDOCS_API AddResourcePermissionsRequest()=default
const Aws::String & GetAuthenticationToken() const
void SetNotificationOptions(NotificationOptionsT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AddResourcePermissionsRequest & WithResourceId(ResourceIdT &&value)
AddResourcePermissionsRequest & WithNotificationOptions(NotificationOptionsT &&value)
const Aws::String & GetResourceId() const
AddResourcePermissionsRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AddResourcePermissionsRequest & WithPrincipals(PrincipalsT &&value)
bool NotificationOptionsHasBeenSet() const
bool ResourceIdHasBeenSet() const
bool AuthenticationTokenHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const NotificationOptions & GetNotificationOptions() const
bool PrincipalsHasBeenSet() const
void SetResourceId(ResourceIdT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPrincipals(PrincipalsT &&value)
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