AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
48 inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
49 inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
50 inline DescribeEnvironmentMembershipsRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
51 inline DescribeEnvironmentMembershipsRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
52 inline DescribeEnvironmentMembershipsRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
54
56
59 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
60 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
61 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
62 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
63 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
65 inline DescribeEnvironmentMembershipsRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
66 inline DescribeEnvironmentMembershipsRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
68
70
78 inline const Aws::Vector<Permissions>& GetPermissions() const{ return m_permissions; }
79 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
80 inline void SetPermissions(const Aws::Vector<Permissions>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
81 inline void SetPermissions(Aws::Vector<Permissions>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
84 inline DescribeEnvironmentMembershipsRequest& AddPermissions(const Permissions& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
85 inline DescribeEnvironmentMembershipsRequest& AddPermissions(Permissions&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
87
89
97 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
100 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
103 inline DescribeEnvironmentMembershipsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
104 inline DescribeEnvironmentMembershipsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
106
108
111 inline int GetMaxResults() const{ return m_maxResults; }
112 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
114 inline DescribeEnvironmentMembershipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
116 private:
117
118 Aws::String m_userArn;
119 bool m_userArnHasBeenSet = false;
120
121 Aws::String m_environmentId;
122 bool m_environmentIdHasBeenSet = false;
123
124 Aws::Vector<Permissions> m_permissions;
125 bool m_permissionsHasBeenSet = false;
126
127 Aws::String m_nextToken;
128 bool m_nextTokenHasBeenSet = false;
129
130 int m_maxResults;
131 bool m_maxResultsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Cloud9
136} // namespace Aws
DescribeEnvironmentMembershipsRequest & WithPermissions(Aws::Vector< Permissions > &&value)
AWS_CLOUD9_API Aws::String SerializePayload() const override
DescribeEnvironmentMembershipsRequest & WithNextToken(Aws::String &&value)
DescribeEnvironmentMembershipsRequest & WithEnvironmentId(Aws::String &&value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEnvironmentMembershipsRequest & WithUserArn(Aws::String &&value)
DescribeEnvironmentMembershipsRequest & AddPermissions(Permissions &&value)
DescribeEnvironmentMembershipsRequest & WithUserArn(const Aws::String &value)
DescribeEnvironmentMembershipsRequest & WithPermissions(const Aws::Vector< Permissions > &value)
DescribeEnvironmentMembershipsRequest & WithUserArn(const char *value)
DescribeEnvironmentMembershipsRequest & WithEnvironmentId(const char *value)
DescribeEnvironmentMembershipsRequest & WithEnvironmentId(const Aws::String &value)
DescribeEnvironmentMembershipsRequest & WithNextToken(const Aws::String &value)
DescribeEnvironmentMembershipsRequest & AddPermissions(const Permissions &value)
DescribeEnvironmentMembershipsRequest & WithNextToken(const char *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