AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeIpGroupsRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkSpaces
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKSPACES_API DescribeIpGroupsRequest() = default;
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_WORKSPACES_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::Vector<Aws::String>& GetGroupIds() const { return m_groupIds; }
43 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
44 template<typename GroupIdsT = Aws::Vector<Aws::String>>
45 void SetGroupIds(GroupIdsT&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::forward<GroupIdsT>(value); }
46 template<typename GroupIdsT = Aws::Vector<Aws::String>>
47 DescribeIpGroupsRequest& WithGroupIds(GroupIdsT&& value) { SetGroupIds(std::forward<GroupIdsT>(value)); return *this;}
48 template<typename GroupIdsT = Aws::String>
49 DescribeIpGroupsRequest& AddGroupIds(GroupIdsT&& value) { m_groupIdsHasBeenSet = true; m_groupIds.emplace_back(std::forward<GroupIdsT>(value)); return *this; }
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template<typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
61 template<typename NextTokenT = Aws::String>
62 DescribeIpGroupsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
64
66
69 inline int GetMaxResults() const { return m_maxResults; }
70 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
72 inline DescribeIpGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
74 private:
75
76 Aws::Vector<Aws::String> m_groupIds;
77 bool m_groupIdsHasBeenSet = false;
78
79 Aws::String m_nextToken;
80 bool m_nextTokenHasBeenSet = false;
81
82 int m_maxResults{0};
83 bool m_maxResultsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WorkSpaces
88} // 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