AWS SDK for C++  1.9.104
AWS SDK for C++
ListDetectorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace GuardDuty
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListDetectors"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline int GetMaxResults() const{ return m_maxResults; }
46 
51  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
52 
57  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
58 
63  inline ListDetectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64 
65 
72  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
73 
80  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 
88  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 
96  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 
104  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
105 
112  inline ListDetectorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
120  inline ListDetectorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
128  inline ListDetectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
129 
130  private:
131 
132  int m_maxResults;
133  bool m_maxResultsHasBeenSet;
134 
135  Aws::String m_nextToken;
136  bool m_nextTokenHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace GuardDuty
141 } // namespace Aws
Aws::GuardDuty::Model::ListDetectorsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDetectorsRequest.h:57
Aws::Http::URI
Definition: URI.h:32
Aws::GuardDuty::Model::ListDetectorsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDetectorsRequest.h:45
Aws::GuardDuty::Model::ListDetectorsRequest::WithNextToken
ListDetectorsRequest & WithNextToken(const char *value)
Definition: ListDetectorsRequest.h:128
Aws::GuardDuty::Model::ListDetectorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDetectorsRequest.h:34
Aws::GuardDuty::Model::ListDetectorsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GuardDuty::Model::ListDetectorsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDetectorsRequest.h:96
Aws::GuardDuty::Model::ListDetectorsRequest::SerializePayload
Aws::String SerializePayload() const override
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListDetectorsRequest
Definition: ListDetectorsRequest.h:26
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ListDetectorsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDetectorsRequest.h:104
AWSString.h
Aws::GuardDuty::Model::ListDetectorsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDetectorsRequest.h:51
Aws::GuardDuty::Model::ListDetectorsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDetectorsRequest.h:80
Aws::GuardDuty::Model::ListDetectorsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDetectorsRequest.h:88
Aws::GuardDuty::Model::ListDetectorsRequest::WithMaxResults
ListDetectorsRequest & WithMaxResults(int value)
Definition: ListDetectorsRequest.h:63
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::GuardDuty::Model::ListDetectorsRequest::WithNextToken
ListDetectorsRequest & WithNextToken(const Aws::String &value)
Definition: ListDetectorsRequest.h:112
Aws::GuardDuty::Model::ListDetectorsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDetectorsRequest.h:72
Aws::GuardDuty::Model::ListDetectorsRequest::WithNextToken
ListDetectorsRequest & WithNextToken(Aws::String &&value)
Definition: ListDetectorsRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListDetectorsRequest::ListDetectorsRequest
ListDetectorsRequest()
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17