AWS SDK for C++  1.9.104
AWS SDK for C++
ListInvitationsRequest.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 "ListInvitations"; }
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 ListInvitationsRequest& 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 ListInvitationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
120  inline ListInvitationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
128  inline ListInvitationsRequest& 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::Http::URI
Definition: URI.h:32
Aws::GuardDuty::Model::ListInvitationsRequest
Definition: ListInvitationsRequest.h:26
Aws::GuardDuty::Model::ListInvitationsRequest::WithMaxResults
ListInvitationsRequest & WithMaxResults(int value)
Definition: ListInvitationsRequest.h:63
Aws::GuardDuty::Model::ListInvitationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListInvitationsRequest.h:80
Aws::GuardDuty::Model::ListInvitationsRequest::ListInvitationsRequest
ListInvitationsRequest()
Aws::GuardDuty::Model::ListInvitationsRequest::WithNextToken
ListInvitationsRequest & WithNextToken(const char *value)
Definition: ListInvitationsRequest.h:128
Aws::GuardDuty::Model::ListInvitationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListInvitationsRequest.h:51
Aws::GuardDuty::Model::ListInvitationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListInvitationsRequest.h:45
Aws::GuardDuty::Model::ListInvitationsRequest::WithNextToken
ListInvitationsRequest & WithNextToken(Aws::String &&value)
Definition: ListInvitationsRequest.h:120
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ListInvitationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListInvitationsRequest.h:96
AWSString.h
Aws::GuardDuty::Model::ListInvitationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListInvitationsRequest.h:88
Aws::GuardDuty::Model::ListInvitationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GuardDuty::Model::ListInvitationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListInvitationsRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ListInvitationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListInvitationsRequest.h:72
GuardDutyRequest.h
Aws::GuardDuty::Model::ListInvitationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::ListInvitationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListInvitationsRequest.h:104
Aws::GuardDuty::Model::ListInvitationsRequest::WithNextToken
ListInvitationsRequest & WithNextToken(const Aws::String &value)
Definition: ListInvitationsRequest.h:112
Aws::GuardDuty::Model::ListInvitationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListInvitationsRequest.h:34