AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
27 AWS_WORKDOCS_API AddResourcePermissionsRequest() = default;
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 template<typename AuthenticationTokenT = Aws::String>
48 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
49 template<typename AuthenticationTokenT = Aws::String>
50 AddResourcePermissionsRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template<typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<typename ResourceIdT = Aws::String>
62 AddResourcePermissionsRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
69 inline const Aws::Vector<SharePrincipal>& GetPrincipals() const { return m_principals; }
70 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
71 template<typename PrincipalsT = Aws::Vector<SharePrincipal>>
72 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals = std::forward<PrincipalsT>(value); }
73 template<typename PrincipalsT = Aws::Vector<SharePrincipal>>
74 AddResourcePermissionsRequest& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
75 template<typename PrincipalsT = SharePrincipal>
76 AddResourcePermissionsRequest& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
78
80
83 inline const NotificationOptions& GetNotificationOptions() const { return m_notificationOptions; }
84 inline bool NotificationOptionsHasBeenSet() const { return m_notificationOptionsHasBeenSet; }
85 template<typename NotificationOptionsT = NotificationOptions>
86 void SetNotificationOptions(NotificationOptionsT&& value) { m_notificationOptionsHasBeenSet = true; m_notificationOptions = std::forward<NotificationOptionsT>(value); }
87 template<typename NotificationOptionsT = NotificationOptions>
88 AddResourcePermissionsRequest& WithNotificationOptions(NotificationOptionsT&& value) { SetNotificationOptions(std::forward<NotificationOptionsT>(value)); return *this;}
90 private:
91
92 Aws::String m_authenticationToken;
93 bool m_authenticationTokenHasBeenSet = false;
94
95 Aws::String m_resourceId;
96 bool m_resourceIdHasBeenSet = false;
97
98 Aws::Vector<SharePrincipal> m_principals;
99 bool m_principalsHasBeenSet = false;
100
101 NotificationOptions m_notificationOptions;
102 bool m_notificationOptionsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace WorkDocs
107} // 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