AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
52 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
53 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
56 inline RemoveResourcePermissionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
58
60
63 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
66 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
67 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
68 inline RemoveResourcePermissionRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
69 inline RemoveResourcePermissionRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
70 inline RemoveResourcePermissionRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
72
74
77 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
78 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
79 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
80 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
81 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
82 inline RemoveResourcePermissionRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
83 inline RemoveResourcePermissionRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
84 inline RemoveResourcePermissionRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
86
88
91 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
92 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
93 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
94 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
96 inline RemoveResourcePermissionRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_authenticationToken;
101 bool m_authenticationTokenHasBeenSet = false;
102
103 Aws::String m_resourceId;
104 bool m_resourceIdHasBeenSet = false;
105
106 Aws::String m_principalId;
107 bool m_principalIdHasBeenSet = false;
108
109 PrincipalType m_principalType;
110 bool m_principalTypeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace WorkDocs
115} // namespace Aws
RemoveResourcePermissionRequest & WithResourceId(const Aws::String &value)
RemoveResourcePermissionRequest & WithAuthenticationToken(Aws::String &&value)
RemoveResourcePermissionRequest & WithPrincipalType(const PrincipalType &value)
RemoveResourcePermissionRequest & WithPrincipalId(const char *value)
RemoveResourcePermissionRequest & WithPrincipalType(PrincipalType &&value)
RemoveResourcePermissionRequest & WithPrincipalId(Aws::String &&value)
RemoveResourcePermissionRequest & WithResourceId(Aws::String &&value)
RemoveResourcePermissionRequest & WithAuthenticationToken(const char *value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RemoveResourcePermissionRequest & WithAuthenticationToken(const Aws::String &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
RemoveResourcePermissionRequest & WithResourceId(const char *value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
RemoveResourcePermissionRequest & WithPrincipalId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String