AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
ListAccessesRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Transfer {
15namespace Model {
16
20 public:
21 AWS_TRANSFER_API ListAccessesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListAccesses"; }
28
29 AWS_TRANSFER_API Aws::String SerializePayload() const override;
30
32
34
37 inline int GetMaxResults() const { return m_maxResults; }
38 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
39 inline void SetMaxResults(int value) {
40 m_maxResultsHasBeenSet = true;
41 m_maxResults = value;
42 }
44 SetMaxResults(value);
45 return *this;
46 }
48
50
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 ListAccessesRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetServerId() const { return m_serverId; }
76 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
77 template <typename ServerIdT = Aws::String>
78 void SetServerId(ServerIdT&& value) {
79 m_serverIdHasBeenSet = true;
80 m_serverId = std::forward<ServerIdT>(value);
81 }
82 template <typename ServerIdT = Aws::String>
83 ListAccessesRequest& WithServerId(ServerIdT&& value) {
84 SetServerId(std::forward<ServerIdT>(value));
85 return *this;
86 }
88 private:
89 int m_maxResults{0};
90 bool m_maxResultsHasBeenSet = false;
91
92 Aws::String m_nextToken;
93 bool m_nextTokenHasBeenSet = false;
94
95 Aws::String m_serverId;
96 bool m_serverIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Transfer
101} // namespace Aws
ListAccessesRequest & WithNextToken(NextTokenT &&value)
AWS_TRANSFER_API ListAccessesRequest()=default
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListAccessesRequest & WithServerId(ServerIdT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListAccessesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String