AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DescribeIpGroupsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workspaces/WorkSpacesRequest.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkSpaces {
16namespace Model {
17
21 public:
22 AWS_WORKSPACES_API DescribeIpGroupsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeIpGroups"; }
29
30 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::Vector<Aws::String>& GetGroupIds() const { return m_groupIds; }
39 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
40 template <typename GroupIdsT = Aws::Vector<Aws::String>>
41 void SetGroupIds(GroupIdsT&& value) {
42 m_groupIdsHasBeenSet = true;
43 m_groupIds = std::forward<GroupIdsT>(value);
44 }
45 template <typename GroupIdsT = Aws::Vector<Aws::String>>
47 SetGroupIds(std::forward<GroupIdsT>(value));
48 return *this;
49 }
50 template <typename GroupIdsT = Aws::String>
52 m_groupIdsHasBeenSet = true;
53 m_groupIds.emplace_back(std::forward<GroupIdsT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
65 template <typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) {
67 m_nextTokenHasBeenSet = true;
68 m_nextToken = std::forward<NextTokenT>(value);
69 }
70 template <typename NextTokenT = Aws::String>
72 SetNextToken(std::forward<NextTokenT>(value));
73 return *this;
74 }
76
78
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) {
84 m_maxResultsHasBeenSet = true;
85 m_maxResults = value;
86 }
88 SetMaxResults(value);
89 return *this;
90 }
92 private:
93 Aws::Vector<Aws::String> m_groupIds;
94
95 Aws::String m_nextToken;
96
97 int m_maxResults{0};
98 bool m_groupIdsHasBeenSet = false;
99 bool m_nextTokenHasBeenSet = false;
100 bool m_maxResultsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace WorkSpaces
105} // namespace Aws
DescribeIpGroupsRequest & WithGroupIds(GroupIdsT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeIpGroupsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
DescribeIpGroupsRequest & AddGroupIds(GroupIdsT &&value)
AWS_WORKSPACES_API DescribeIpGroupsRequest()=default
DescribeIpGroupsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetGroupIds() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector