AWS SDK for C++  1.8.95
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 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
CreateEnvironmentMembershipRequest & WithUserArn(const Aws::String &value)
CreateEnvironmentMembershipRequest & WithEnvironmentId(Aws::String &&value)
CreateEnvironmentMembershipRequest & WithPermissions(MemberPermissions &&value)
CreateEnvironmentMembershipRequest & WithEnvironmentId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateEnvironmentMembershipRequest & WithUserArn(const char *value)
CreateEnvironmentMembershipRequest & WithPermissions(const MemberPermissions &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUD9_API
CreateEnvironmentMembershipRequest & WithEnvironmentId(const char *value)
CreateEnvironmentMembershipRequest & WithUserArn(Aws::String &&value)