AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
RemoveResourcePermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/PrincipalType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace WorkDocs {
19namespace Model {
20
24 public:
25 AWS_WORKDOCS_API RemoveResourcePermissionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RemoveResourcePermission"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
35 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
40
44 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
45 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
46 template <typename AuthenticationTokenT = Aws::String>
47 void SetAuthenticationToken(AuthenticationTokenT&& value) {
48 m_authenticationTokenHasBeenSet = true;
49 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
50 }
51 template <typename AuthenticationTokenT = Aws::String>
53 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetResourceId() const { return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 template <typename ResourceIdT = Aws::String>
65 void SetResourceId(ResourceIdT&& value) {
66 m_resourceIdHasBeenSet = true;
67 m_resourceId = std::forward<ResourceIdT>(value);
68 }
69 template <typename ResourceIdT = Aws::String>
71 SetResourceId(std::forward<ResourceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
81 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
82 template <typename PrincipalIdT = Aws::String>
83 void SetPrincipalId(PrincipalIdT&& value) {
84 m_principalIdHasBeenSet = true;
85 m_principalId = std::forward<PrincipalIdT>(value);
86 }
87 template <typename PrincipalIdT = Aws::String>
89 SetPrincipalId(std::forward<PrincipalIdT>(value));
90 return *this;
91 }
93
95
98 inline PrincipalType GetPrincipalType() const { return m_principalType; }
99 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
100 inline void SetPrincipalType(PrincipalType value) {
101 m_principalTypeHasBeenSet = true;
102 m_principalType = value;
103 }
105 SetPrincipalType(value);
106 return *this;
107 }
109 private:
110 Aws::String m_authenticationToken;
111
112 Aws::String m_resourceId;
113
114 Aws::String m_principalId;
115
116 PrincipalType m_principalType{PrincipalType::NOT_SET};
117 bool m_authenticationTokenHasBeenSet = false;
118 bool m_resourceIdHasBeenSet = false;
119 bool m_principalIdHasBeenSet = false;
120 bool m_principalTypeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace WorkDocs
125} // namespace Aws
AWS_WORKDOCS_API RemoveResourcePermissionRequest()=default
RemoveResourcePermissionRequest & WithResourceId(ResourceIdT &&value)
RemoveResourcePermissionRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
RemoveResourcePermissionRequest & WithPrincipalType(PrincipalType value)
RemoveResourcePermissionRequest & WithPrincipalId(PrincipalIdT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String