AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
ListMembershipsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/MembershipTypeFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityAgent {
16namespace Model {
17
25 public:
26 AWS_SECURITYAGENT_API ListMembershipsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListMemberships"; }
33
34 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
43 void SetApplicationId(ApplicationIdT&& value) {
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
48 ListMembershipsRequest& WithApplicationId(ApplicationIdT&& value) {
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
59 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
60 template <typename AgentSpaceIdT = Aws::String>
61 void SetAgentSpaceId(AgentSpaceIdT&& value) {
62 m_agentSpaceIdHasBeenSet = true;
63 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
64 }
65 template <typename AgentSpaceIdT = Aws::String>
66 ListMembershipsRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
67 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
68 return *this;
69 }
71
73
76 inline MembershipTypeFilter GetMemberType() const { return m_memberType; }
77 inline bool MemberTypeHasBeenSet() const { return m_memberTypeHasBeenSet; }
79 m_memberTypeHasBeenSet = true;
80 m_memberType = value;
81 }
83 SetMemberType(value);
84 return *this;
85 }
87
89
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) {
95 m_maxResultsHasBeenSet = true;
96 m_maxResults = value;
97 }
99 SetMaxResults(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 template <typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) {
112 m_nextTokenHasBeenSet = true;
113 m_nextToken = std::forward<NextTokenT>(value);
114 }
115 template <typename NextTokenT = Aws::String>
117 SetNextToken(std::forward<NextTokenT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_applicationId;
123
124 Aws::String m_agentSpaceId;
125
127
128 int m_maxResults{0};
129
130 Aws::String m_nextToken;
131 bool m_applicationIdHasBeenSet = false;
132 bool m_agentSpaceIdHasBeenSet = false;
133 bool m_memberTypeHasBeenSet = false;
134 bool m_maxResultsHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace SecurityAgent
140} // namespace Aws
ListMembershipsRequest & WithNextToken(NextTokenT &&value)
AWS_SECURITYAGENT_API ListMembershipsRequest()=default
ListMembershipsRequest & WithApplicationId(ApplicationIdT &&value)
ListMembershipsRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
ListMembershipsRequest & WithMemberType(MembershipTypeFilter value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String