AWS SDK for C++  1.9.40
AWS SDK for C++
ListMembersRequest.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 SecurityHub
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 "ListMembers"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
50  inline bool GetOnlyAssociated() const{ return m_onlyAssociated; }
51 
61  inline bool OnlyAssociatedHasBeenSet() const { return m_onlyAssociatedHasBeenSet; }
62 
72  inline void SetOnlyAssociated(bool value) { m_onlyAssociatedHasBeenSet = true; m_onlyAssociated = value; }
73 
83  inline ListMembersRequest& WithOnlyAssociated(bool value) { SetOnlyAssociated(value); return *this;}
84 
85 
89  inline int GetMaxResults() const{ return m_maxResults; }
90 
94  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 
99  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 
104  inline ListMembersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 
106 
114  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
115 
123  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
124 
132  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 
141  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
142 
150  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
151 
159  inline ListMembersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
160 
168  inline ListMembersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
169 
177  inline ListMembersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
178 
179  private:
180 
181  bool m_onlyAssociated;
182  bool m_onlyAssociatedHasBeenSet;
183 
184  int m_maxResults;
185  bool m_maxResultsHasBeenSet;
186 
187  Aws::String m_nextToken;
188  bool m_nextTokenHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace SecurityHub
193 } // namespace Aws
Aws::SecurityHub::Model::ListMembersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListMembersRequest.h:150
Aws::SecurityHub::Model::ListMembersRequest::OnlyAssociatedHasBeenSet
bool OnlyAssociatedHasBeenSet() const
Definition: ListMembersRequest.h:61
Aws::Http::URI
Definition: URI.h:32
Aws::SecurityHub::Model::ListMembersRequest::WithNextToken
ListMembersRequest & WithNextToken(const char *value)
Definition: ListMembersRequest.h:177
Aws::SecurityHub::Model::ListMembersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListMembersRequest.h:114
Aws::SecurityHub::Model::ListMembersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListMembersRequest.h:94
Aws::SecurityHub::Model::ListMembersRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::SecurityHub::Model::ListMembersRequest::WithNextToken
ListMembersRequest & WithNextToken(Aws::String &&value)
Definition: ListMembersRequest.h:168
Aws::SecurityHub::Model::ListMembersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListMembersRequest.h:123
Aws::SecurityHub::Model::ListMembersRequest::WithNextToken
ListMembersRequest & WithNextToken(const Aws::String &value)
Definition: ListMembersRequest.h:159
Aws::SecurityHub::Model::ListMembersRequest::WithMaxResults
ListMembersRequest & WithMaxResults(int value)
Definition: ListMembersRequest.h:104
Aws::SecurityHub::Model::ListMembersRequest
Definition: ListMembersRequest.h:26
Aws::SecurityHub::Model::ListMembersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListMembersRequest.h:132
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::ListMembersRequest::GetOnlyAssociated
bool GetOnlyAssociated() const
Definition: ListMembersRequest.h:50
Aws::SecurityHub::Model::ListMembersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListMembersRequest.h:99
Aws::SecurityHub::Model::ListMembersRequest::ListMembersRequest
ListMembersRequest()
Aws::SecurityHub::SecurityHubRequest
Definition: SecurityHubRequest.h:17
Aws::SecurityHub::Model::ListMembersRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
SecurityHubRequest.h
Aws::SecurityHub::Model::ListMembersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListMembersRequest.h:34
Aws::SecurityHub::Model::ListMembersRequest::SetOnlyAssociated
void SetOnlyAssociated(bool value)
Definition: ListMembersRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::ListMembersRequest::WithOnlyAssociated
ListMembersRequest & WithOnlyAssociated(bool value)
Definition: ListMembersRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::ListMembersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListMembersRequest.h:141
Aws::SecurityHub::Model::ListMembersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListMembersRequest.h:89