AWS SDK for C++  1.8.126
AWS SDK for C++
ListPublishingDestinationsRequest.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 "ListPublishingDestinations"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
45 
49  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
50 
54  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
55 
59  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
60 
64  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
65 
69  inline ListPublishingDestinationsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
70 
74  inline ListPublishingDestinationsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
75 
79  inline ListPublishingDestinationsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
80 
81 
85  inline int GetMaxResults() const{ return m_maxResults; }
86 
90  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 
95  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
96 
100  inline ListPublishingDestinationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101 
102 
109  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 
117  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 
125  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
126 
133  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
134 
141  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
142 
149  inline ListPublishingDestinationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
150 
157  inline ListPublishingDestinationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
158 
165  inline ListPublishingDestinationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
166 
167  private:
168 
169  Aws::String m_detectorId;
170  bool m_detectorIdHasBeenSet;
171 
172  int m_maxResults;
173  bool m_maxResultsHasBeenSet;
174 
175  Aws::String m_nextToken;
176  bool m_nextTokenHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace GuardDuty
181 } // namespace Aws
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPublishingDestinationsRequest.h:34
Aws::Http::URI
Definition: URI.h:32
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPublishingDestinationsRequest.h:95
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPublishingDestinationsRequest.h:85
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: ListPublishingDestinationsRequest.h:59
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithDetectorId
ListPublishingDestinationsRequest & WithDetectorId(const char *value)
Definition: ListPublishingDestinationsRequest.h:79
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: ListPublishingDestinationsRequest.h:54
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithDetectorId
ListPublishingDestinationsRequest & WithDetectorId(const Aws::String &value)
Definition: ListPublishingDestinationsRequest.h:69
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithDetectorId
ListPublishingDestinationsRequest & WithDetectorId(Aws::String &&value)
Definition: ListPublishingDestinationsRequest.h:74
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithNextToken
ListPublishingDestinationsRequest & WithNextToken(const char *value)
Definition: ListPublishingDestinationsRequest.h:165
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GuardDuty::Model::ListPublishingDestinationsRequest
Definition: ListPublishingDestinationsRequest.h:26
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPublishingDestinationsRequest.h:90
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::ListPublishingDestinationsRequest
ListPublishingDestinationsRequest()
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: ListPublishingDestinationsRequest.h:49
AWSString.h
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPublishingDestinationsRequest.h:109
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPublishingDestinationsRequest.h:117
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: ListPublishingDestinationsRequest.h:44
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithNextToken
ListPublishingDestinationsRequest & WithNextToken(Aws::String &&value)
Definition: ListPublishingDestinationsRequest.h:157
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: ListPublishingDestinationsRequest.h:64
GuardDutyRequest.h
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithMaxResults
ListPublishingDestinationsRequest & WithMaxResults(int value)
Definition: ListPublishingDestinationsRequest.h:100
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPublishingDestinationsRequest.h:125
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::WithNextToken
ListPublishingDestinationsRequest & WithNextToken(const Aws::String &value)
Definition: ListPublishingDestinationsRequest.h:149
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPublishingDestinationsRequest.h:133
Aws::GuardDuty::Model::ListPublishingDestinationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPublishingDestinationsRequest.h:141