AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeIpGroupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkSpaces
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeIpGroups"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<Aws::String>& GetGroupIds() const{ return m_groupIds; }
42 
46  inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
47 
51  inline void SetGroupIds(const Aws::Vector<Aws::String>& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; }
52 
56  inline void SetGroupIds(Aws::Vector<Aws::String>&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); }
57 
61  inline DescribeIpGroupsRequest& WithGroupIds(const Aws::Vector<Aws::String>& value) { SetGroupIds(value); return *this;}
62 
66  inline DescribeIpGroupsRequest& WithGroupIds(Aws::Vector<Aws::String>&& value) { SetGroupIds(std::move(value)); return *this;}
67 
71  inline DescribeIpGroupsRequest& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
72 
76  inline DescribeIpGroupsRequest& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; }
77 
81  inline DescribeIpGroupsRequest& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
82 
83 
88  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
89 
94  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 
100  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 
106  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
107 
112  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
113 
118  inline DescribeIpGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
119 
124  inline DescribeIpGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
125 
130  inline DescribeIpGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
131 
132 
136  inline int GetMaxResults() const{ return m_maxResults; }
137 
141  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
142 
146  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
147 
151  inline DescribeIpGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
152 
153  private:
154 
155  Aws::Vector<Aws::String> m_groupIds;
156  bool m_groupIdsHasBeenSet;
157 
158  Aws::String m_nextToken;
159  bool m_nextTokenHasBeenSet;
160 
161  int m_maxResults;
162  bool m_maxResultsHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace WorkSpaces
167 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeIpGroupsRequest.h:88
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::AddGroupIds
DescribeIpGroupsRequest & AddGroupIds(const char *value)
Definition: DescribeIpGroupsRequest.h:81
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::WithGroupIds
DescribeIpGroupsRequest & WithGroupIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeIpGroupsRequest.h:66
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::WithNextToken
DescribeIpGroupsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeIpGroupsRequest.h:124
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeIpGroupsRequest.h:141
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeIpGroupsRequest.h:136
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeIpGroupsRequest.h:100
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::WithGroupIds
DescribeIpGroupsRequest & WithGroupIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeIpGroupsRequest.h:61
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::WithNextToken
DescribeIpGroupsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeIpGroupsRequest.h:118
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeIpGroupsRequest.h:146
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeIpGroupsRequest.h:94
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::AddGroupIds
DescribeIpGroupsRequest & AddGroupIds(const Aws::String &value)
Definition: DescribeIpGroupsRequest.h:71
Aws::WorkSpaces::Model::DescribeIpGroupsRequest
Definition: DescribeIpGroupsRequest.h:23
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::WithNextToken
DescribeIpGroupsRequest & WithNextToken(const char *value)
Definition: DescribeIpGroupsRequest.h:130
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeIpGroupsRequest.h:106
AWSString.h
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::WithMaxResults
DescribeIpGroupsRequest & WithMaxResults(int value)
Definition: DescribeIpGroupsRequest.h:151
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SetGroupIds
void SetGroupIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeIpGroupsRequest.h:56
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeIpGroupsRequest.h:31
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::AddGroupIds
DescribeIpGroupsRequest & AddGroupIds(Aws::String &&value)
Definition: DescribeIpGroupsRequest.h:76
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::DescribeIpGroupsRequest
DescribeIpGroupsRequest()
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::GroupIdsHasBeenSet
bool GroupIdsHasBeenSet() const
Definition: DescribeIpGroupsRequest.h:46
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SetGroupIds
void SetGroupIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeIpGroupsRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::GetGroupIds
const Aws::Vector< Aws::String > & GetGroupIds() const
Definition: DescribeIpGroupsRequest.h:41
Aws::WorkSpaces::Model::DescribeIpGroupsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeIpGroupsRequest.h:112