AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetResourcesRequest.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/ResourceCollectionType.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 GetResourcesRequest() = 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 "GetResources"; }
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 GetResourcesRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
56
58
62 inline const Aws::String& GetUserId() const { return m_userId; }
63 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
64 template<typename UserIdT = Aws::String>
65 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
66 template<typename UserIdT = Aws::String>
67 GetResourcesRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
69
71
74 inline ResourceCollectionType GetCollectionType() const { return m_collectionType; }
75 inline bool CollectionTypeHasBeenSet() const { return m_collectionTypeHasBeenSet; }
76 inline void SetCollectionType(ResourceCollectionType value) { m_collectionTypeHasBeenSet = true; m_collectionType = value; }
79
81
84 inline int GetLimit() const { return m_limit; }
85 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
86 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
87 inline GetResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
89
91
95 inline const Aws::String& GetMarker() const { return m_marker; }
96 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
97 template<typename MarkerT = Aws::String>
98 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
99 template<typename MarkerT = Aws::String>
100 GetResourcesRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
102 private:
103
104 Aws::String m_authenticationToken;
105 bool m_authenticationTokenHasBeenSet = false;
106
107 Aws::String m_userId;
108 bool m_userIdHasBeenSet = false;
109
111 bool m_collectionTypeHasBeenSet = false;
112
113 int m_limit{0};
114 bool m_limitHasBeenSet = false;
115
116 Aws::String m_marker;
117 bool m_markerHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace WorkDocs
122} // 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