AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetResourcesRequest.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/ResourceCollectionType.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 GetResourcesRequest() = 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 "GetResources"; }
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>
52 GetResourcesRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
53 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetUserId() const { return m_userId; }
64 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
65 template <typename UserIdT = Aws::String>
66 void SetUserId(UserIdT&& value) {
67 m_userIdHasBeenSet = true;
68 m_userId = std::forward<UserIdT>(value);
69 }
70 template <typename UserIdT = Aws::String>
71 GetResourcesRequest& WithUserId(UserIdT&& value) {
72 SetUserId(std::forward<UserIdT>(value));
73 return *this;
74 }
76
78
81 inline ResourceCollectionType GetCollectionType() const { return m_collectionType; }
82 inline bool CollectionTypeHasBeenSet() const { return m_collectionTypeHasBeenSet; }
84 m_collectionTypeHasBeenSet = true;
85 m_collectionType = value;
86 }
88 SetCollectionType(value);
89 return *this;
90 }
92
94
97 inline int GetLimit() const { return m_limit; }
98 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
99 inline void SetLimit(int value) {
100 m_limitHasBeenSet = true;
101 m_limit = value;
102 }
103 inline GetResourcesRequest& WithLimit(int value) {
104 SetLimit(value);
105 return *this;
106 }
108
110
114 inline const Aws::String& GetMarker() const { return m_marker; }
115 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
116 template <typename MarkerT = Aws::String>
117 void SetMarker(MarkerT&& value) {
118 m_markerHasBeenSet = true;
119 m_marker = std::forward<MarkerT>(value);
120 }
121 template <typename MarkerT = Aws::String>
122 GetResourcesRequest& WithMarker(MarkerT&& value) {
123 SetMarker(std::forward<MarkerT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_authenticationToken;
129
130 Aws::String m_userId;
131
133
134 int m_limit{0};
135
136 Aws::String m_marker;
137 bool m_authenticationTokenHasBeenSet = false;
138 bool m_userIdHasBeenSet = false;
139 bool m_collectionTypeHasBeenSet = false;
140 bool m_limitHasBeenSet = false;
141 bool m_markerHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace WorkDocs
146} // namespace Aws
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetResourcesRequest & WithCollectionType(ResourceCollectionType value)
GetResourcesRequest & WithLimit(int value)
AWS_WORKDOCS_API GetResourcesRequest()=default
ResourceCollectionType GetCollectionType() const
AWS_WORKDOCS_API Aws::String SerializePayload() const override
const Aws::String & GetAuthenticationToken() const
void SetCollectionType(ResourceCollectionType value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetAuthenticationToken(AuthenticationTokenT &&value)
GetResourcesRequest & WithUserId(UserIdT &&value)
GetResourcesRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
GetResourcesRequest & WithMarker(MarkerT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String