AWS SDK for C++  1.8.182
AWS SDK for C++
ListOrganizationAdminAccountsRequest.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 "ListOrganizationAdminAccounts"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline int GetMaxResults() const{ return m_maxResults; }
45 
49  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
50 
54  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
55 
59  inline ListOrganizationAdminAccountsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60 
61 
68  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 
76  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 
84  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 
92  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
93 
100  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
101 
108  inline ListOrganizationAdminAccountsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
116  inline ListOrganizationAdminAccountsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
117 
124  inline ListOrganizationAdminAccountsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
125 
126  private:
127 
128  int m_maxResults;
129  bool m_maxResultsHasBeenSet;
130 
131  Aws::String m_nextToken;
132  bool m_nextTokenHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace GuardDuty
137 } // namespace Aws
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListOrganizationAdminAccountsRequest.h:100
Aws::Http::URI
Definition: URI.h:32
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::WithNextToken
ListOrganizationAdminAccountsRequest & WithNextToken(const char *value)
Definition: ListOrganizationAdminAccountsRequest.h:124
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::WithMaxResults
ListOrganizationAdminAccountsRequest & WithMaxResults(int value)
Definition: ListOrganizationAdminAccountsRequest.h:59
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest
Definition: ListOrganizationAdminAccountsRequest.h:26
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListOrganizationAdminAccountsRequest.h:49
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOrganizationAdminAccountsRequest.h:84
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::WithNextToken
ListOrganizationAdminAccountsRequest & WithNextToken(Aws::String &&value)
Definition: ListOrganizationAdminAccountsRequest.h:116
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::WithNextToken
ListOrganizationAdminAccountsRequest & WithNextToken(const Aws::String &value)
Definition: ListOrganizationAdminAccountsRequest.h:108
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOrganizationAdminAccountsRequest.h:68
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListOrganizationAdminAccountsRequest.h:44
AWSString.h
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListOrganizationAdminAccountsRequest.h:34
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOrganizationAdminAccountsRequest.h:92
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::ListOrganizationAdminAccountsRequest
ListOrganizationAdminAccountsRequest()
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListOrganizationAdminAccountsRequest.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListOrganizationAdminAccountsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListOrganizationAdminAccountsRequest.h:76
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17