AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RemoveResourcePermissionRequest.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/workdocs/model/PrincipalType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace WorkDocs
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WORKDOCS_API RemoveResourcePermissionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "RemoveResourcePermission"; }
36
37 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
38
39 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43
45
49 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
50 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
51 template<typename AuthenticationTokenT = Aws::String>
52 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
53 template<typename AuthenticationTokenT = Aws::String>
54 RemoveResourcePermissionRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template<typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
65 template<typename ResourceIdT = Aws::String>
66 RemoveResourcePermissionRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
74 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
75 template<typename PrincipalIdT = Aws::String>
76 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
77 template<typename PrincipalIdT = Aws::String>
78 RemoveResourcePermissionRequest& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
80
82
85 inline PrincipalType GetPrincipalType() const { return m_principalType; }
86 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
87 inline void SetPrincipalType(PrincipalType value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
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::String m_principalId;
99 bool m_principalIdHasBeenSet = false;
100
101 PrincipalType m_principalType{PrincipalType::NOT_SET};
102 bool m_principalTypeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace WorkDocs
107} // 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