AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
ListProfilesRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/ProfileType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Transfer {
16namespace Model {
17
21 public:
22 AWS_TRANSFER_API ListProfilesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListProfiles"; }
29
30 AWS_TRANSFER_API Aws::String SerializePayload() const override;
31
33
35
38 inline int GetMaxResults() const { return m_maxResults; }
39 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
40 inline void SetMaxResults(int value) {
41 m_maxResultsHasBeenSet = true;
42 m_maxResults = value;
43 }
45 SetMaxResults(value);
46 return *this;
47 }
49
51
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 ListProfilesRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
76 inline ProfileType GetProfileType() const { return m_profileType; }
77 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
78 inline void SetProfileType(ProfileType value) {
79 m_profileTypeHasBeenSet = true;
80 m_profileType = value;
81 }
83 SetProfileType(value);
84 return *this;
85 }
87 private:
88 int m_maxResults{0};
89 bool m_maxResultsHasBeenSet = false;
90
91 Aws::String m_nextToken;
92 bool m_nextTokenHasBeenSet = false;
93
94 ProfileType m_profileType{ProfileType::NOT_SET};
95 bool m_profileTypeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Transfer
100} // namespace Aws
ListProfilesRequest & WithNextToken(NextTokenT &&value)
AWS_TRANSFER_API ListProfilesRequest()=default
ListProfilesRequest & WithProfileType(ProfileType value)
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListProfilesRequest & WithMaxResults(int value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String