AWS SDK for C++  1.9.155
AWS SDK for C++
ListAgentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DataSync
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ListAgents"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline int GetMaxResults() const{ return m_maxResults; }
44 
48  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
49 
53  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
54 
58  inline ListAgentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
59 
60 
65  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
66 
71  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 
77  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
78 
83  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
84 
89  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
90 
95  inline ListAgentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 
101  inline ListAgentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
107  inline ListAgentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
108 
109  private:
110 
111  int m_maxResults;
112  bool m_maxResultsHasBeenSet;
113 
114  Aws::String m_nextToken;
115  bool m_nextTokenHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace DataSync
120 } // namespace Aws
Aws::DataSync::Model::ListAgentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAgentsRequest.h:65
Aws::DataSync::Model::ListAgentsRequest::WithNextToken
ListAgentsRequest & WithNextToken(const Aws::String &value)
Definition: ListAgentsRequest.h:95
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DataSyncRequest.h
Aws::DataSync::Model::ListAgentsRequest::WithNextToken
ListAgentsRequest & WithNextToken(const char *value)
Definition: ListAgentsRequest.h:107
Aws::DataSync::Model::ListAgentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAgentsRequest.h:48
Aws::DataSync::Model::ListAgentsRequest
Definition: ListAgentsRequest.h:25
Aws::DataSync::Model::ListAgentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAgentsRequest.h:83
Aws::DataSync::Model::ListAgentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAgentsRequest.h:71
AWSString.h
Aws::DataSync::Model::ListAgentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAgentsRequest.h:77
DataSync_EXPORTS.h
Aws::DataSync::Model::ListAgentsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAgentsRequest.h:43
Aws::DataSync::Model::ListAgentsRequest::ListAgentsRequest
ListAgentsRequest()
Aws::DataSync::Model::ListAgentsRequest::WithMaxResults
ListAgentsRequest & WithMaxResults(int value)
Definition: ListAgentsRequest.h:58
Aws::DataSync::Model::ListAgentsRequest::WithNextToken
ListAgentsRequest & WithNextToken(Aws::String &&value)
Definition: ListAgentsRequest.h:101
Aws::DataSync::Model::ListAgentsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::ListAgentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAgentsRequest.h:53
Aws::DataSync::Model::ListAgentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAgentsRequest.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::ListAgentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::ListAgentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAgentsRequest.h:33