AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddResourcePermissionsRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workdocs/model/NotificationOptions.h>
12#include <aws/workdocs/model/SharePrincipal.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WorkDocs
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AddResourcePermissions"; }
34
35 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
46 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
47 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
48 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
49 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
52 inline AddResourcePermissionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
54
56
59 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
62 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
63 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
64 inline AddResourcePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
65 inline AddResourcePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
66 inline AddResourcePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
68
70
73 inline const Aws::Vector<SharePrincipal>& GetPrincipals() const{ return m_principals; }
74 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
75 inline void SetPrincipals(const Aws::Vector<SharePrincipal>& value) { m_principalsHasBeenSet = true; m_principals = value; }
76 inline void SetPrincipals(Aws::Vector<SharePrincipal>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
79 inline AddResourcePermissionsRequest& AddPrincipals(const SharePrincipal& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
80 inline AddResourcePermissionsRequest& AddPrincipals(SharePrincipal&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
82
84
87 inline const NotificationOptions& GetNotificationOptions() const{ return m_notificationOptions; }
88 inline bool NotificationOptionsHasBeenSet() const { return m_notificationOptionsHasBeenSet; }
89 inline void SetNotificationOptions(const NotificationOptions& value) { m_notificationOptionsHasBeenSet = true; m_notificationOptions = value; }
90 inline void SetNotificationOptions(NotificationOptions&& value) { m_notificationOptionsHasBeenSet = true; m_notificationOptions = std::move(value); }
94 private:
95
96 Aws::String m_authenticationToken;
97 bool m_authenticationTokenHasBeenSet = false;
98
99 Aws::String m_resourceId;
100 bool m_resourceIdHasBeenSet = false;
101
102 Aws::Vector<SharePrincipal> m_principals;
103 bool m_principalsHasBeenSet = false;
104
105 NotificationOptions m_notificationOptions;
106 bool m_notificationOptionsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace WorkDocs
111} // namespace Aws
AddResourcePermissionsRequest & WithPrincipals(Aws::Vector< SharePrincipal > &&value)
AddResourcePermissionsRequest & AddPrincipals(SharePrincipal &&value)
AddResourcePermissionsRequest & WithNotificationOptions(const NotificationOptions &value)
void SetPrincipals(const Aws::Vector< SharePrincipal > &value)
AddResourcePermissionsRequest & AddPrincipals(const SharePrincipal &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AddResourcePermissionsRequest & WithAuthenticationToken(const Aws::String &value)
AddResourcePermissionsRequest & WithAuthenticationToken(Aws::String &&value)
AddResourcePermissionsRequest & WithResourceId(Aws::String &&value)
AddResourcePermissionsRequest & WithResourceId(const char *value)
AddResourcePermissionsRequest & WithNotificationOptions(NotificationOptions &&value)
AddResourcePermissionsRequest & WithResourceId(const Aws::String &value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddResourcePermissionsRequest & WithAuthenticationToken(const char *value)
AddResourcePermissionsRequest & WithPrincipals(const Aws::Vector< SharePrincipal > &value)
const Aws::Vector< SharePrincipal > & GetPrincipals() const
void SetPrincipals(Aws::Vector< SharePrincipal > &&value)
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