AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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); }
55 inline GetResourcesRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
56 inline GetResourcesRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
58
60
64 inline const Aws::String& GetUserId() const{ return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
67 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
68 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
69 inline GetResourcesRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
70 inline GetResourcesRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
71 inline GetResourcesRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
73
75
78 inline const ResourceCollectionType& GetCollectionType() const{ return m_collectionType; }
79 inline bool CollectionTypeHasBeenSet() const { return m_collectionTypeHasBeenSet; }
80 inline void SetCollectionType(const ResourceCollectionType& value) { m_collectionTypeHasBeenSet = true; m_collectionType = value; }
81 inline void SetCollectionType(ResourceCollectionType&& value) { m_collectionTypeHasBeenSet = true; m_collectionType = std::move(value); }
83 inline GetResourcesRequest& WithCollectionType(ResourceCollectionType&& value) { SetCollectionType(std::move(value)); return *this;}
85
87
90 inline int GetLimit() const{ return m_limit; }
91 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
92 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
93 inline GetResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
95
97
101 inline const Aws::String& GetMarker() const{ return m_marker; }
102 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
103 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
104 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
105 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
106 inline GetResourcesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
107 inline GetResourcesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
108 inline GetResourcesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
110 private:
111
112 Aws::String m_authenticationToken;
113 bool m_authenticationTokenHasBeenSet = false;
114
115 Aws::String m_userId;
116 bool m_userIdHasBeenSet = false;
117
118 ResourceCollectionType m_collectionType;
119 bool m_collectionTypeHasBeenSet = false;
120
121 int m_limit;
122 bool m_limitHasBeenSet = false;
123
124 Aws::String m_marker;
125 bool m_markerHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace WorkDocs
130} // namespace Aws
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCollectionType(const ResourceCollectionType &value)
GetResourcesRequest & WithAuthenticationToken(const char *value)
const ResourceCollectionType & GetCollectionType() const
GetResourcesRequest & WithUserId(Aws::String &&value)
void SetCollectionType(ResourceCollectionType &&value)
GetResourcesRequest & WithAuthenticationToken(const Aws::String &value)
GetResourcesRequest & WithLimit(int value)
GetResourcesRequest & WithUserId(const char *value)
void SetAuthenticationToken(const Aws::String &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
GetResourcesRequest & WithMarker(Aws::String &&value)
GetResourcesRequest & WithMarker(const char *value)
GetResourcesRequest & WithMarker(const Aws::String &value)
void SetUserId(const Aws::String &value)
const Aws::String & GetAuthenticationToken() const
GetResourcesRequest & WithUserId(const Aws::String &value)
GetResourcesRequest & WithCollectionType(const ResourceCollectionType &value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetResourcesRequest & WithAuthenticationToken(Aws::String &&value)
GetResourcesRequest & WithCollectionType(ResourceCollectionType &&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