AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeEnvironmentMembershipsRequest.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/cloud9/Cloud9Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloud9/model/Permissions.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Cloud9
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUD9_API DescribeEnvironmentMembershipsRequest() = 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 "DescribeEnvironmentMemberships"; }
33
34 AWS_CLOUD9_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetUserArn() const { return m_userArn; }
46 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
47 template<typename UserArnT = Aws::String>
48 void SetUserArn(UserArnT&& value) { m_userArnHasBeenSet = true; m_userArn = std::forward<UserArnT>(value); }
49 template<typename UserArnT = Aws::String>
50 DescribeEnvironmentMembershipsRequest& WithUserArn(UserArnT&& value) { SetUserArn(std::forward<UserArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
58 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
59 template<typename EnvironmentIdT = Aws::String>
60 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
61 template<typename EnvironmentIdT = Aws::String>
62 DescribeEnvironmentMembershipsRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
64
66
74 inline const Aws::Vector<Permissions>& GetPermissions() const { return m_permissions; }
75 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
76 template<typename PermissionsT = Aws::Vector<Permissions>>
77 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
78 template<typename PermissionsT = Aws::Vector<Permissions>>
79 DescribeEnvironmentMembershipsRequest& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
80 inline DescribeEnvironmentMembershipsRequest& AddPermissions(Permissions value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
82
84
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template<typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
96 template<typename NextTokenT = Aws::String>
97 DescribeEnvironmentMembershipsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
99
101
104 inline int GetMaxResults() const { return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
107 inline DescribeEnvironmentMembershipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
109 private:
110
111 Aws::String m_userArn;
112 bool m_userArnHasBeenSet = false;
113
114 Aws::String m_environmentId;
115 bool m_environmentIdHasBeenSet = false;
116
117 Aws::Vector<Permissions> m_permissions;
118 bool m_permissionsHasBeenSet = false;
119
120 Aws::String m_nextToken;
121 bool m_nextTokenHasBeenSet = false;
122
123 int m_maxResults{0};
124 bool m_maxResultsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Cloud9
129} // namespace Aws
DescribeEnvironmentMembershipsRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUD9_API Aws::String SerializePayload() const override
DescribeEnvironmentMembershipsRequest & WithUserArn(UserArnT &&value)
DescribeEnvironmentMembershipsRequest & WithPermissions(PermissionsT &&value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEnvironmentMembershipsRequest & AddPermissions(Permissions value)
DescribeEnvironmentMembershipsRequest & WithEnvironmentId(EnvironmentIdT &&value)
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