AWS SDK for C++  1.8.183
AWS SDK for C++
CreateEnvironmentMembershipRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Cloud9
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "CreateEnvironmentMembership"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
43 
48  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
49 
54  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
55 
60  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
61 
66  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
67 
72  inline CreateEnvironmentMembershipRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
73 
78  inline CreateEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
79 
84  inline CreateEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
85 
86 
90  inline const Aws::String& GetUserArn() const{ return m_userArn; }
91 
95  inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
96 
100  inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
101 
105  inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
106 
110  inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
111 
115  inline CreateEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
116 
120  inline CreateEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
121 
125  inline CreateEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
126 
127 
135  inline const MemberPermissions& GetPermissions() const{ return m_permissions; }
136 
144  inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
145 
153  inline void SetPermissions(const MemberPermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
154 
162  inline void SetPermissions(MemberPermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
163 
171  inline CreateEnvironmentMembershipRequest& WithPermissions(const MemberPermissions& value) { SetPermissions(value); return *this;}
172 
180  inline CreateEnvironmentMembershipRequest& WithPermissions(MemberPermissions&& value) { SetPermissions(std::move(value)); return *this;}
181 
182  private:
183 
184  Aws::String m_environmentId;
185  bool m_environmentIdHasBeenSet;
186 
187  Aws::String m_userArn;
188  bool m_userArnHasBeenSet;
189 
190  MemberPermissions m_permissions;
191  bool m_permissionsHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace Cloud9
196 } // namespace Aws
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithPermissions
CreateEnvironmentMembershipRequest & WithPermissions(const MemberPermissions &value)
Definition: CreateEnvironmentMembershipRequest.h:171
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithUserArn
CreateEnvironmentMembershipRequest & WithUserArn(const Aws::String &value)
Definition: CreateEnvironmentMembershipRequest.h:115
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::CreateEnvironmentMembershipRequest
CreateEnvironmentMembershipRequest()
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithPermissions
CreateEnvironmentMembershipRequest & WithPermissions(MemberPermissions &&value)
Definition: CreateEnvironmentMembershipRequest.h:180
AWS_CLOUD9_API
#define AWS_CLOUD9_API
Definition: Cloud9_EXPORTS.h:28
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetPermissions
void SetPermissions(MemberPermissions &&value)
Definition: CreateEnvironmentMembershipRequest.h:162
Aws::Cloud9::Model::MemberPermissions
MemberPermissions
Definition: MemberPermissions.h:17
Cloud9Request.h
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithEnvironmentId
CreateEnvironmentMembershipRequest & WithEnvironmentId(const Aws::String &value)
Definition: CreateEnvironmentMembershipRequest.h:72
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::GetEnvironmentId
const Aws::String & GetEnvironmentId() const
Definition: CreateEnvironmentMembershipRequest.h:42
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithUserArn
CreateEnvironmentMembershipRequest & WithUserArn(Aws::String &&value)
Definition: CreateEnvironmentMembershipRequest.h:120
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::EnvironmentIdHasBeenSet
bool EnvironmentIdHasBeenSet() const
Definition: CreateEnvironmentMembershipRequest.h:48
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::PermissionsHasBeenSet
bool PermissionsHasBeenSet() const
Definition: CreateEnvironmentMembershipRequest.h:144
AWSString.h
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::UserArnHasBeenSet
bool UserArnHasBeenSet() const
Definition: CreateEnvironmentMembershipRequest.h:95
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEnvironmentMembershipRequest.h:31
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::GetUserArn
const Aws::String & GetUserArn() const
Definition: CreateEnvironmentMembershipRequest.h:90
Aws::Cloud9::Cloud9Request
Definition: Cloud9Request.h:17
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetEnvironmentId
void SetEnvironmentId(const char *value)
Definition: CreateEnvironmentMembershipRequest.h:66
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetUserArn
void SetUserArn(const Aws::String &value)
Definition: CreateEnvironmentMembershipRequest.h:100
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetUserArn
void SetUserArn(const char *value)
Definition: CreateEnvironmentMembershipRequest.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetEnvironmentId
void SetEnvironmentId(const Aws::String &value)
Definition: CreateEnvironmentMembershipRequest.h:54
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithEnvironmentId
CreateEnvironmentMembershipRequest & WithEnvironmentId(Aws::String &&value)
Definition: CreateEnvironmentMembershipRequest.h:78
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithUserArn
CreateEnvironmentMembershipRequest & WithUserArn(const char *value)
Definition: CreateEnvironmentMembershipRequest.h:125
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetEnvironmentId
void SetEnvironmentId(Aws::String &&value)
Definition: CreateEnvironmentMembershipRequest.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::WithEnvironmentId
CreateEnvironmentMembershipRequest & WithEnvironmentId(const char *value)
Definition: CreateEnvironmentMembershipRequest.h:84
MemberPermissions.h
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::GetPermissions
const MemberPermissions & GetPermissions() const
Definition: CreateEnvironmentMembershipRequest.h:135
Cloud9_EXPORTS.h
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest
Definition: CreateEnvironmentMembershipRequest.h:23
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetUserArn
void SetUserArn(Aws::String &&value)
Definition: CreateEnvironmentMembershipRequest.h:105
Aws::Cloud9::Model::CreateEnvironmentMembershipRequest::SetPermissions
void SetPermissions(const MemberPermissions &value)
Definition: CreateEnvironmentMembershipRequest.h:153